flexible pacman cache cleaning utility
Remove all but the 3 most recent package versions from the pacman cache
Set the number of package versions to keep
Perform a dry-run and show the number of candidate packages for deletion
Move candidate packages to a directory instead of deleting them
paccache <operation> [options] [targets...]
Paccache removes old packages from the pacman cache directory. By default the last three versions of a package are kept.
Perform a dry run, only finding candidate packages.
-m, --move <dir>
Move candidate packages from the cache directory to dir.
Remove candidate packages from the cache directory.
-a, --arch <arch>
Scan for packages for a specific architecture. Default is to scan for all architectures.
--min-atime <time>, --min-mtime <time>
Keep packages with an atime/mtime that is not older than the time given, even if this means keeping more than specified through the --keep option. Accepts arguments according to info "Date input formats", e.g. 30 days ago.
-c, --cachedir <dir>
Specify a different cache directory. This option can be used more than once. Default is to use the cache directory configured in pacman.conf.
Apply force to mv and rm operations.
Display syntax and command line options.
-i, --ignore <pkgs>
Specify packages to ignore, comma-separated. Alternatively "-" can be used to read the package names from stdin, newline-delimited.
-k, --keep <num>
Specify how many versions of each package are kept in the cache directory, default is 3.
Remove color from the output.
Minimize the output.
Target uninstalled packages.
Increase verbosity, can be specified up to 3 times.
Use null delimiters for candidate names (only with -v and -vv).
The package cache can be cleaned periodically using the systemd timer paccache.timer. If the timer is enabled the cache will be cleaned weekly with paccache’s default options.
Bugs? You must be kidding; there are no bugs in this software. But if we happen to be wrong, file an issue with as much detail as possible at https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/new.
Johannes Löthberg <email@example.com>
Daniel M. Capella <firstname.lastname@example.org>
For additional contributors, use git shortlog -s on the pacman-contrib.git repository.