Tuesday, July 7, 2015

Install apt-cacher-ng

Server configuration and test
Install apt-cacher-ng
 # apt-get install apt-cacher-ng
Check your server using browser and enter URL 
http://localhost:3142/apt-cacher

Client configuration
Configure apt by creating a new file 01proxy at directory /etc/apt/apt.conf.d/ and add a line Acquire::http::Proxy "http://<IP address or hostname of the apt-cacher server>:3142";
For example, file /etc/apt/apt.conf.d/01proxy contain:
Acquire::http { Proxy "http://192.168.1.10:3142"; };

No comments:

Post a Comment