Re: How to delete old yumdb entries?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14 September 2011 23:16, Ljubomir Ljubojevic <office@xxxxxxxxxxxxxxx> wrote:
> Време: 09/14/2011 11:41 PM, Mike Fleetwood пише:
>>
>> Hi,
>>
>> I always upgrade my Fedora OS and this seems to have lead to a lot of
>> old entries in my yumdb for old packages from previous versions of
>> Fedora, which take quite a bit of space.  Is there anything special I
>> need to do to delete them or do I just use rm?
>>
>> Commands below suggest at about 3/4 of the entries are for old
>> packages from previous versions of Fedora.
>>
>> Thanks,
>> Mike
>>
> Be aware that higher/newer versions of Fedora (and RHEL/CentOS/SL) have used
> packages from older versions for newer versions. For example, in Fedora 15
> repo there are > several packages with .f12.
>
> Ljubomir Ljubojevic

Yes, that's true for my installation of Fedora 14 too.  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

-- 

[root@rockover ~]# rpm -qa | wc -l
2065
[root@rockover ~]# ls -d /var/lib/yum/yumdb/?/* | wc -l
5551
[root@rockover ~]# rpm -qa | sed 's/.*\(\.fc[0-9][0-9]*\).*/\1/' |
grep '^.fc' | awk '{c[$0] += 1} END{for(l in c) printf "%6d
%s\n", c[l], l}' | sort -n
1 .fc4
3 .fc10
3 .fc3
4 .fc9
7 .fc8
8 .fc5
11 .fc11
14 .fc6
143 .fc13
192 .fc12
1566 .fc14
[root@rockover ~]# bc
scale=2
100*1655/2065
80.14
100*192/2065
9.29
100*143/2065
6.92
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux