If you run multiple machines on a network, it makes sense to cache your package downloads. The
bbacngclient package and
apt-cacher-ng are used to facilitate this.
Choose a machine on your network to be your server. We prefer to use a CNAME to identify this machine e.g.
debcache so we can move this service among machines without affecting clients.
$ sudo apt-get install apt-cacher-ng
You don't need to change anything but if you're interested, the manual for the configuration is available here.
That's it! Your server is ready.
To take advantage of your cache, you'll need to configure your client. You can install the
bbacngclient with package source available here.
$ sudo apt-get install bbacngclient
You'll be asked for the name of your package cache server and the port (default
3142). It simply adds a proxy to
/etc/apt/apt.conf.d/ in the form of
02proxy. If you run into any trouble with your cache server, you can simply remove this file.
NOTE: I haven't been able to find a way to support repositories that are on ports other than 80.