On Tue, Mar 03, 2009 at 10:34:15AM +1100, Rodd Clarkson wrote:
I can't help but wonder whether a useful feature on yum wouldn't be to
have an option for one of the boxed in the local network to become a
'repo' of sorts.
It sounds to me that you would get really all what you desire
basically "for free" by NFS mounting 'packages' subdirectories of
/var/yum/cache/* from a common location and while configuring yum on
machines using that with "keepcache=1". Metadata will remain
"private" on each machine. You can also use 'autofs' with a timeout
to perform mountings on demand.
Of course it is advisable then to drop, from time to time, obsoleted
packages from such cached set. Some years ago I wrote myself a
script which finds such old packages, comparing only within the same
architecture using mtime for that which worked the best in practice,
and later I rewrote that in Perl for speed. It only lists its
finding and it is up to you what to do with these. It is attached
here.
Michal