Skip to content

Instantly share code, notes, and snippets.

@bardware
Created March 1, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bardware/98bd3664607930b12fd85877d214f566 to your computer and use it in GitHub Desktop.
Save bardware/98bd3664607930b12fd85877d214f566 to your computer and use it in GitHub Desktop.
Clear pacman cache
You can also define how many recent versions you want to keep. To retain only one past version use:
# paccache -rk1
Add the u switch to limit the action of paccache to uninstalled packages. For example to remove all cached versions of uninstalled packages, use the following:
# paccache -ruk0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment