apt-cacher
Caching proxy server for Debian/Ubuntu software repositories
Install
- All systems
-
curl cmd.cat/apt-cacher.sh
- Debian
-
apt-get install apt-cacher
- Ubuntu
-
apt-get install apt-cacher
- Kali Linux
-
apt-get install apt-cacher
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install apt-cacher
- Raspbian
-
apt-get install apt-cacher
- Dockerfile
- dockerfile.run/apt-cacher
apt-cacher
Caching proxy server for Debian/Ubuntu software repositories
Apt-cacher performs caching of files requested by apt-get (or other APT clients such as aptitude or synaptic). Apt-cacher can also proxy Debian Bugs SOAP requests for apt-listbugs. It is most useful for local area networks with slow internet uplink or as a method for reducing multiple large downloads. When a file or package is requested, the cache checks whether it already has the requested version, in which case it sends the package to the user immediately. If not, it downloads the package while streaming it to the user at the same time. A local copy is then kept for use by other users. Apt-cacher has been optimized for best utilization of network bandwidth and efficiency even on slow low-memory servers. Multiple ways of installation are possible: as a stand-alone HTTP proxy, as a daemon executed by inetd or as a CGI program (deprecated). Client machines are configured by changing APT's proxy configuration or modification of access URLs in sources.list. The package includes utilities to clean the cache (removing obsolete package files), generate usage reports and import existing package files. Optional features include a file checksum verification framework, IPv6 support, FTP and HTTPS (proxying only) support as well as the simultaneous caching of different repositories (e.g Debian and Ubuntu). Apt-cacher can be used as a replacement for apt-proxy, with no need to modify client's /etc/apt/sources.list files (and even reusing its config and cached data), or as an alternative to approx.