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