gritpack cache

Inspect, check and clean the shared cache of downloaded packages

Generated from gritpack cache --helpGritpack 1.2.63
gritpack cache [OPTIONS] <COMMAND>

Commands

status
Show the cache's size and state without reading the files
verify
Check that every cached package file is intact and well formed
prune
Remove old files or shrink the cache; only reports unless --apply is given

Options

--cache-dir <CACHE_DIR>Directory of the shared cache of downloaded package filesEnvironment: GRITPACK_CACHE_DIR · Default: ~/.frogfish/gritpack/cache
-h, --helpPrint help

gritpack cache status

Show the cache's size and state without reading the files

gritpack cache status [OPTIONS]

Options

--cache-dir <CACHE_DIR>Directory of the shared cache of downloaded package filesEnvironment: GRITPACK_CACHE_DIR · Default: ~/.frogfish/gritpack/cache
--format <FORMAT>Output format: human or jsonDefault: human · Values: human, json
--json[=<FIELDS>]Same as --format json; --json=name,version keeps only those fields
--jq <EXPRESSION>Print the JSON output through a jq expression, strings unquoted
-h, --helpPrint help

gritpack cache verify

Check that every cached package file is intact and well formed

gritpack cache verify [OPTIONS]

Options

--cache-dir <CACHE_DIR>Directory of the shared cache of downloaded package filesEnvironment: GRITPACK_CACHE_DIR · Default: ~/.frogfish/gritpack/cache
--format <FORMAT>Output format: human or jsonDefault: human · Values: human, json
--json[=<FIELDS>]Same as --format json; --json=name,version keeps only those fields
--jq <EXPRESSION>Print the JSON output through a jq expression, strings unquoted
-h, --helpPrint help

gritpack cache prune

Remove old files or shrink the cache; only reports unless --apply is given

gritpack cache prune [OPTIONS]

Options

--cache-dir <CACHE_DIR>Directory of the shared cache of downloaded package filesEnvironment: GRITPACK_CACHE_DIR · Default: ~/.frogfish/gritpack/cache
--max-bytes <MAX_BYTES>Maximum retained cache size, for example 512MiB or 5GiB
--max-age-days <MAX_AGE_DAYS>Select files older than this many days that are not being written
--applyRemove the selected files; without it, only report what would go
--format <FORMAT>Output format: human or jsonDefault: human · Values: human, json
--json[=<FIELDS>]Same as --format json; --json=name,version keeps only those fields
--jq <EXPRESSION>Print the JSON output through a jq expression, strings unquoted
-h, --helpPrint help