Using apt-cache-ng to speed up APT packages download

Install

Install the program:

apt-get install apt-cache-ng

Configure

Edit /etc/apt-cacher-ng/acng.conf :

# Change to preferred storage location:
CacheDir: /mnt/usbhd/apt-cacher-ng

Fix for working with ubuntu

If running apt-cacher-ng on Debian squeeze, edit file /etc/apt-cacher-ng/backends_ubuntu, set content to:

http://hk.archive.ubuntu.com/ubuntu/

using

Set APT to use cache by:

cat <<EOT > /etc/apt/apt.conf.d/90apt-cacher
Acquire::http {Proxy "http://192.168.0.1:3142";};
EOT

- Or -

Edit /etc/apt/sources.list :

deb http://192.168.0.1:3142/ftp.hk.debian.org/debian/ lenny main contrib non-free
deb http://192.168.0.1:3142/security.debian.org/ lenny/updates main contrib
deb http://192.168.0.1:3142/ftp.tw.debian.org/debian-volatile/ lenny/volatile main contrib non-free

Reference

Directory structure of the cache dir:

$ tree -d /mnt/usbdisk/apt-cacher-ng

/mnt/usbdisk/apt-cacher-ng
|-- debrep
|   |-- dists
|   |   `-- lenny
|   |       |-- contrib
|   |       |   `-- binary-i386
|   |       |-- main
|   |       |   `-- binary-i386
|   |       `-- non-free
|   |           `-- binary-i386
|   `-- pool
|       `-- main
|           |-- d
|           |   `-- dialog
|           |-- l
|           |   `-- live-helper
|           |-- libt
|           |   `-- libterm-readline-gnu-perl
|           `-- t
|               `-- tree
|-- security.debian.org
|   `-- dists
|       `-- lenny
|           `-- updates
|               |-- contrib
|               |   `-- binary-i386
|               `-- main
|                   `-- binary-i386


tips/using_apt-cache-ng_to_speed_up_apt_packages_download.txt · Last modified: 2012-05-06 11:37 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0