Thursday, July 9, 2026

How to install install paccache

 --https://share.google/aimode/6Z0fD6GeYOUHF6C2I

You cannot install paccache directly via pamac because it is not a standalone package. Instead, paccache is a script provided by the pacman-contrib package. You can install it using pamac on your Arch-based system (such as Manjaro or EndeavourOS) by running: [1, 2, 3, 4, 5]
pamac install pacman-contrib [1]
Using paccache
Once installed, paccache allows you to efficiently prune your /var/cache/pacman/pkg/ directory and reclaim valuable disk space. [1, 2]
Common maintenance commands include:
  • Remove all except the last 3 versions of each package: sudo paccache -r
  • Remove all except the most recent version: sudo paccache -rk 1
  • Remove all cached versions for uninstalled packages: sudo paccache -ruk 0
  • Perform a dry-run (view which packages will be removed without deleting them): sudo paccache -dr [1, 2]
Using pamac alternatives
Alternatively, pamac has built-in commands to clean your cache natively. You can clean both the build cache and the package cache using: [1, 2, 4]
pamac clean [1]
For a visual walkthrough of setting up and using paccache, watch the following tutorial:
Would you like to know how to set up an automated system hook (using systemctl or pacman-hooks) so that paccache runs automatically after every system update? [1, 2]

No comments: