apk-cache(5)

apk-cache5

Local cache of package files

Overview

If /etc/apk/cache is a symlink to a local directory, apk(8) will use it as a local cache for downloaded package files and repository indices. The cache must not reside on a tmpfs.

To enable the apk cache, run the following commands as root:

mkdir -p /var/cache/apk
ln -s /var/cache/apk /etc/apk/cache

For information on cache maintenance, see apk-cache(8).

From apk-tools 3.0.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.