Bug 2670

Summary: prefix option doesn't work
Product: [Retired] Red Hat Linux Reporter: jmbastia
Component: rpmAssignee: Erik Troan <ewt>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-01 19:31:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jmbastia 1999-05-08 20:03:59 UTC
When attemption to use the --prefix option with rpm in
RedHat Linux 6.0, it reports that only one prefix option may
be used, even if only one option is used.  For example:

# rpm -ivh --prefix /opt/zip zip-2.1-8.i386.rpm
rpm: only one of --prefix or --relocate may be used

Comment 1 Jeff Johnson 1999-05-09 19:42:59 UTC
You can work around this problem by using --relocate. Assuming
that the package wants to install in /usr and you wish to install
in /opt/zip, the command would be

	rpm -ivh --relocate /usr=/opt/zip zip-2.1.8.i386.rpm

Comment 2 Erik Troan 1999-06-01 19:31:59 UTC
fixed in rpm 3.0.1