Undo Update on CentOS

- - Tech Stuff

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!

 

 


Oh hi there šŸ‘‹
It’s nice to meet you.

Sign up to receive awesome content in your inbox, every month.

We don’t spam! Read our privacy policy for more info.

Post Tags:
Join the Newsletter

Sign up for our personalized daily newsletter

Kodesmart

#1 GUIDE TO DRUPAL, WORDPRESS, CSS AND CUSTOM CODING | BEGINNER TO PRO

Leave a Reply

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