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

RE: How to Reverse a Yum Update



 

> -----Original Message-----
> From: fedora-list-bounces redhat com 
> [mailto:fedora-list-bounces redhat com] On Behalf Of Jeff Vian
> Sent: Monday, July 25, 2005 6:27 PM
> To: For users of Fedora Core releases
> Subject: Re: How to Reverse a Yum Update
> 
> On Sun, 2005-07-24 at 22:14 -0400, Sam Varshavchik wrote:
> > 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.
> > 
> 
> By default the list of updated packages is in /var/log/yum.log
> >From there a list of updated packages is easy to see.
> 
> > 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.
> > 
> > 
> > --
> > fedora-list mailing list
> > fedora-list redhat com
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> --
> fedora-list mailing list
> fedora-list redhat com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> 

If you're not sure what has been updated check out /var/log/yum.log

	-Mike



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