Re: rollback yum update for a single package?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: joshua@xxxxxxxxxxxxxxxxx
> Sent: Mon, 05 May 2008 08:05:49 -0700
> To: redhat-list@xxxxxxxxxx
> 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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux