Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Tuesday, January 27, 2015

Setting up Apt-Cache Server Using Apt-Cacher-NG Ubuntu

1)
Install apt-cacher-ng
#sudo apt-get install apt-cacher-ng

2)
Check CacheDir and LogDir

#sudo vim /etc/apt-cacher-ng/acng.conf

Example:
CacheDir: /var/cache/apt-cacher-ng
LogDir: /var/log/apt-cacher-ng

3)
Access the report page of apt-cacher-ng in web interface

http://192.168.56.101:3142

* Replace  "192.168.56.101" with IP of the machine where you installed "apt-cacher-ng"

4)
Create a apt.conf file with following content

#sudo vim /etc/apt/apt.conf
Acquire::http { Proxy "http://192.168.56.101:3142"; };


* Replace  "192.168.56.101" with IP of the machine where you installed "apt-cacher-ng"

5)
Install some software using apt-get.

#sudo apt-get install git

6)
Check the CacheDir

#ls /var/cache/apt-cacher-ng

==== Some Tips ====

a)
Restart apt-cacher-ng service

#sudo /etc/init.d/apt-cacher-ng restart

b)
http://www.tecmint.com/apt-cache-server-in-ubuntu/

c)
apt-get default cache location

#/var/cache/apt/archives/


No comments:

Post a Comment