YUM History (list, info, summary, repeat, redo, undo, new) - Comment Page: 1

Yum (Yellowdog Update Modified) is RPM Packet Management system for Fedora, CentOS, Red Hat, OpenSuse etc. Yum history (list, info, summary, repeat, redo, undo, new) commands is added on 3.2.25 version. So this works every Linux Distros, which uses yum 3.2.25 or newer. Yum history command is a really useful in situations where the need to example rollback latest yum activity or undelete some deletes or just see what is updated lately. Yum history and Yum history list yum history lists all latest yum operations and yum history list list all operations or just selected package operations Listing all operations [root ~]> yum history ### OR ### [root ~]> yum history...

10 comments on “YUM History (list, info, summary, repeat, redo, undo, new) - Comment Page: 1

    1. […] Here is the original: Fedora 12: yum History (list, info, summary, repeat, redo, undo … […]

      Reply
    2. Hi,

      Do you know how i can upgrade to the latest version of yum on a Centos 5 box?

      Reply
      • Hi Ola,

        Yum’s updating manually can be little problematic, because it might need other dependency packages/versions, which not even exist directly on CentOS 5 repositories.

        But if you want to try…YUM official source RPM files found here.

        Reply
    3. This helped me reinstall about 170 application I had to remove in order to get around a dependency hell. With this knowledge I like yum even more.
      Thanks again

      Reply
    4. do you mean “yum update yum” ?

      Reply
      • Hi nightfighter,

        I not sure what you mean, but on CentOS 5 (5.8) latest yum version is 3.2.22, so yum history won’t work, even if you update yum using yum.

        Reply
    5. Thanks for posting this. It helped me undo a desktop crashing yum move.

      Reply
    6. This is very helpful document. Good work!

      Reply
    7. What do you do when undo fails because it can’t find the packages that you updated from?

      In my case I accidentally updated everything instead a plesk 10.4 vps
      and I want to rollback everything.

      For example:

      [[email protected] ~]# yum history undo 47
      Loaded plugins: fastestmirror, priorities
      Undoing transaction 47, from Tue Jan 27 21:55:40 2015
      Updated OpenIPMI-2.0.16-12.el6.i686 @base
      Update 2.0.16-14.el6.i686 @base
      Updated OpenIPMI-devel-2.0.16-12.el6.i686 @base
      Update 2.0.16-14.el6.i686 @base
      Updated OpenIPMI-libs-2.0.16-12.el6.i686 @base
      Update 2.0.16-14.el6.i686 @base
      Loading mirror speeds from cached hostfile
      * atomic: www5.atomicorp.com
      * base: mirror.umd.edu
      * extras: mirror.nexcess.net
      * updates: mirror.millry.co
      atomic | 3.4 kB 00:00
      base | 3.7 kB 00:00
      extras | 3.4 kB 00:00
      updates | 3.4 kB 00:00
      131 packages excluded due to repository priority protections
      Updated audit-libs-2.2-2.el6.i686 ?
      Update 2.3.7-5.el6.i686 @base
      Updated authconfig-6.1.12-10.el6.i686 ?
      Update 6.1.12-19.el6.i686 @base
      Updated automake-1.11.1-1.2.el6.noarch @base
      Update 1.11.1-4.el6.noarch @base
      Updated avahi-libs-0.6.25-11.el6.i686 ?
      Update 0.6.25-15.el6.i686 @base
      Updated bash-4.1.2-15.el6_5.2.i686 @updates
      Update 4.1.2-29.el6.i686 @base
      Updated bind-32:9.8.2-0.10.rc1.el6_3.5.i686 ?
      Update 32:9.8.2-0.30.rc1.el6_6.1.i686 @updates
      Updated bind-libs-32:9.8.2-0.10.rc1.el6_3.5.i686 ?
      Update 32:9.8.2-0.30.rc1.el6_6.1.i686 @updates

      Many more ……

      Failed to downgrade: OpenIPMI-2.0.16-12.el6.i686
      Failed to downgrade: OpenIPMI-devel-2.0.16-12.el6.i686
      Failed to downgrade: OpenIPMI-libs-2.0.16-12.el6.i686
      Failed to downgrade: audit-libs-2.2-2.el6.i686
      Failed to downgrade: authconfig-6.1.12-10.el6.i686
      Failed to downgrade: automake-1.11.1-1.2.el6.noarch
      Failed to downgrade: avahi-libs-0.6.25-11.el6.i686
      Failed to downgrade: bash-4.1.2-15.el6_5.2.i686
      Failed to downgrade: 32:bind-9.8.2-0.10.rc1.el6_3.5.i686
      Failed to downgrade: 32:bind-libs-9.8.2-0.10.rc1.el6_3.5.i686

      Many more ……

      Error: No package(s) available to install

      Reply
      • Hi Kevin,

        Sorry for the late reply.

        First do you have keepcache=1 (enabled) or keepcache=0 (disabled) on your /etc/yum.conf ? If you have keepcache disabled, then exact package versions might be hard to find.

        You could check http://vault.centos.org/ to get older packages back. Unfortunately CentOS doesn’t have exactly same style build service, like Fedora Koji, where you can find full history of rpm builds.

        Reply

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close