Yum update and backuout plan

Posted on 2011-04-28
Medium Priority
Last Modified: 2012-06-21
If we are updating patches using yum update all and if there is a problem. How do we make the blackout plan? When it updates? Where does it keep the information?  Please let me know.
Question by:mokkan
  • 4
  • 3

Author Comment

ID: 35483774
When  yum updates the packages, do you know where it keeps all the information?
LVL 31

Accepted Solution

farzanj earned 1000 total points
ID: 35483937
It keep a database and you can see information about a particular RPM by issuing the following command

rpm -qi <package_name>

This information also includes Install Date.

You can get the install date of all the RPMS very easily.

What do you want to do?
LVL 16

Expert Comment

by:Joseph Gan
ID: 35489147
The information is under /var/cache/yum.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 1000 total points
ID: 35489163
There are two sub-dirs under /var/cache/yum keep the information, so backup "base" and "updates" before run yum update.

Author Comment

ID: 35490583
What I want to do is that I wan to execute  yum update all. IF there is any issues come on the package, I want  re-install. I want to check the log to see what are the packages have been upated, and I can go through and re-install.

What do you guys normally do?

Author Comment

ID: 35490853
Can I do some thing like tihs?

 tsflags=repackage to /etc/yum.conf
 add %_repackage_all_erasures 1 to /etc/rpm/macros
 rpm -Uvh --rollback '20 hours ago'.
LVL 16

Expert Comment

by:Joseph Gan
ID: 35498650
Normally before any patching, backup the whole OS as well, not just backup yum information if you were not sure about the patches/packages.

Author Closing Comment

ID: 35768706
Thank you for all of your info.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 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