yum downloadonly

Todd Zullinger tmz at pobox.com
Fri Jul 20 18:02:29 UTC 2007

Justin W wrote:
> I've been keeping the cache, but now with so many updates, I've got
> a bunch of older versions which have newer packages also downloaded.
> Is there a utility which will cleanup the older packages and leave
> the newer ones? If I can find that, I sure I could then devise a way
> to combine yum, cron, "that" utility, rsync, createrepo, and the
> priority plugin for yum to download the minimal amount of stuff for
> multiple servers/desktops/virtual machines (right now I only have
> one, and this problem is one of a couple reasons why I haven't
> expanded yet).

Check out repomanage from yum-utils.  You could use it something like
this to move old packages to an archive dir (or remove them):

repomanage --old $repo | while read package; do
    mv "$package" $archive

Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
The problem is not that the world is full of fools. The problem is
that lightning isn't being distributed right.
    -- Mark Twain

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070720/f1e8aa24/attachment-0002.bin 

More information about the users mailing list