rpm installation via the python api using a prefix

Panu Matilainen pmatilai at laiskiainen.org
Tue Jan 11 18:17:29 UTC 2011

On Wed, 29 Dec 2010, Joe Ebmeier wrote:
> Hello,
> I’m running CentOS 5.3 (rpm version, python version 2.4.3)
> I’m writing a python script to facilitate rpm installations.  I currently
> have a relocatable package and I would like to change the location in which
> it is installed.  However, I have been unable to find anything about an api
> interface to the command line “--prefix" or “--relocate" options.  Is this
> functionality available through the python apis?

Sorry but no, it isn't. Adding support for it wouldn't be particularly 
hard, but there's no helping the situation on CentOS 5.x.

 	- Panu -

More information about the Rpm-list mailing list