The following command synchronizes the repository databases and updates system's packages
sudo pacman -Syu
To remove all the cached packages that are not currently installed, and the unused sync database, execute:
pacman -Sc
If you want to clean Arch Linux, visit