YUM History (list, info, summary, repeat, redo, undo, new)

terminal-logo-smallYum (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

Listing Arora browser operations

Yum history info

Show full information by history ID.

Remove Arora browser

Yum history list

Show history info for ID 2

Yum history summary

Shows summary of lates operations.

Yum history repeat

yum history repeat command repeats old operation by history ID.

Yum history undo

yum history undo simply undo operations by history ID.

Undo Arora browser erase

History list after undo

Yum history redo

yum history redo simply redos operation from yum history by ID.

Yum history new

yum history new command delete/clear old history listing.

Share this post

9 Comments

  1. 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
  2. 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
  3. 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
  4. Thanks for posting this. It helped me undo a desktop crashing yum move.

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

    Reply
  6. 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:

    [root@firedrumhosting ~]# 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

Trackbacks/Pingbacks

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

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">