Re: How to Reverse a Yum Update

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

 



Ping-Wu Zhang writes:

After a yum update, suppose something goes wrong and I want to revert
back to the state before the yum update, how do I do that?  Thanks

If you preserved the list of all the packages that yum updated, you can work
backwords and derive from it a list of all the packages that were removed.

If you did not preserve a list, something like:

rpm -q -a --queryformat '%{INSTALLTIME} %{NAME}-%{VERSION}-%{RELEASE}\n' | sort -n

gives the list of all installed packages, sorted by installation time. I
suppose that on x86_64 you'll need to throw an %{ARCH} in there, also.

Examining the timestamps at the end of the list you should be able to
determine which batch of packages were installed recently.

Then, you cross-reference that list of packages against the contents of the
installation disks and update channels, and come up with the list of
packages that were removed.

Then, you'll have to manually reinstall the older versions of each package,
using the right combination of magic flags that tell rpm to accept an
“upgrade” to an older version of each package.  This is not an automatic
process -- this is manual, tedious grunge work.


Attachment: pgpqaQSMM1ItX.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux