A caching proxy. Specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those.
Step 1: Install Packages
The ModSecurity module for Apache is included in the default Debian/Ubuntu repository. To install it, run
# sudo apt install apt-cacher-ng
Enable the service and start it
# sudo systemctl enable apt-cacher-ng # sudo systemctl start apt-cacher-ng
Step 2: Configure apt-cacher-ng
In the /etc/apt-cahcer-ng/acng.conf
configuration file, change and set the following options:
PassThroughPattern: .* VerboseLog: 2
Step 3: Configure clients
On each of the clients that you want to automatically set caching through the new apt-caching server, define the following inĀ /etc/apt/apt.conf.d/01proxy
Acquire::http::proxy "http://your-apt-cacher-server.com:3142/";