Link to home
Start Free TrialLog in
Avatar of pankajgadhari
pankajgadhariFlag for United States of America

asked on

RHEL5 rollback using rpm

In rhel5, we can rollback the system if the updates fails, using rpm -Uvh --rollback '2 hours ago". I just want to know whether it is possible to list all the rollback transactions using rpm or yum so that i can select to which rollback date/time i have to put the system back.
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pankajgadhari

ASKER

This directory contains all the packages repackaged, which will contain all the previous updates applied. Is there a single command for this to directly list the tid,time & date so that we can select the time we need to restore.

Also, everytime we update, whether these directory will be overwritten or the old packages keep accumulating in the directory ?
The packages will accumulate.

I'm not certain of your question.

You can do an:

ls -lt /var/spool/repackage/PACKAGE*

or

ls -lt /var/spool/repackage | grep "MMM DD"
Solution was as expected