“yum history” is an often overlooked but really useful feature provided in the CentOS/RHEL/Fedora systems. It allows you to perform a load of additional features that can save your skin in an enterprise environment.
It allows you to turn back the proverbial clock to the last functioning state of an application should there be an issue with a package update, without having to worry about dependencies and so on. Shown below is an example of “yum history” command output.
Understanding the “yum history” command output
Possible values and descriptions of the columns are shown below when checking a system’s yum transactions history. The “yum history” command outputs a table with the following columns:
The ID number of the transaction detailed in that row.
The user that executed the action. It can show the Full Name and/or username in system. When showing “System [unset]” its because it was not executed by a normal user but instead by system for an automatic update.
Date and time
The time stamp (DATE + TIME) of the transaction start execution.
Possible action executed in the transaction.
|U||Update||Package(s) updated to a newer version.|
|D||Downgrade||Package(s) downgraded to an older version.|
|O||Obsoleting||Package(s) marked as obsolete.|
Number of packages altered in the transaction, followed by some extra information if any available.
|<||The rpmdb database was changed outside Yum before the transaction ending.|
|>||The rpmdb database was changed outside Yum after the transaction ended.|
|*||The transaction failed to finish|
|#||Finished successfully, but yum returned a non-zero exit code.|
|E||Finished successfully, but an error or a warning was displayed.|
|P||Finished successfully, but problems already existed in the rpmdb database.|
|s||Finished successfully, but the –skip-broken command-line option was used and certain packages were skipped.|
CentOS / RHEL 6,7 : How to use yum history to roll back a yum update
CentOS / RHEL : How to view the commands executed in yum history command output