Bug 54825 - Unable to operate on packages with multiple versions installed.
Summary: Unable to operate on packages with multiple versions installed.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 6.2
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2001-10-19 22:26 UTC by Kent
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-10-19 23:41:46 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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
[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.

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