[Yum] How to delete old yumdb entries?

Mike Fleetwood mike.fleetwood at googlemail.com
Thu Sep 15 15:54:10 UTC 2011


On 15 September 2011 15:31, James Antill <james-yum at and.org> wrote:
> Mike Fleetwood <mike.fleetwood at googlemail.com> writes:
>
>> [root at rockover ~]# du -s /var/lib/yum/yumdb
>> 129596 /var/lib/yum/yumdb
>
>  What version of yum is this?
>  Can you try:
>
>  cp -a /var/lib/yum/yumdb /tmp
>  hardlink /tmp/yumdb
>  du -sh /tmp/yumdb

Yum 3.2.28

Hard linking saves about 60% space, 127M down to 52M.

I'm now going to use some of Ljubomir's details and identify entries
for no longer installed RPMs and delete them.

Thanks,
Mike
-- 

[root at rockover ~]# cp -a /var/lib/yum/yumdb /tmp
[root at rockover ~]# du -sh /tmp/yumdb
127M /tmp/yumdb
[root at rockover ~]# hardlink /tmp/yumdb
[root at rockover ~]# du -sh /tmp/yumdb
52M /tmp/yumdb


More information about the Yum mailing list