[nzlug] apt-proxy like thing for yum

Nevyn nevynh at gmail.com
Fri Mar 16 14:29:26 NZDT 2007


Hi Michal,

I trawled through a message board and found this solution - seems a
tad hackerish (is that even a word) but the person who was going to
try it came back with a "you're a damn legend" type of response.

and I quote from http://forums.fedoraforum.org/archive/index.php/t-841.html
<quote>
If all of your machines are the same arch and use the same repos you
could set up a shared Yum cache like such:

- On your central machine, NFS (or Samba) export /var/cache/yum
(you'll have to export it RW).
- On each subsidiary machine set up autofs to automount the exported
yum cache to a location like /misc/yum (automounter takes control of
the mount point parent, so automount won't work well with /var/cache).
Make sure they mount it RW.
- On each subsidiary machine update yum.conf to use /misc/yum as the cache dir.

You can then run 'yum update' on the primary machine and 'yum -C
update' on your subsidiary machines. Run 'yum clean packages' after
updating the last subsidiary machine to clear out the package cache as
needed.

This method should keep you from having to download the bulk of the
updates more than once, though you'll still have some one-offs for
things that are difference between machines (for example, if one has
VNC installed and the others do not). Do note - I have not tested
this, so it's all theoretical. Let me know if it works!
</quote>

Actually was contemplating using this same sort of approach with apt
but never did get around to it.

On 3/16/07, Michal Ludvig <michal at logix.cz> wrote:
> Hi all,
>
> is there something like apt-proxy for use with YUM on RH/CentOS? I have
> a number of almost identical hosts and am not really keen to download
> the updates from the net X-times. I prefer to download them once and
> then serve to all hosts locally from a LAN.
>
> I could indeed rsync updates/i386 from some mirror, but that means
> downloading all updates ever released, not only those interesting for my
> fairly minimalistic hosts.
>
> Googling so far leads to nowhere but I may be asking wrong queries.
>
> Thanks
>
> Michal
>
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>



More information about the NZLUG mailing list