Red Hat Bugzilla – Bug 7452
--prefix option does not work on rpm
Last modified: 2008-05-01 11:37:53 EDT
I tried to use the --prefix option to install a relocatable package in
another directory. When I did this, it told me I could not use --prefix
and --relocate on the same line. I did not use --relocate, so this is the
bug. I did use --relocate to work around the problem, but this requires
querying the package to find the default home directory for the package,
and then including this directory on the rpm command line.
What version of rpm? I believe this is fixed in rpm-3.0.2 and later.
"rpm --version" tells me it is 3.0. Since there is a workaround, this is not
critical. What is the best or easiest way for me to get 3.0.2 of rpm?
The latest release rpm-3.0.3 is available from ftp.rpm.org, as are other,
earlier releases. There should also be errata releases of rpm-3.0.2 and
earlier available from any mirror that has Red Hat updates.
There's also rpm-3.0.4 in Raw Hide if you're brave :-)