[Yum-devel] clean up sooner
Neal Becker
ndbecker2 at gmail.com
Tue Feb 14 02:43:50 UTC 2006
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.
More information about the Yum-devel
mailing list