| Hidden rollback function of Yum |
|
|
|
| Written by Martijn van Leeuwen |
| Monday, 04 May 2009 15:27 |
|
One of the least-known secrets about rpm is that it can rollback (undo) package changes. It can take a fair bit of storage space to track the information necessary for rollback, but since storage is cheap, it’s worthwhile enabling this feature on most systems. Here are cut-to-the-chase directions on using this feature:
If/when you want to rollback to a previous state, perform an rpm update with the –rollback option followed by a date/time specification. Some examples: rpm -Uhv –rollback ‘9:00 am’, rpm -Uhv –rollback ‘4 hours ago’, rpm -Uhv –rollback ‘december 25′. |


