
If you aren’t sure what happened in a particular transaction, you can get more details with yum history info. ID | Command line | Date and time | Action(s) | Alteredġ0 | install rpm-4.14.3-13.el8 | 18:58 | Downgrade | 6 Use yum history to display the transaction history. Now I upgrade the package to the latest version: # yum upgrade rpm # output omitted Demonstrationįirst, I will show the OS I am using, and the current version of a package: # cat /etc/redhat-release using 8 will undo all transaction numbers (9 and up) that have happened since then, but 8 will not be undone.


The transaction number you use will install the packages as they were after the transaction number specified. Replace 8 with the transaction you want to roll your system back to. If you are using a newer system that uses dnf, the process should work the same as demonstrated.įor those in a hurry, it is only two steps. I will demonstrate the process by installing an update on a CentOS 8 VM, then undoing the transaction. In order for this to work, the previous versions of any packages in the transaction must exist in the repositories. You can undo a yum update by undoing the relevant transaction(s). Distributions that use yum or dnf track package changes with a transaction log. While uncommon, sometimes a package update can cause problems.
