Empty the entire pacman cache

pacman

  • Arch Linux package manager utility.
    Some subcommands such as `pacman sync` have their own usage documentation.
    More information: <https://man.archlinux.org/man/pacman.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo pacman -Scc

click the source code to copy install pacman on any operating system with command-not-found.com