[Yum-devel] program for yum-utils

seth vidal skvidal at phy.duke.edu
Wed Jul 27 21:01:36 UTC 2005


On Tue, 2005-07-26 at 07:42 -0500, Trevor Cordes wrote:
> 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.

I appreciate it - but I don't think I'm likely to include a perl
yum-util. If only b/c it would mean an extra dep in the package but also
b/c 'eww perl' :)

thanks.

-sv





More information about the Yum-devel mailing list