Bug 1369

Summary: rpm can't remove packages with incorrect names
Product: [Retired] Red Hat Linux Reporter: Marc MERLIN <marc_soft>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-03-09 05:17:31 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 Marc MERLIN 1999-02-28 20:34:28 UTC
You most likely already know about this, but I couldn't find
it in the archives.

moremagic:~# rpm -qa | grep alsa
alsadriver-0.2.0-pre6-1
alsa-driver-0.2.0-pre10p1-1
alsa-driver-0.2.0-pre10p2-1
moremagic:~# rpm -e alsa-driver-0.2.0-pre10p1-1
package alsa-driver-0.2.0-pre10p1-1 is not installed

The problem here is that the version number contains a
dash, and it confuses RPM.
I agree that the package maker is at fault here, but it'd
be nice if once those packages are installed, they could
be removed also

Comment 1 Marc MERLIN 1999-02-28 20:39:59 UTC
I should rephrase:
Rpm _can_ remove the packages, if you do the following:
rpm --allmatches -e alsa-driver
but it can't really deal with them in a correct way.

Maybe rpm -i should refuse to install packages that have bad names
(more than one '-' in the version number)

Comment 2 David Lawrence 1999-03-02 21:24:59 UTC
This bug has been assigned to a developer further review.

Comment 3 Jeff Johnson 1999-03-09 05:17:59 UTC
Fixed (by checking for improper minus) in recent versions of rpm-2.5.x
and rpm-2.9x.