Bug 119286

Summary: Allow "rpm -e --prefix ..."
Product: [Retired] Red Hat Linux Reporter: Christian Goetze <cg>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: GinGin64Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-07 16:54:24 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 Christian Goetze 2004-03-29 02:21:12 UTC
Description of problem:

install the same rpm multiple times. There is one legititimate use
case for this, though, namely installing it multiple times using
different --prefix values. In development a case can be made to
support this, since different developers or testers would want to
test a realistic installation scneario in parallel.

To support this one use case, how about extending the
 "name, epoch, version, release, architecture"
with one more component, "prefix". This way, one could address a
specific package instance via --prefix and selectively erase only
the rpm installed at the specified prefix.

Another consideration would be to make it illegal to have the
exact same rpm installed multiple times except if --prefix differs.

Version-Release number of selected component (if applicable):

4.1 and later

How reproducible:

very

Steps to Reproduce:
1. rpm -i <some-rpm>
2. rpm -i --prefix <someplace> <same-rpm>
3. rpm -e --prefix <sameplace> <the-rpm>
  
Actual results:

doesn't work

Expected results:

erases the second package

Additional info:

Comment 1 Jeff Johnson 2004-04-07 16:54:24 UTC
Using --prefix to qualify upgrade/erasure ain't the right thing to do.

Comment 2 Christian Goetze 2004-04-07 17:07:58 UTC
So what is the right thing to do?? How do you selectively erase a 
specific package installed with a specific prefix, if that same 
package is installed multiple times?