Yum update and backuout plan

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.
mokkanAsked:
Who is Participating?
 
farzanjCommented:
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?
0
 
mokkanAuthor Commented:
When  yum updates the packages, do you know where it keeps all the information?
0
 
Joseph GanSystem AdminCommented:
The information is under /var/cache/yum.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Joseph GanSystem AdminCommented:
There are two sub-dirs under /var/cache/yum keep the information, so backup "base" and "updates" before run yum update.
0
 
mokkanAuthor Commented:
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?
0
 
mokkanAuthor Commented:
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'.
0
 
Joseph GanSystem AdminCommented:
Normally before any patching, backup the whole OS as well, not just backup yum information if you were not sure about the patches/packages.
0
 
mokkanAuthor Commented:
Thank you for all of your info.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.