LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 10-31-2012, 09:26 PM   #1
t0nypx
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
rpm rollback failing with an error


Hi,

Running RHEL5u5 and recently ran 'yum update' to update 'latest' and 'patch' however I need to rollback. I have the rollback settings correct but I get an error when trying to rollback.

[root@bnetst50 ~]# rpm -Uhv --rollback 'August 1'
warning: /var/spool/repackage/ImageMagick-6.2.8.0-4.el5_1.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
[root@bnetst50 ~]#

Is there a way to force or bypass this?

t0nypx
 
Old 11-01-2012, 12:02 AM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, Arch
Posts: 572

Rep: Reputation: 64
On Fedora, the rpm command doesn't have a --rollback option.

But yum has a rollback command. But it doesn't take a date argument.

But if the rpm command is correct, are you sure it didn't complete? It gave a warning, not an error.

But if it didn't complete, you could try rpm's --nosignature switch to tell it to not verify the package signature. (But naturally, that's not advisable.)
 
Old 11-01-2012, 12:16 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,477

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
i do not think rhel5 had the role back option


not even sure rhel6 dose

fedora dose and so dose Opensuse ( why ?? who knows)

but rolling back is mostly a Microsoft concept


red hat tests things very extensively
and this is the older 5.5 and not he current 5.8 in the 5 series
so you DO have a support contract

You ARE paying RedHat $299 ( or more) per year for support

You might want to use it


if you want to use an older rpm than is in the repos
you will also NEED to add a "exclude " option in the repo files to prevent it from updating

- and it is a royal hassle to do that --

RedHat tech support can talk you through setting that up



what is that version of imagemagick killing that you MUST use some other old version of it?
 
Old 11-01-2012, 12:38 AM   #4
t0nypx
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the replies guys.

rpm Rollback is not supported in 6 but it is in 5.

I updated 'latest' and 'addons' & 'patches' when I just wanted to update 'patches'. The only thing imagemagick* is killing is my ability to rollback all the packages I mistakenly updated. Normally when I do a rollback of updated packages it skips through each one and restores them, it takes quite a while (25mins) and in the end I reboot and they previous kernel is the only one there. Now when I do the 'rpm -Uhv --rollback' in runs for 20seconds and all I see is the above error.

I tried with the --nosignature option and all it does is return after 20 seconds with no output, like it did nothing.

Thanks.... any other suggestions welcome please
 
Old 11-01-2012, 02:11 AM   #5
t0nypx
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
it looks like my only way out of this is to 'yum erase <package>' and this removes any pre-requisites etc. In my case I will be removing kernel patches that relate to RHEL5u8, even though i'm running RHEL5u5. Then I amend my yum config just to look at 'patches' and this now finds only patches related to RHEL5u5 and I am still then using '2.6.18-194.32.1.0.1.el5xen' as opposed to where I was when I previously updated and was seeing '2.6.18-308.13.1.0.1.el5'

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
rhel rpm rollback mgloc Linux - Software 2 06-30-2011 02:08 AM
Best way to rollback software in rpm? exceed1 Linux - Software 2 05-22-2010 10:25 AM
how to do rollback with the same package name using RPM amit_pansuria General 2 05-28-2008 02:08 PM
LXer: RPM Rollback in Fedora Core 4/5 LXer Syndicated Linux News 0 01-22-2006 11:16 PM
RPM Rollback (Patch installation) adme Linux - General 3 04-15-2003 04:27 PM


All times are GMT -5. The time now is 01:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration