Bug 371611 - Yum update interruption leaves scores of duplicate packages installed
Summary: Yum update interruption leaves scores of duplicate packages installed
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.1
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: James Antill
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-08 18:44 UTC by Michael Torrie
Modified: 2007-11-17 01:15 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-08 19:43:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 219444 0 medium CLOSED yum dying leaves duplicate entries in RPM database 2021-02-22 00:41:40 UTC

Description Michael Torrie 2007-11-08 18:44:22 UTC
Description of problem:
If yum is interrupted or dies before it can do the cleanup phase after the
package installations, it leaves duplicate entries in the rpm database that must
be cleaned manually with rpm -e

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


How reproducible:
Always.

During a yum update, if the machine is interrupted during the cleanup phase for
any reason (controlling terminal died, kernel panic because of too little ram in
a xen image, etc), packages that have not hit the cleanup stage have duplicates
in the rpm database.  

Also, doing yum update over an ssh connection and losing the connection midway
through the yum update causes this frequently.

Steps to Reproduce:
1. run yum update
2. yum dies in the middle (killed or controlling terminal crashes)
3. rpm -qa  and notice duplicates
  
Actual results:
duplicate packages

Expected results:
I'd expect yum to be able to clean itself up on the next run or something.

Additional info:
See bug 21944 (https://bugzilla.redhat.com/show_bug.cgi?id=219444).  Now that
yum is in RH 5, this is becoming a more critical problem.  If I install a bunch
of packages with rpm -ivh, it installs and cleans up packages one at a time
instead of batching all the operations.  Why can't yum do the same thing?  Is it
too slow?

Comment 1 Michael Torrie 2007-11-08 18:47:56 UTC
Bug type above!  the bug referenced is bug 219444.

Comment 2 James Antill 2007-11-08 19:43:21 UTC
 This is a hard feature to add, esp. for a RHEL-5.x update. However starting
with RHEL-5.1 we have included the yum-utils package which includes the
package-cleanup program, so there is a better method of "recovery" than rpm -e.



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