Skip to content

apt-cacher-ng

apt-cacher-ng

x86-64 arm64 ยท ๐Ÿณ Docker ยท Documentation ยท http://<your.IP>:3142

apt-cacher-ng is a caching HTTP proxy for Debian and Ubuntu apt repositories. The first host on the LAN to fetch a .deb populates the cache; every subsequent apt-get install / apt-get dist-upgrade on any other host serves the same package from local disk โ€” saving WAN bandwidth and turning multi-minute upgrades into seconds.

Key Features

  • Transparent HTTP proxy in front of deb.debian.org / archive.ubuntu.com / vendor mirrors
  • Single-port (3142), single-container deployment
  • Per-package hit-rate report at /acng-report.html
  • Survives container restart โ€” cache lives on a host bind-mount

Install from armbian-config โ†’ Software โ†’ Management โ†’ apt-cacher-ng

CLI install
armbian-config --cmd APT001

On each apt host on the LAN:

Bash
echo 'Acquire::http::Proxy "http://<your.IP>:3142";' \
  | sudo tee /etc/apt/apt.conf.d/00aptproxy
  • Cache: /armbian/apt-cacher-ng/cache/
Bash
docker logs -f apt-cacher-ng

All armbian-config commands

Action Command
Install armbian-config --api module_aptcacherng install
apt-cacher-ng remove armbian-config --api module_aptcacherng remove
apt-cacher-ng purge with cache folder armbian-config --api module_aptcacherng purge
Status armbian-config --api module_aptcacherng status
Help armbian-config --api module_aptcacherng help

Part of Armbian’s Remote File & Management tools software.