Yum Rollbacks
- Dec
- 21
- Posted by TKH Specialist
- Posted in System Administration
Very occasionally installing a package or updates with yum can have unexpected results. Fortunately yum provides the ability to roll back anything it installs. Here is an example of what these commands look like:
# 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 simply issue the command:
# yum history undo "#"
Where the trailing “#” is the ID number from the yum history output.
Good luck.
Recent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS