Bug 80846 - "rpm -ivh --excludedocs --badreloc --relocate /=/newroot" fails
"rpm -ivh --excludedocs --badreloc --relocate /=/newroot" fails
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2002-12-31 18:37 EST by Jim Gleason
Modified: 2007-04-18 12:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-03 08:56:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jim Gleason 2002-12-31 18:37:07 EST
Description of problem:
"rpm -ivh --excludedocs --badreloc --relocate /=/newroot" fails to relocate the
package from the / directory to the /newroot directory

Version-Release number of selected component (if applicable):
I have tried both rpm-4.1-1.06 and rpm-4.1-8x and both fail.

How reproducible:
Every time

Steps to Reproduce:
1.Download binutils-sh-linux-2.11.2-6.i386.rpm and gcc-sh-linux-3.0.3-5.i386.rpm
from www.sh-linux.org (These are the RPMs I used, but any RPM should work (that
is they should fail :) )).
2.Create a /newroot directory
3.Try to install a relocated RPM using the folllowing command:
rpm -ivh --excludedocs --badreloc --relocate /=/newroot XXX.i386.rpm
Actual results:
Using the sh-linux packages mentioned in step 1. allows me to see that the files
(sh*-linux-*) are installed in /usr/bin/... instead of /newroot/usr/bin/...

Expected results:
I expect the package to be installed as if the root was /newroot.

Additional info:
Using the version of RPM that came (and I kept up2date) with RedHat 7.2 worked.
 It wasn't until I upgraded to RedHat 8.0 that things started to fail.
Comment 1 Jeff Johnson 2003-01-03 08:56:43 EST
Yup, --relocate is/was broken in rpm-4.1.

This is now fixed in rpm-4.2.

Note You need to log in before you can comment on or make changes to this bug.