apk-cache(5)
π¦ apk-cache(5) Β· File Formats Manual π¦
okay so bestie, welcome to the File Formats Manual page for apk-cache(5) β yes, the manual name is folded right in here, no boring header copy, we move π
.
π NAME π
/etc/apk/cache β the local cache of package files. That's the whole vibe: it's where apk keeps its cache. π
β¨ DESCRIPTION β¨
If /etc/apk/cache is a symlink to a local directory, then apk(8) will use it as a local cache for downloaded package files and repository indices. periodt. π«Ά
If this symlink does not exist or is dangling, then /var/cache/apk will be used to cache repository indices only. Not the package files, bestie β repository indices only. iykyk. π
β οΈ big warning vibes: the cache must not reside on a tmpfs. no cap, do not do it. π
To enable the apk cache, run these commands as root β literally copy these, fr fr:
mkdir -p /var/cache/apk
ln -s /var/cache/apk /etc/apk/cache
For information on cache maintenance, see apk-cache(8). π§
xoxo, apk-cache(5) π β File Formats Manual, dated 2026-11-02 π«Ά
π¦ where this page comes from
- arch rolling: apk-tools 3.0.9-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms