How to see history of Yum Commands on a Linux Server

Yum command is one of the most used and important command on a Linux system. Here is how you can see the history of Yum command on a Linux server.

Login to your server as root via SSH and run following command

yum history

OR

yum history list

This will show you history of yum commands. Below is sample output.

[email protected] [~]# yum history
Loaded plugins: fastestmirror
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     9 | root               | 2014-01-11 04:36 | Update         |    1
     8 | root               | 2014-01-09 04:36 | Update         |    2
     7 | root               | 2014-01-05 04:36 | Update         |    1 P<
     6 | root               | 2014-01-03 19:45 | Install        |   10 ><
     5 | root               | 2014-01-03 19:11 | Install        |    3 ><
     4 | root               | 2014-01-03 18:50 | Install        |  115 ><
     3 | root               | 2014-01-03 18:49 | Install        |   53 >
     2 | root               | 2014-01-03 18:49 | Install        |    1
     1 | root               | 2014-01-03 18:41 | I, U           |  120 EE
history list
[email protected] [~]#

The method works on following Linux OS:
CentOS, RedHat, Fedora, Scientific Linux

Our Recommended VPS Hosting

Leave us a Reply

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

* *