Bug 54825

Summary: Unable to operate on packages with multiple versions installed.
Product: [Retired] Red Hat Linux Reporter: Kent <redhat-bugzilla>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-19 23:41:46 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 Kent 2001-10-19 22:26:37 UTC
Using rpm-4.0.2-6x on RedHat 6.2 with all updates applied.

rpm is not allowing the user to specify a version-release in the package
argument in order to operate on a package that has multiple versions installed.

For example:

[root@server modules]# rpm -q kernel
kernel-2.2.14-5.0
kernel-2.2.19-6.2.7
[root@server modules]# rpm -e kernel-2.2.14-5.0
error: package kernel-2.2.14-5.0 is not installed
[root@server modules]# rpm -ql kernel-2.2.19-6.2.7
package kernel-2.2.19-6.2.7 is not installed

The only workaround I've found is to use
     rpm -e --allmatches --nodeps kernel
and then re-install the version you want.

Comment 1 Jeff Johnson 2001-10-19 22:39:49 UTC
Have you done "rpm --rebuilddb" to convert from db1 -> db3 format?

Comment 2 Kent 2001-10-19 23:41:41 UTC
Yes, --rebuilddb appears to have cleared up the problem.  Was this necessary db
conversion documented somewhere that I missed?  Thanks for the prompt response.

Comment 3 Jeff Johnson 2001-10-20 02:38:59 UTC
Yup, in the errata announcement for rpm-4.0.2-6x.