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 4152 - --prefix does not work when installing source rpm
Summary: --prefix does not work when installing source rpm
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-07-22 01:49 UTC by kestes
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-07-22 13:59:50 UTC

Attachments (Terms of Use)

Description kestes 1999-07-22 01:49:38 UTC
I tried running this command

rpm -U --prefix /data1/builds/1 \

I have a topdir setup in /data1/builds/1 and the
files did not go into /data1/builds/1/SOURCES and

I use RPM version 2.5.6 so this may be fixed in your sources

Comment 1 Jeff Johnson 1999-07-22 13:59:59 UTC
The --prefix option supplies a new leading path for a tag in a binary
rpm containing that contains the old leading path and absolute
path names. Since src.rpm's contain relative not absolute paths
and do not contain a prefix tag at all it's unclear whether the
effort involved in implementing --prefix is worth the effort.

Meanwhile, try
	rpm --define '_topdir	/data1/builds/1' -U ...
which should have the desired effect.

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