LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-22-2014, 07:28 PM   #1
wwipro
LQ Newbie
 
Registered: Jun 2011
Posts: 29

Rep: Reputation: Disabled
rollback yum update on CentOS 6


I did # yum update on a CentOS 6 box.

ID | Login user | Date and time | Action(s) Altered
----------------------------------------------
22 | root <root> | 2014-04-22 15:56 | E, I, U 300 EE


# yum history info 22
Loaded plugins: fastestmirror, refresh-packagekit, security
Transaction ID : 22
Begin time : Tue Apr 22 15:56:50 2014
Begin rpmdb : 946:ba84735507bc51a280d5a0a9985107e8bf1b396a
End time : 16:35:11 2014 (38 minutes)
End rpmdb : 961:8b9a2813c1a3c89ddfeca4abc00e5e97c055549d
User : root <root>
Return-Code : Success
Command Line : update
Transaction performed with:
Updated rpm-4.8.0-32.el6.i686 @base
Updated yum-3.2.29-40.el6.centos.noarch @base
Installed yum-metadata-parser-1.1.2-16.el6.i686 @anaconda-CentOS-201207051201.i386/6.3
Updated yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201207051201.i386/6.3
Packages Altered:
Updated ModemManager-0.4.0-3.git20100628.el6.i686 @base
Update 0.4.0-5.git20100628.el6.i686 @base
Updated NetworkManager-1:0.8.1-61.el6_4.i686 @updates
... (skip a few)
Updated yum-plugin-security-1.1.30-14.el6.noarch @anaconda-CentOS-201207051201.i386/6.3
Update 1.1.30-17.el6_5.noarch @updates
Updated yum-utils-1.1.30-14.el6.noarch @anaconda-CentOS-201207051201.i386/6.3
Update 1.1.30-17.el6_5.noarch @updates
#

Like to rollback the update I just did.
Reason? Prepare procedure to rollback a major update on RH/CentOS 6 environment. Don’t want to do any update on production environment without a valid recovery strategy.

Issue command:
# yum history redo 22
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-distro.cavecreek.net
* extras: centos-distro.cavecreek.net
* updates: mirrors.easynews.com
Undoing transaction 22, from Tue Apr 22 15:56:50 2014
Updated ModemManager-0.4.0-3.git20100628.el6.i686 @base
Update 0.4.0-5.git20100628.el6.i686 @base
Updated NetworkManager-1:0.8.1-61.el6_4.i686 @updates
Update 1:0.8.1-66.el6.i686 @base
Updated NetworkManager-glib-1:0.8.1-61.el6_4.i686
@updates
Update 2.0.8-21.el6.centos.i686 @base
Updated abrt-addon-ccpp-2.0.8-16.el6.centos.1.i686 @updates
Update 2.0.8-21.el6.centos.i686 @base
Failed to downgrade: ModemManager-0.4.0-3.git20100628.el6.i686
Failed to downgrade: 1:NetworkManager-0.8.1-61.el6_4.i686
Failed to downgrade: 1:NetworkManager-glib-0.8.1-61.el6_4.i686
Failed to downgrade: 1:NetworkManager-gnome-0.8.1-61.el6_4.i686
Failed to downgrade: abrt-2.0.8-16.el6.centos.1.i686
Failed to downgrade: abrt-addon-ccpp-2.0.8-16.el6.centos.1.i686
… (skip a few)
---> Package krb5-workstation.i686 0:1.10.3-10.el6_4.6 will be a downgrade
---> Package krb5-workstation.i686 0:1.10.3-15.el6_5.1 will be erased
---> Package libXfont.i686 0:1.4.5-2.el6 will be a downgrade
---> Package libXfont.i686 0:1.4.5-3.el6_5 will be erased
---> Package libgdata.i686 0:0.6.4-2.el6 will be erased
… (skip a few)
Error: Package: yum-3.2.29-40.el6.centos.noarch (base)
Requires: yum-metadata-parser >= 1.1.0
Removing: yum-metadata-parser-1.1.2-16.el6.i686 (@anaconda-CentOS-201207051201.i386/6.3)
yum-metadata-parser = 1.1.2-16.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
#

Seems like yum history redo is only working when rolling back single package.

O/S: CentOS 6.

Thanks.
 
Old 04-23-2014, 08:33 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Could you try:
Code:
yum history redo force-reinstall 22
 
Old 04-26-2014, 01:16 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
or
http://www.if-not-true-then-false.co...redo-undo-new/
 
  


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
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
centos yum update LinuxLover Linux - Server 2 09-01-2009 04:07 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

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

All times are GMT -5. The time now is 03:27 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