[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

Re: How to delete old yumdb entries?

Време: 09/15/2011 12:48 PM, Mike Fleetwood пише:
On 15 September 2011 09:49, Frank Murphy<frankly3d@xxxxxxxxx>  wrote:
On 15/09/11 09:15, Mike Fleetwood wrote:
  About 80% of
my packages are new in Fedora 14, with 9% and 7% from Fedora 12 and 13
respectively and a handful from older one too.  I still have nearly
three times as many yumdb entries than the number of RPMs currently
installed, which must be for old packages.


if yo dont' want to go the full "yum clean all",
try "yumdb --help"
to see what options are available to you.
yum-utils must be installed for this (iirc).

I tried yum clean all and it hasn't reduced the size of yumdb at all.

"yum clean all" will only clean yum cache for the repositories. That has nothing to do with database of already installed packages.

Yum cache: /var/cache/yum....

> YumDB:
> Since yum 3.2.26 yum has started storing additional information about > installed packages in a location outside of the rpmdatabase. None of > the information stored there is critical to performing its function
> but it enhances the user experience and makes it possible to know
> more about the context in which a package was installed.

> /var/lib/yum/yumdb/<letter>/$checksum-packagename-$ver-$rel.$arch>
> /keyname

> Each keyname is a file and the contents of that file are the values.

According to this and little investigation, you should check each


file and see for what version it was installed. My guess is that string in releasever file will determine if file was from 12.0, 13.0, etc...

Ljubomir Ljubojevic
Yum mailing list

[Home]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Red Hat 9 Bible]     [Fedora Bible]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

  Web www.spinics.net