Yum roll back an update on centos
Yum roll back an update on centos:
Date Posted: 16-06-2017
There are few scenarios after installing new packages, some functionality may break. In such scenario, its hard to figure out what went wrong so we immediately want to revert back. In this post, we will explain on how to roll back yum update which we did.
Resolution:
Let’s check out yum history list first.
yum history
The sample output looks similar below.
ID | Login user | Date and time | Action(s) | Altered
——————————————————————————-
17 | root <root> | 2017-06-16 03:30 | Install | 2 EE
16 | root <root> | 2017-06-16 03:28 | Install | 63
15 | root <root> | 2017-06-16 03:20 | Install | 8
14 | root <root> | 2017-06-15 06:18 | Install | 1
13 | root <root> | 2017-06-14 02:50 | Install | 2
12 | root <root> | 2017-06-12 03:43 | I, U | 9
11 | root <root> | 2017-06-08 12:20 | Install | 1
Note down the ID of recent update and installation date. We will use this ID to roll back the update.
yum history undo 17
where 17 is the ID.
Press Y to continue to remove the installed package.