Caching ubuntu / debian packages with apt-cache-ng

Caching ubuntu / debian packages with apt-cache-ng  For years I had only mobile (CDMA and currently HSPA) connection to the internet. This limited speed forced me to look ways to save the bandwith.

   I'm using apt-cacher-ng to cache ubuntu packages. This way when one computer fetches an package, the package is stored on caching server and  the others can get it from the local cache. Great software to limit the need of bandwidth usage as well as speed up upgrade and installation processes. 

 

 

Setting up apt-cacher-ng 

Using apt-cacher-ng to cache ubuntu packages on the home server 

Install apt-cacher-ng to the home server (192.168.1.17)

apt-get install apt-cacher-ng

On the client side (the apt-cacher-ng server should also act as an client)

Create file /etc/apt/apt.conf.d/02proxy and add line

Acquire::http { Proxy "http://192.168.1.17:3142"; };

Then try it out 

apt-get update ; apt-get upgrade