Bug 15636

Summary: problem with dependencies
Product: [Retired] Red Hat Linux Reporter: mal
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-07 13:53:15 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:
Attachments:
Description Flags
This is a SPEC file I used. none

Description mal 2000-08-07 13:25:42 UTC
In some cases (for example when doing rpm -Fvh)
rpm failes with dependencies and installs the same package twice.
This is an example: test 2,3,4 are the same package
the only difference is package revision
(you can use any package for this).

[root@eth0_extrenal noarch]# rpm -Uvh test-1.0-2.noarch.rpm 
[root@eth0_extrenal noarch]# rpm -q test
test-1.0-2
[root@eth0_extrenal noarch]# rpm -Fvh test-1.0-3.noarch.rpm
test-1.0-4.noarch.rpm 
findMatches: cannot read header at 0x3a8
[root@eth0_extrenal noarch]# rpm -Fvh test-1.0-3.noarch.rpm 
[root@eth0_extrenal noarch]# rpm -Fvh test-1.0-4.noarch.rpm 
[root@eth0_extrenal noarch]# rpm -Fvh test-1.0-*            
[root@eth0_extrenal noarch]# rpm -q test
test-1.0-3
test-1.0-4

# rpm -q rpm
rpm-4.0-0.59

See, test package now installed TWICE.
Now the only way to fix this is
rpm --rebuilddb

Comment 1 mal 2000-08-07 13:53:13 UTC
Created attachment 2175 [details]
This is a SPEC file I used.

Comment 2 Jeff Johnson 2000-09-05 14:11:43 UTC
This is a variant of  #16684 (i.e. multiple identically named packages).

*** This bug has been marked as a duplicate of 16684 ***