apk-cache(8) | System Manager's Manual | apk-cache(8) |
NAME
apk cache - manage a local cache of package files
SYNOPSIS
apk cache [<options>...] clean
apk cache [<options>...] download [dependency...]
apk cache [<options>...] purge
apk cache [<options>...] sync [dependency...]
DESCRIPTION
Manage local package cache by removing obsolete packages, or downloading missing or newer packages from the repositories.
apk cache download will fetch package files from the repositories and store them in the cache, which must be enabled upfront (see apk-cache(5)). By default world dependencies are used to determine what to download. If dependency arguments are given, they will by default replace the world.
apk cache clean will remove package files which no longer exist in any repository index. Specifying the global option --purge will additionally remove all uninstalled package on tmpfs installations, and all packages on disk installations.
apk cache purge is a synonym for clean --purge.
apk cache sync performs both operations.
OPTIONS
--add-dependencies
-a, --available
--ignore-conflict
-l, --latest
-u, --upgrade
-s, --simulate
2024-10-29 |