FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2004
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    graceful recovery from interrupted yum update

    What is the best way to recover from interrupted yum update?

    fglrx crashing X (it's another story why I coudn't use console to update) caused yum update to not fully finish.

    Now I see that several packages have both old and new versions ('rpm -qa | sort'). Running 'yum update' again works from where it got interrupted, but doesn't clean up the packages it had been updating before it was interrupted.

    Should I manually remove old packages one by one by hand? Is there a simpler way to do that instead?

  2. #2
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    15,277
    Mentioned
    186 Post(s)
    Tagged
    0 Thread(s)
    Should I manually remove old packages one by one by hand? Is there a simpler way to do that instead?
    yum clean all

  3. #3
    Join Date
    Jul 2004
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought 'yum clean' only clean the rpm cache, not the actual installed packages.

    Since I'm not familiar with the details of rpm, I may be incorrect, but the old packages seem to take up space, after 'yum update' is interrupted. And they don't seem to be related to rpm cache being cleaned.

    Please advise.

  4. #4
    Join Date
    Jun 2006
    Location
    Texas
    Age
    55
    Posts
    4,164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Start your teminal:
    Code:
    yum clean all
    yum makecache
    rpm --rebuilddb
    yum update
    Does this work?

  5. #5
    Join Date
    Jul 2004
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: graceful recovery from interrupted yum update

    I now find that Fedora 14 has yum-complete-transaction and package-cleanup commands for this purpose. Great tools!

  6. #6
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: graceful recovery from interrupted yum update

    actually, yum should have refused to run again when you tried, and told you to run yum-complete-transaction to finish the previous transaction.

    Have they changed the way that yum works in this respect now?

Similar Threads

  1. Graceful downgrade path?
    By mortamus in forum Using Fedora
    Replies: 3
    Last Post: 4th January 2008, 04:03 AM
  2. Updates interrupted
    By rjspruill in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 18th October 2007, 02:31 AM
  3. Music (And other media?) interrupted
    By WheelDweller in forum Using Fedora
    Replies: 1
    Last Post: 28th November 2005, 07:55 AM
  4. network interrupted
    By hasek in forum Servers & Networking
    Replies: 0
    Last Post: 5th April 2005, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •