Forrest logo
back to the pacman tool

pacman:tldr:515fa

pacman: Empty the entire pacman cache.
$ sudo pacman -Scc
try on your machine

The command sudo pacman -Scc is used in the Arch-based operating systems, such as Arch Linux and Manjaro, to remove all the packages and their associated files located in the package cache.

Here is a breakdown of the command:

  • sudo: It is a command in Linux and Unix-based systems that allows a user to execute commands with administrative or "superuser" privileges. It stands for "Super User DO".

  • pacman: It is the package manager used in Arch-based distributions to install, update, and manage software packages.

  • -Scc: These flags are provided to the pacman command to specify the action to be taken. -S is used to sync the package database and upgrade the system, and cc instructs pacman to remove all the packages and their associated files located in the package cache.

By executing sudo pacman -Scc, you are removing all files stored in the package cache, which can free up disk space on your system. However, be cautious when using this command as you won't be able to downgrade packages or reinstall packages without re-downloading them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pacman tool