Cleaning Archlinux – How to free up some space

When the root-disk is a little bit stuffed, pacman does not want to install updates anymore. Here is how to fix this.

On ArchWiki – System Maintenance, some information on how to clean the filesystem can be found:

1. Delete orphan packages

Check ArchWiki – Pacman/Tips and tricks for more info

Type pacman -Qtdq | pacman -Rns - for recursively removing orphans and their configuration files.

2. Clean the package cache

See ArchWiki – Pacman/Cleaning the package cache for more info

Type paccache -rk1 to delete all cached packages except one (the most current) version.

And Type pacman -Sc to remove all the cached packages that are not currently installed.