How to view history of Yum commands (update, install, remove)?

Solution 1:

Well,

yum history

does the job as well.

Solution 2:

I believe you can find what you are looking for in the yum log files which are located in /var/log/yum.log

Solution 3:

For example:

yum history list

[root ~]> yum history list
Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit
ID     | Login user             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
 2 | User <username>        | 2010-01-19 15:10 | Erase          |    1
 1 | User <username>        | 2010-01-19 14:55 | Update         |    3
history list

Show history info for ID 2

[root ~]> yum history info 2
Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit
Transaction ID : 2
Begin time     : Tue Jan 19 15:10:13 2010
Begin rpmdb    : 2431:fe4c2c846fd45c9125fb8ab27542a27b22e0d3df
End time       :            15:10:27 2010 (14 seconds)
End rpmdb      : 2430:2eeb12b0b0f2ef3fcb31b4447b439e76e92e3866
User           : User <username>
Return-Code    : Success
Transaction performed with:
Installed    rpm-4.7.2-1.fc12.i686
Installed    yum-3.2.25-1.fc12.noarch
Installed    yum-plugin-fastestmirror-1.1.24-2.fc12.noarch
Packages Altered:
Erase        arora-0.10.2-2.fc12.i686
history info