Yum Rollbacks

Faculty, students, and staff can roll back packages or updates they installed using yum. 

Very occasionally, installing a package or updates with yum can yield unexpected results. Thus, yum provides the ability to roll back anything it installs. Below is an example of what these commands look like:

yum history output
# yum history Loaded plugins: package_upload, product-id, search-disabled-repos, security, subscription-manager ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 11 | root <root> | 2016-12-16 13:20 | Install | 8 10 | root <root> | 2016-12-16 10:38 | Install | 1 9 | root <root> | 2016-12-16 08:05 | Install | 1 8 | root <root> | 2016-12-15 15:37 | Install | 1 7 | root <root> | 2016-12-15 13:29 | Install | 10 6 | root <root> | 2016-12-15 12:55 | Install | 5 < 5 | root <root> | 2016-12-08 14:51 | I, O, U | 381 >E 4 | root <root> | 2016-12-08 14:45 | Install | 4 3 | root <root> | 2016-12-08 14:12 | I, U | 32 EE 2 | root <root> | 2016-12-08 14:11 | Install | 1 1 | System <unset> | 2016-12-08 13:50 | Install | 644


To reverse any of these yum actions, enter the following command:

Using yum undo
# yum history undo "#"

Here, the trailing # is the ID number from the yum history output.

This code will put the system packages back to the version they were running prior to this yum installation or upgrade.

Related Articles