Bug 54825 - Unable to operate on packages with multiple versions installed.
Unable to operate on packages with multiple versions installed.
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.2
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-10-19 18:26 EDT by Kent
Modified: 2008-05-01 11:38 EDT (History)
0 users

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


Attachments (Terms of Use)

  None (edit)
Description Kent 2001-10-19 18:26:37 EDT
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 18:39:49 EDT
Have you done "rpm --rebuilddb" to convert from db1 -> db3 format?
Comment 2 Kent 2001-10-19 19:41:41 EDT
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-19 22:38:59 EDT
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.