Re: Installing a RPM to a particular Directory



In comp.os.linux.misc linuxnewbie <linuxnewbie82@xxxxxxxxx>:
HI

I'm running a FedoraCore5 Machine... Can anyone tell me if i can
actually select the destination folder where i want my package to be
installed????

for instance, say i want to install anaconda in /mnt/new , how do i go
about doing it???

By reading the fine manual 'man rpm' and looking for the option
to relocate a package. This should do the trick if the package is
relocatable. If not you can still use 'rpm2cpio' and manually
copy files to destination, just be aware they won't be in the
rpmdb this way. Another option would be to get your hands on the
src.rpm and modify the .spec file to your needs, then repackage.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 276: U.S. Postal Service
.



Relevant Pages