Re: yum downloadonly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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):

repo=/path/to/cache
archive=/path/to/archive
repomanage --old $repo | while read package; do
    mv "$package" $archive
done

-- 
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

Attachment: pgpR2G18mtNhQ.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux