Re: How to delete old yumdb entries?
Ljubomir Ljubojevic <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Organization | PL Computers s.z.t.r |
| Message-ID | <[email protected]> |
Време: 09/15/2011 12:48 PM, Mike Fleetwood пише: > On 15 September 2011 09:49, Frank Murphy<[email protected]> 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. >>> >>> Thanks, >>> Mike >> >> 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 /var/lib/yum/yumdb/<letter>/$checksum-packagename-$ver-$rel.$arch>/releasever 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 [email protected] http://lists.baseurl.org/mailman/listinfo/yum