

As you see in the above output, I have totally 3185 cached packages. $ sudo ls /var/cache/pacman/pkg/ | wc -lĢ. First, check first how many cached packages are available in my cache folder. Clean the package cache in Arch Linux using Paccacheġ.
DESKTOP CLEANER APPLICATIONS ARCHLINUX HOW TO
This brief tutorial teaches how to properly clean the package cache in Arch Linux and its derivatives using paccache script. Except the 3 most recent package versions, It will delete all cached versions of each package regardless of whether they're installed or not. Paccache will keep the 3 most recent package versions by default. So, you don't have to bother with installation steps. The Paccache script is provided by the Pacman package itself. This is where the Paccache script comes in handy. You can only install them from the Arch Linux official repositories. So, if you cleaned all old packages, you have no choice to install them from the Cache folder. This is not a recommended way.īecause, sometimes you might want to downgrade a particular package to its older version. However, this command will remove all cached old versions and leave only the versions of packages which are currently installed available. You can clean the cached packages by running sudo pacman -Sc command. Pacman has a built-in option to remove all cached packages. So, it is recommended to clean the package cache periodically in Arch Linux to free up the hard disk's space. After a particular period of time, the cache folder will grow bigger in size. We also know that Pacman will not delete old or uninstalled packages automatically from the cache.
