SETUP-APKCACHE(8)
π
SETUP-APKCACHE β the setup-apkcache page from section 8 of the System Manager's Manual β¨
okay bestie, so this is the manual page for setup-apkcache and honestly? it's a whole lil glow-up for your package situation. let's get into it π«Ά
πΈ NAME πΈ
setup-apkcache β configure the apk package cache, no cap
π SYNOPSIS π
setup-apkcache [-h] [DIR]
π¦ DESCRIPTION π¦
so setup-apkcache literally sets up a local directory for caching apk packages that you downloaded from the network. why do we care? because a cache lets packages be installed before the network is even available β like at boot time, bestie. main character energy for your offline era π
the directory you pick gets mounted if it needs to be, and then /etc/apk/cache is created as a symbolic link pointing right at it. iconic behavior, honestly.
if you don't hand it a DIR, the script just prompts you interactively. very "let's figure this out together" of it π₯°
and the value none disables caching entirely. periodt.
β¨ OPTIONS β¨
-hβ display usage information and then exit. that's it, that's the whole flag. short and sweet π
π§ INTERACTIVE MODE π§
if you don't pass a DIR argument, the script suggests a cache directory for you. the suggestion gets chosen from this whole list, in order:
- the current
/etc/apk/cachesymlink target, if there is one /media/LBU_MEDIA_/cache_(fromlbu.conf)/media/usb/cache(when/dev/usbdiskexists)/var/cache/apk(when root is not on tmpfs)noneotherwise
the prompt accepts none if you wanna skip it entirely, or ? for help text that describes the purpose of a local cache. ask questions, babe, it's encouraged π
π FILES π
/etc/apk/cacheβ symbolic link to the cache directory. the little pointer that could π
β EXIT STATUS β
0β success. slay π- non-zero β an error occurred. π
π SEE ALSO π
apk(8), setup-lbu(8), setup-alpine(8) β go read those next, iykyk
π AUTHORS π
Natanael Copa <ncopa@alpinelinux.org> and others π«Ά
fr fr, one thing to keep in your notes app: /etc/apk/cache being a symlink is the whole trick here, so don't go replacing it with a real directory and then act surprised π
Alpine Linux Β· version dated 2026-06-09 Β· SETUP-APKCACHE(8) β that's the whole page bestie, go cache some packages, mwah ππΈ
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms