Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


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

Rep: Reputation: Disabled
rpm rollback failing with an error


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- Header V3 DSA signature: NOKEY, key ID 1e5e0159
[root@bnetst50 ~]#

Is there a way to force or bypass this?

Old 10-31-2012, 11:02 PM   #2
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 666

Rep: Reputation: 91
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 10-31-2012, 11:16 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,307

Rep: Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536Reputation: 2536
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 10-31-2012, 11:38 PM   #4
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, 01:11 AM   #5
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-' as opposed to where I was when I previously updated and was seeing '2.6.18-308.'



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

All times are GMT -5. The time now is 08:39 PM.

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