Downgrade to previous version: yum

Sometime yum update just breaks everything. We experienced this, and had to go backup to previous versions.

In RHEL6 and RHEL7 you can run this command:

yum history list all

which will give you a list of transactions ID’s. Now you just need to figure out how far you want to go back in the history, and do the roll back with:

yum history undo N

where N is the number of transaction ID.

[code lang=”bash”][root@P1servername01 tmp]# yum history list all
Loaded plugins: product-id, search-disabled-repos, subscription-manager
ID | Login user | Date and time | Action(s) | Altered
——————————————————————————-
64 | Jon Doe | 2017-10-31 16:25 | Install | 1 EE
63 | Jon Doe | 2017-10-31 16:25 | Erase | 1 EE
62 | root | 2017-10-31 04:25 | Update | 10
61 | Ingvar Nielsen | 2017-10-21 15:09 | E, I, O, U | 69 E<
60 | root | 2017-10-17 04:25 | Update | 3 >
59 | root | 2017-10-10 04:25 | Update | 4
58 | Jon Doe | 2017-10-04 11:39 | Install | 1
57 | root | 2017-09-26 04:25 | Update | 6
56 | Tram Trong | 2017-09-15 09:37 | E, I, U | 6
55 | root | 2017-09-12 04:25 | E, I, U | 53 EE
54 | Jon Doe | 2017-08-23 12:00 | I, U | 3 EE
53 | Jon Doe | 2017-08-23 11:05 | Install | 2
52 | root | 2017-08-22 04:25 | Update | 2
51 | Ingvar Nielsen | 2017-08-19 11:05 | E, I, U | 9
50 | Jon Doe | 2017-08-14 11:57 | Install | 1
[/code]

Leave a Reply

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