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
STEP #1
Fetch a list of installed updates on the system along with their transaction ID by running:
yum history
Ā
STEP #2
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!
Ā
Ā