clear yum cache

Les Mikesell lesmikesell at gmail.com
Sat Dec 3 20:07:41 UTC 2005


On Sat, 2005-12-03 at 13:58, Schlaegel wrote:

> > This means that it deletes the packages it's downloaded and installed
> > on your machine.  It's a cache of what's been downloaded.  It won't
> > download them again as they're already installed.  Only newer versions
> > will be downloaded.
> >
> > Using yum clean headers will, however, force you to download all the
> > header files again so if you're looking to avoid downloading things
> > again, then avoid yum clean headers.
> 
> I am in a similar situation. I use the same yum cache for two machines
> and am on a very slow link, so I don't ever want to delete the most
> recent version of a package. I also don't have a lot of extra disk
> space, so I don't like to keep around multiple versions of every
> package.
> I end up manually preening the cache by hand, which is far from ideal.
> I haven't had the time or bravery to experiment with the built in
> mechanism for cleaning the cache.

After you have updated the 2nd machine, a
yum clean packages
should do the right thing because they will already
be installed in both.

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the users mailing list