Solved

RHEL5 rollback using rpm

Posted on 2010-08-25
4
1,121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
Jan Springer earned 250 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

734 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