Nando @ Aria Media

( learning Clojure ColdFusion Lucee Javascript jQuery Angular CSS Linux Apache HTML5 & etc )

How to Rollback Yum Updates on CentOS

| Comments

1) Open the yum config file:

1
vi /etc/yum.conf

and ensure the following line is included in the config settings

1
tsflags=repackage

2) Open the rpm macro file ( or create it if it doesn’t exist ):

1
vi /etc/rpm/macros

And ensure the following line is included:

1
%_repackage_all_erasures 1

Now the rollback flag can be used on the rpm command as shown in the examples below to roll back updates to any point in the past:

1
2
3
4
rpm -Uvh –rollback ’21:00′
rpm -Uvh –rollback ’3 hours ago’
rpm -Uvh –rollback ‘august 13′
rpm -Uvh –rollback ‘yesterday’

Simple.

Comments