LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-30-2012, 03:10 PM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
yum downgrade help


rhel 5
just did a
yum update --security


now i want to back out all the updates it just did
how using yum? do i need to build a pkg list from /var/log/yum.log and do a loop with yum downgrade ? is there another way?
 
Old 08-30-2012, 11:57 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
you can use yum history.

Code:
yum history list
will show all transactions with the latest at the top of the list

use
Code:
yum history info #
where # is the number of the transaction, to see what was done.

Code:
yum history undo last
will undo the last transaction

Code:
yum history undo last-4
will undo the fourth from last transaction

Code:
yum history rollback-4
will rollback all the transactions to the fourth from last

man yum

Last edited by smoker; 08-31-2012 at 12:02 AM.
 
Old 08-31-2012, 08:46 AM   #3
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
ah, thnx. that will work.

i was stuck on yum downgrade for some reason, but i knew it was easier than yum downgrade. yum history is what i need.

i have to ask, where is yum history stored? my yum.log is already zipped via logrotate.
 
Old 08-31-2012, 10:41 AM   #4
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
hmm, when did yum history get into yum?

mine is v3.2.22-39 , i see that perhaps history is not available until 3.2.25 ??

if i upgrade to 3.2.25 can i use yum history undo from stuff that was done via an older yum?

if i cant get newer yum or it wont solve this issue, can i yum downgrade each of the packages shown in the yum.log file?

as a note, i recently did a yum update yum, it points to RHN repo, and only got 3.3.22-39

Last edited by Linux_Kidd; 08-31-2012 at 10:45 AM.
 
Old 09-01-2012, 02:39 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Sorry, I didn't realise how far behind RHEL was/is. Apparently history in RHEL starts with RHEL6. Fedora has had it since maybe 12 or 13, which is 2 or 3 years now.
You are probably stuck with using your original plan using downgrade and your yum log.
I wouldn't advise trying to install the latest yum on RHEL5, in case it breaks something, like RHN.
 
Old 09-01-2012, 03:17 PM   #6
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
i have a list of packages that were updated in yum.log, but have some questions there

some (one does) have this in front of package name "30:", what does this mean?

also, some packages have same name except for the 32bit 64bit ending, so do i list the whole name as seen in the log file?

and what dows downgrade actually do? does it back down the package to the last one before the installed version?

i run yum update --security, now i want to test backing out those changes.

and when i say latest yum, i run yum update yum but that only gets me the latest from the rhn repo, which is what i have now.

Last edited by Linux_Kidd; 09-01-2012 at 03:18 PM.
 
Old 09-01-2012, 05:15 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
downgrading is something that is not used much

i have only had to downgrade one program ONE time -- xorg ( one time for ONE operating system )
and that was for hardware support on OLD hardware


go through the list manually
then add a bunch of "exclude = ???? ???? ???? " to the yum repo files
that why the programs you did downgrade will NOT be updated
replace the ??? with the program name
 
Old 09-02-2012, 08:00 AM   #8
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
JohnVV


i have the list of packages yum update from yum.log

i need to know if a "downgrade" simply takes the package back one step or does a rollback, etc.

as example, my kernel package was say on rhel 5.6 (2.6.18-238) and then i run yum update --security. well, yum installs rhel 5.8 kernel (2.6.18-308) and skipped right over rhel v5.7 (2.6.18-274), so if i downgrade my 308 kernel packages does it downgrade back to 238 or does it step back one notch to 274?

i need to undo the updates that just happened bringing system back to the state it was prior to doing a yum update --security, etc

Last edited by Linux_Kidd; 09-04-2012 at 08:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Question for experienced yum users about 'yum downgrade' veeruk101 Linux - Newbie 5 10-29-2011 08:51 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
how to downgrade x michaewlewis Linux - Desktop 4 05-02-2007 08:35 AM
how to downgrade from 9.2 to 9.1 netsurf SUSE / openSUSE 10 04-10-2005 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration