All Linux HowTo's

See your YUM history

Share This:

Yum has the ability to show you the yum activity of the past. For example, if you want to know when you (or someone) ran a YUM command on a given system, you can.

To get an overview, issue the following command

yum history

You’ll get something like this:

[root@www.agix.local: ~]# yum history list
Loaded plugins: fastestmirror, presto, security
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    21 | Managed ...  | 2014-10-15 09:40 | Install        |    1   
...

Notice the number in the left column. It’s a reference for more information. So you can enter the following command to get the information about that YUM event:

yum history info 5

And the following is what i get as the result of the above command:

[root@www.agix.local: ~]# yum history info 5
Loaded plugins: fastestmirror, presto, security
Transaction ID : 5
Begin time     : Sat May  3 10:19:21 2014
Begin rpmdb    : 187:cf9e391d45ac6c13d8dcfe8d83537558blablabla
End time       :            10:19:24 2014 (3 seconds)
End rpmdb      : 189:1aa53006d673d665f946dda72f2aa1a5blablabla
User           : root 
Return-Code    : Success
Command Line   : install wget
Transaction performed with:
    Updated       rpm-4.8.0-32.el6.x86_64                       @CentOS6-Base/$releasever
    Installed     yum-3.2.29-40.el6.centos.noarch               @CentOS6-Base/$releasever
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @CentOS6-Base/$releasever
    Installed     yum-presto-0.6.2-1.el6.noarch                 @CentOS6-Base/$releasever
Packages Altered:
    Dep-Install make-1:3.81-20.el6.x86_64        @base
    Updated     openssl-1.0.0-27.el6_4.2.x86_64  @CentOS6-updates/$releasever
    Update              1.0.1e-16.el6_5.7.x86_64 @updates
    Install     wget-1.12-1.11.el6_5.x86_64      @updates
history info

You can see in the above the command that was run, the updates and alterations.

Similar Posts:

Leave a Reply

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