2025-03-14 21:59:59 -06:00
|
|
|
# paccache
|
|
|
|
|
|
|
|
|
|
> A `pacman` cache cleaning utility.
|
|
|
|
|
> More information: <https://manned.org/paccache>.
|
|
|
|
|
|
|
|
|
|
- Remove all but the 3 most recent package versions from the `pacman` cache:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`paccache {{[-r|--remove]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set the number of package versions to keep:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`paccache {{[-rk|--remove --keep]}} {{num_versions}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Perform a dry-run and show the number of candidate packages for deletion:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`paccache {{[-d|--dryrun]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Move candidate packages to a directory instead of deleting them:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`paccache {{[-m|--move]}} {{path/to/directory}}`
|