0

How to rollback YUM UPDATES

Once in a while you might have problems after running "yum update." There is an intermediate solution by rollback feature included in YUM.

THIS OPTION IS NOT ENABLED BY DEFAULT.

1. To enable rollback edit /etc/yum.conf and add

tsflags=repackage

2. Add the following line into /etc/rpm/macros file if it doesn't exist and add

%_repackage_all_erasures 1

now you are all set and can use the following examples to rollback

rpm -Uvh --rollback '22:00'
rpm -Uvh --rollback '3 hours ago'
rpm -Uvh --rollback 'june 13'
rpm -Uvh --rollback 'yesterday'

All previous repackaged software will be stored onto /var/spool/repackage

jlim0930

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.