APT Updates

APT Updates to be Cached by the Squid Proxy

Add the following to the bottom of the config /etc/squid/squid.conf

#proxying apt packages

refresh_pattern deb$ 1577846 100% 1577846

refresh_pattern udeb$ 1577846 100% 1577846

refresh_pattern Packages.gz$ 1440 100% 1440

cache_dir ufs /var/spool/squid 15000 2 8

maximum_object_size 512 MB

If there is an /etc/apt/apt.conf file add:

Acquire::http::proxy "http://server:port/";

Acquire::ftp::proxy "ftp://server:port/";

Acquire::https::proxy "https://server:port/";

I also have an apt.conf.d directory which has a

30autoproxy file

Which I've put Acquire::http::Proxy "http://server:port/";