[Yum-devel] program for yum-utils

Trevor Cordes trevor at tecnopolis.ca
Tue Jul 26 12:42:13 UTC 2005


I just caught the notice about yum-utils in the FC weekly news.

I recently wrote a perl script to clean out the /var/cache/yum 
packages/headers in such a way as to keep the most recent version of every 
package but delete all obsoleted packages.  I need something like this 
because I setup new FC boxes all the time and I like to have all the 
latest packages on a CD-RW I can copy into /var/cache/yum and then yum 
won't have to use the net so much for each new machine.  It saves about 
400MB of downloads per new FC3 box.  If I don't clean the obsolete 
packages, the total size exceeds CD capacity (and it's a waste of space 
anyways).

It's like a "yum clean obsolete" command.

It's very short, in perl, and uses the RPM2 CPAN module for the RPM 
file decoding.

If this sounds useful, I can provide the code for GPL in yum-utils.  Or, 
someone can code it into yum proper in python.  I'm sure I'm not the only 
one who's ever wanted to do this "clean obsolete" function.



More information about the Yum-devel mailing list