gritpack cache
Inspect, check and clean the shared cache of downloaded packages
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 files |
-h, --help | Print 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 files |
--format <FORMAT> | Output format: human or 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, --help | Print 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 files |
--format <FORMAT> | Output format: human or 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, --help | Print 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 files |
--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 |
--apply | Remove the selected files; without it, only report what would go |
--format <FORMAT> | Output format: human or 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, --help | Print help |