Bug 371611 - Yum update interruption leaves scores of duplicate packages installed
Summary: Yum update interruption leaves scores of duplicate packages installed
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum   
(Show other bugs)
Version: 5.1
Hardware: All Linux
Target Milestone: ---
: ---
Assignee: James Antill
QA Contact:
Depends On:
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:
Story Points: ---
Clone Of:
Last Closed: 2007-11-08 19:43:21 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 219444 None CLOSED yum dying leaves duplicate entries in RPM database 2018-05-11 12:26 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:

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.