# Apt-Cacher NG

Apt-Cacher NG is a caching proxy, specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those. It is open source and self-hosted, installable on Docker Hub, Proxmox and Unraid.

Canonical page: https://ourlocalhost.com/app/561/apt-cacher-ng

## Description

Apt-Cacher NG is a caching proxy, specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those.

## Platform availability

Available on 2 of 9 platforms: Unraid, Proxmox.

## Health score

23/100 (Low), based on 3 of 4 factors.
- Maintained: 4 (last commit 691 days ago)
- Popular: 48 (242 GitHub stars)
- Easy to install: 30 (2 install platforms, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/sameersbn/apt-cacher-ng/
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=apt-cacher-ng
- Unraid: https://ca.unraid.net/apps/apt-cacher-ng-1jqujou1wsg8oi?q=apt-cacher-ng
- Official website: https://www.unix-ag.uni-kl.de/~bloch/acng/
- GitHub: https://github.com/sameersbn/docker-apt-cacher-ng
- Documentation: https://www.unix-ag.uni-kl.de/~bloch/acng/html/index.html

## Common questions

### What Docker port and volume should I expose for the sameersbn/apt-cacher-ng image?

Publish port 3142 and mount a persistent directory to /var/cache/apt-cacher-ng, for example /srv/docker/apt-cacher-ng:/var/cache/apt-cacher-ng.

### Which APT client setting keeps HTTPS repositories from being tunneled through apt-cacher-ng?

Add Acquire::https::Proxy "DIRECT" to the client configuration. Without that setting, apt can tunnel HTTPS repositories through the cacher.

### Does apt-cacher-ng include a web interface?

Yes, it has a web frontend for viewing statistic reports and triggering actions, such as importing already available package files into the cache.

### How can I restrict which clients may use the cache?

Use access controls such as IP interface, libwrap, inetd, or iptables, and you can also use a target port filter.

---
Source: Our Local Host (https://ourlocalhost.com/app/561/apt-cacher-ng), the self-hosted and open-source app directory.
