how to save bandwidth while package upgrades
Clint Byrum
clint at ubuntu.com
Tue Nov 16 16:25:57 UTC 2010
On Tue, 2010-11-16 at 10:31 +0100, Nicolas Barcet wrote:
> On 11/16/2010 10:02 AM, Tapas Mishra wrote:
> > Here is a mail in /var/mail/root which I received in my server logs
> > http://paste.ubuntu.com/532866/
> > I see same packages downloaded many times again and again.
> > The servers which are upgrading are total 5 (4 virtual machines and one host)
> > so is there a way I can save bandwidth on this sort of setup.
>
> You should setup a local package proxy. This can be done using packages
> such as squid-deb-proxy or apt-cacher-ng and adding the following line
> in /etc/apt/apt.conf.d/00Proxy :
> Acquire::http { Proxy "http://IPAddress:port"; };
>
You don't need to add any config files if you are using squid-deb-proxy.
Just install it on one box (with lots of extra disk space and a good
network connection!) and then install squid-deb-proxy-client on all of
your machines on the same LAN that need to use it, and it installs the
appropriate apt-conf.d file to pick it up from the avahi publish.
More information about the ubuntu-server
mailing list