Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RHEL5 rollback using rpm

Posted on 2010-08-25
4
Medium Priority
?
1,140 Views
Last Modified: 2013-12-15
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.
0
Comment
Question by:pankajgadhari
  • 2
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
Jan Springer earned 750 total points
ID: 33530651
ls -lt /var/spool/repackage
0
 
LVL 1

Author Comment

by:pankajgadhari
ID: 33532041
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 ?
0
 
LVL 29

Expert Comment

by:Jan Springer
ID: 33532252
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"
0
 
LVL 1

Author Closing Comment

by:pankajgadhari
ID: 33621885
Solution was as expected
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month7 days, 3 hours left to enroll

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question