diff options
author | Timo Teräs <timo.teras@iki.fi> | 2023-01-31 15:14:54 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2023-01-31 15:16:04 +0200 |
commit | cf468e297b73b034eb20f867bee5206c93436754 (patch) | |
tree | 24e37582b3883d49abb6a230938541dd07886870 /doc | |
parent | 609fd2187031c2401bbaa303b3cb877ab29eb44c (diff) | |
download | apk-tools-cf468e297b73b034eb20f867bee5206c93436754.tar.gz apk-tools-cf468e297b73b034eb20f867bee5206c93436754.tar.bz2 apk-tools-cf468e297b73b034eb20f867bee5206c93436754.tar.xz apk-tools-cf468e297b73b034eb20f867bee5206c93436754.zip |
cache: improve and document purging
Document cache clean --purge better. Add a cache purge alias for
it. And also purge installed package copies on disk installs.
fixes #10857
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apk-cache.8.scd | 8 | ||||
-rw-r--r-- | doc/apk.8.scd | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/doc/apk-cache.8.scd b/doc/apk-cache.8.scd index e5a9b6f..0a04123 100644 --- a/doc/apk-cache.8.scd +++ b/doc/apk-cache.8.scd @@ -10,6 +10,8 @@ apk cache - manage a local cache of package files *apk cache* [<_options_>...] download [_dependency_...] +*apk cache* [<_options_>...] purge + *apk cache* [<_options_>...] sync [_dependency_...] # DESCRIPTION @@ -23,7 +25,11 @@ 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. +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. diff --git a/doc/apk.8.scd b/doc/apk.8.scd index d924041..edaa031 100644 --- a/doc/apk.8.scd +++ b/doc/apk.8.scd @@ -171,8 +171,10 @@ The following options are available for all commands. Write progress to the specified file descriptor. *--purge* - Delete modified configuration files on package removal and uninstalled - packages from cache on cache clean. + Purge modified configuration and cached packages. Enables deletion of + modified configuration files on package removal. On cache clean action + this enables deletion of unneeded cached packages (uninstalled packages + on tmpfs installations or all packages on disk installations). *--repositories-file* _REPOFILE_ Override system repositories, see *apk-repositories*(8). Specifying this |