aptโcacherโng(8)
๐ apt-cacher-ng โ the manual, but make it make sense ๐
okay bestie, welcome to apt-cacher-ng(8) โ yes that's the manual section, she's a daemon, she's in section 8, she's iconic. sit down, grab a strawberry ๐, we're doing this.
โจ NAME โจ
apt-cacher-ng โ a caching proxy for software package downloads. that's the whole vibe: your packages get downloaded once, cached, and then served to everyone else like a queen sharing her snacks ๐
๐ธ SYNOPSIS ๐ธ
apt-cacher-ng [-c confdir] [-h] [optname=optvalue ...]
look at her. three little things to remember. that's it. periodt.
๐ฆ DESCRIPTION ๐ฆ
Apt-Cacher NG is a caching proxy for software packages โ the kind that get downloaded by Unix/Linux system distribution mechanisms, from mirror servers that you can reach over HTTP. so like, every time your system wants a .deb from some mirror, it can hit the cache first instead. lowkey genius, highkey saves bandwidth. ๐
๐ OPTIONS ๐
here are the command-line options apt-cacher-ng supports, no gatekeeping:
-cconfdir โ scan that specific configuration directory and interpret whatever config files are chillin' in there. yes, she'll actually read them. ๐-hโ a short option summary. the mini version. the trailer, not the whole movie.-iโ ignore some non-critical configuration errors at startup. > โ ๏ธ heads up bestie: running her like this regularly is not recommended. it's a "get me out of this one specific jam" button, not a lifestyle.-vโ turn up the verbosity in the log output. more words. more lore. more everything. โจ-eโ invoke the expiration task immediately after startup. > ๐ญ okay so, this one exists for legacy compatibility, and it can be dangerous to use because of filesystem permission issues โ as in, it can literally cause them. the manual says usingacngtoolto control these operations instead is the move. so likeโฆ don't, bestie. ๐ซถ- varname
=varopt โ any option that lives in the config can also be passed on the command line askey=valuepairs. config files but make it a one-liner. slay.
๐ CONFIGURATION ๐
Apt-Cacher NG gets configured by a multi-config directory, which is a fancy way of saying: the config is split across many files, all with names ending in .conf, all sitting in one single directory. very "everything in one group chat but organized by topic" of her.
Variables can override settings that were configured earlier in other files. and sometimes those settings get merged instead โ depends on the variable, because of course it does. ๐
The configuration directory is typically:
/etc/apt-cacher-ng
but it can be adjusted with the -c option โ check the systemd service file for the details, or honestly wherever your init system happens to start the daemon. iykyk.
On Debian systems, there are at least three files installed by default:
acng.confโ containing documented examples. the annotated textbook era. ๐security.confโ containing sensible data, and only readable for special users. ๐ private. exclusive. we love that for her.zz_debconf.confโ containing popular settings which are set by the Debian Configuration mechanism. thezz_is giving "i go last on purpose". ๐
๐ SIGNALS ๐
only a few signals get handled in non-default ways. most of them she just ignores like an ex's text. but these three? these three matter:
SIGUSR1โ closes and reopens the log files.SIGTERMandSIGINTโ close the log files and stop the daemon. that's the shutdown combo. ๐
โญ MORE INFORMATION โญ
want more lore on Apt-Cacher NG? go read the User Manual โ you can find it either in the doc/pdf directory of the software source package, or installed in the documentation directory of apt-cacher-ng by your distribution. either way, she's there waiting for you. ๐
and that's the whole page, bestie, no cap. go cache something. ๐ง
aptโcacherโng โ brought to you by Eduard Bloch, dated back in November 2007, and honestly? she's aged like fine wine. mwah. ๐ โจ๐
๐ฆ where this page comes from
- debian bookworm: apt-cacher-ng 3.7.4-1+b2
- debian trixie: apt-cacher-ng 3.7.5-1
- epel 9: apt-cacher-ng 3.7.4-5.el9 ยท BSD-4-Clause
- fedora 43: apt-cacher-ng 3.7.5-2.fc43 ยท BSD-4-Clause
- fedora 43: apt-cacher-ng 3.7.5-2.fc43 ยท BSD-4-Clause
- fedora 44: apt-cacher-ng 3.7.5-2.fc43 ยท BSD-4-Clause
- fedora 44: apt-cacher-ng 3.7.5-2.fc43 ยท BSD-4-Clause
- nixos 26.05: apt-cacher-ng 3.7.5
- nixpkgs unstable: apt-cacher-ng 3.7.5
- ubuntu jammy: apt-cacher-ng 3.7.4-1build1
- ubuntu noble: apt-cacher-ng 3.7.4-1ubuntu5
- ubuntu noble: apt-cacher-ng 3.7.4-1ubuntu5.24.04.1
- ubuntu questing: apt-cacher-ng 3.7.5-1
- ubuntu resolute: apt-cacher-ng 3.7.5-1.1
- ubuntu stonking: apt-cacher-ng 3.7.5-1.3
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms