[Yum-devel] clean up sooner

seth vidal skvidal at linux.duke.edu
Tue Feb 14 03:01:09 UTC 2006


On Mon, 2006-02-13 at 21:43 -0500, Neal Becker wrote:
> On Monday 13 February 2006 4:10 pm, Pekka Pietikainen wrote:
> > On Mon, Feb 13, 2006 at 03:43:52PM -0500, seth vidal wrote:
> > > > I wonder if yum would avoid some problems by cleaning old packages
> > > > sooner? (I'm just guessing here that smart 'clean' means removing old
> > > > package).
> > >
> > > It means changing around the sort order for a transaction. Right now yum
> > > uses rpm's transaction sort.
> >
> > Yes please. There's nothing to ruin your day worse than a remote 1000
> > package yum update where your ssh hangs midway -> yum exits -> you end up
> > with dupes in your rpm database, and repomanage + rpm -Uvh --force *.rpm
> > tricks in the cache directory is to clear things up.
> >
> 
> BTW, I use rpm -e --justdb --nodeps to fix these.  For example, today's fiasco 
> left things like:
> 
> thing-1.2.3.x86_64.rpm
> thing-1.2.3.2.1.x86_64.rpm
> 
> You can't rpm-e the old one since they share the same files, right?  But just 
> tell rpm database to forget it is probably safe.

yes - you can rpm -e the old one. You can even yum remove the old one.


rpm is intelligent enough to know what files to leave or not.

-sv





More information about the Yum-devel mailing list