Re: rollback yum update for a single package?

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

 



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

--
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