Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 80846 - "rpm -ivh --excludedocs --badreloc --relocate /=/newroot" fails
Summary: "rpm -ivh --excludedocs --badreloc --relocate /=/newroot" fails
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2002-12-31 23:37 UTC by Jim Gleason
Modified: 2007-04-18 16:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-01-03 13:56:43 UTC

Attachments (Terms of Use)

Description Jim Gleason 2002-12-31 23:37:07 UTC
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 (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 13:56:43 UTC
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.