Installing apt-cacher-ng proxy to accelerate installations and save bandwidth


The Installation is quite simple. On a Debian or Ubuntu just type:
apt-get install apt-cacher-ng
This will install the package and already start the service.

Then you will have to point you clients to use your proxy when installing new packages. Therefore just create /etc/apt/apt.conf.d/01proxy with the following content:
Acquire::http { Proxy "http://10.0.1.100:3142"; };
whereas 10.0.1.100 should be replaced with the IP or FQDN of your apt-cacher-ng server and 3142 is the default port to connect to (you might need to adapt firewall settings accordingly).

When installing new packages on your client, your proxy should have some entries in its log file: /var/log/apt-cacher-ng/apt-cacher.log

This will save some time and bandwidth as your apt-cacher-ng Server will keep once downloaded packages cached locally and serve them directly to your clients!