May 6, 2019 82 Views 0 Comment

Undo Update on CentOS


Have you ever needed to undo an update on CentOS to fix an unintended catastrophic bug that occurred after installing some new package(s)..? Only a week ago this was me 🙁 and the culprit was “yum update”! After upgrading several packages on one of my web server’s I noticed that several PHP application were suddenly broken. Reporting many issues of depreciated code to errors that never existed in the first place. With no fix in site I needed to rollback an update on CentOS right away.

Easy Guide to Rollback an Update on CentOS

Fetch a list of installed updates on the system along with their transaction ID by running:

yum history


Remove the associated update by running the following command along with the ID corresponding to the update you wish to rollback:

yum history undo 17

This will completely remove the last updates from the system. There is no need to reboot!