Bug 231969

Summary: rpm program cannot update freshen packages correctly
Product: [Fedora] Fedora Reporter: Panos Kavalagios <Panos.Kavalagios>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
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: 2007-10-24 11:57:04 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 Panos Kavalagios 2007-03-13 11:44:15 UTC
Description of problem:


Version-Release number of selected component (if applicable):

RPM version 4.4.2

How reproducible:


Steps to Reproduce:
1. rpm -q audit
audit-1.2.8-1.fc6
2. mkdir /tmp/rpmbug
3. cp audit-1.4.1-1.fc6.i386.rpm audit-1.4-1.fc6.i386.rpm /tmp/rpmbug
4. cd /tmp/rpmbug
5. rpm -Fhv *
  
Actual results:
warning: audit-1.4.1-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: package audit = 1.4.1-1.fc6 was already added, skipping audit < 1.4-1.fc6
error: error reading from file audit-1.4-1.fc6.i386.rpm

Expected results:
The newer file should be selected and installed

Additional info:
I used to download all the updates of every Fedora CORE and issue a "rpm -Fhv *"
to install the updates. This was possible in the past, but after a specific CORE
and later I'm getting this error. To bypass the error simply remove the old
versions of the files and issue the "rpm -Fhv *". This is however very
irritating when you have a list of 1,360 rpm package updates.

Comment 1 Jeff Johnson 2007-03-13 16:54:10 UTC
rpm permits only one copy of a package per-transaction to prevent random install behavior
with, say, glibc.i386 and glibc.i686 being installed, what is actiually installed depends on the
order args would be mentioned.

rpm chooses the newest version when given 2 identically named packages, and rpm-4.4.8 takes multilib 
arch into account, and skips packages with incompatible arches.

Fixed UPSTREAM

Comment 2 Red Hat Bugzilla 2007-08-21 05:32:29 UTC
User pnasrat's account has been closed

Comment 3 Panu Matilainen 2007-08-22 06:33:39 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 4 Panu Matilainen 2007-10-24 11:57:04 UTC
This has been fixed in recent F7 update (see bug 180996) but not planned for FC6.