rollback yum update for a single package?
Alec O'Neill
alec.oneill at inbox.com
Mon May 5 21:33:20 UTC 2008
> -----Original Message-----
> From: joshua at itsecureadmin.com
> Sent: Mon, 05 May 2008 08:05:49 -0700
> To: redhat-list at redhat.com
> Subject: Re: rollback yum update for a single package?
>
> Alec O'Neill wrote:
>> Thanks for your feedback, Chet.
>>
>> Looks like none of the old RPMs are available anymore.
>>
>> The environment is an undocumented bunch of small boxes, most of them
>> running some web environment on top of RHEL ranging from 2.1 to 5.1. No
>> two boxes are the same.
>>
>> Unless someone knows how to rebuild packages based on the binaries on
>> the system, I guess I'll just have to risk it.
>>
>
>
> One way to enable rollback is to set the following value in your
> /etc/yum.conf:
>
> tsflags=repackage
>
> This will place the removed RPM in /var/spool/repackage
>
> I also enable this for the rpm command, by placing the following entry
> in /etc/rpm/macros:
>
> %_repackage_all_erasures 1
>
>
> This will also place the "erased" RPM in /var/spool/repackage.
>
> I would also recommend setting up a process to prune these packages
> before big patching events to make rolling back easier (ie, no guess
> work on which packages you've updated).
>
> HTH,
> Josh Miller, RHCE
Yes, that sure does help, Josh.
But to take this one step further, could you repackage without erasing? I'd like to keep upgrade times to a minimum, so ideally, I'd run a yum check-updates, repackage all the ones that need updating, and then run the update during the maintenance window.
Thanks,
Alec
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth
More information about the redhat-list
mailing list