RPM Package - Rollback

Is it possible to rollback a package in Redhat ?I don't want to delete any packages.

I have upgraded a package using rpm -Uvh & now i decided to use the old package, is it possible to revert it back to the original package ?

I think to rollback to a previous state, perform an rpm update with the --rollback option followed by a date/time specifier (the rollback is time-based because packages affect each other's configuration -- if you removed package a, then b, then c, and then rolled back only package a, the configuration could be broken). Some examples:

  • rpm -Uhv --rollback '9:00 am'
  • rpm -Uhv --rollback '4 hours ago'
  • rpm -Uhv --rollback 'december 25'

Repackaged files are stored in /var/spool/repackage.

Can anyone confirm if the above is correct ?? I am outside the VPN & don't have access right now to check.

Just for reference, in case if anyone faces the same problem again. Good one :slight_smile:

Transactions and Rollback with RPM