Solved

RHEL5 rollback using rpm

Posted on 2010-08-25
4
1,092 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 28

Accepted Solution

by:
Jan Springer earned 250 total points
Comment Utility
ls -lt /var/spool/repackage
0
 
LVL 1

Author Comment

by:pankajgadhari
Comment Utility
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 28

Expert Comment

by:Jan Springer
Comment Utility
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
Comment Utility
Solution was as expected
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now