Re: How to delete old yumdb entries?

Mike Fleetwood <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <CAMU1PDhKtbZh4-tKKVvSxyHETPXkhopN7HB2M3JHe1CtyAC0Bw@mail.gmail.com>
On 15 September 2011 15:31, James Antill <[email protected]> wrote:
> Mike Fleetwood <[email protected]> writes:
>
>> [root@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@rockover ~]# cp -a /var/lib/yum/yumdb /tmp
[root@rockover ~]# du -sh /tmp/yumdb
127M /tmp/yumdb
[root@rockover ~]# hardlink /tmp/yumdb
[root@rockover ~]# du -sh /tmp/yumdb
52M /tmp/yumdb
_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.