Relocate an rpm

Hi,

I have a relocatable rpm that I would like to install into a different directory.

I have read that Yum doesn’t really support this and a solution with yum is to use

yum install XXX --downloadonly --downloaddir=/tmp

Then use rpm and --prefix

http://research.cs.wisc.edu/htcondor/yum/#relocatable

I was wondering if there was any way of doing this with the core yum module.

I appreciate that changing the install directory is not the best approach but I have customers with non-standard release directories.

My solution at the moment would be to use command and do things more manually for this pesky rpm.

Thanks

James

Yeah, the command module and either using yum --downloadonly or using
yumdownloader (from the yum-utils package) followed by rpm is the way
to go here. Adding a means for the yum module to download an rpm is
probably a reasonable feature enhancement but it doesn't exist at the
moment so the command module is the way to go.

-Toshio

Ok thanks for the reply. I’ll try and avoid doing it in the first place but if I can’t do that I’ll use one of the two options you mention.

I’ve already used yumdownloader elsewhere to build a custom repo.

Thanks