how to save bandwidth while package upgrades

Nicolas Barcet nick.barcet at canonical.com
Tue Nov 16 16:38:31 UTC 2010


On 11/16/2010 05:25 PM, Clint Byrum wrote:
> 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.

That's really cool.  Did not know about that one. Just found Jorge's
post about it [1] which I must have missed.

[1] http://castrojo.wordpress.com/2010/02/28/zeroconfing-squid-deb-proxy/

Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20101116/149d80b9/attachment.pgp>


More information about the ubuntu-server mailing list