pacman -Syu
pacman -S <pkg>
pacman -Ss <keywords>
pacman -Rsn <pkg>
pacman -Rsc <pkg>
pacman -Qkk <pkg>
pacman -Ql <pkg>
pacman -Qo <file>
pactree <pkg>
pactree -r <pkg>
pacman -Qdt
pacman -Qe
pacman -Qii <pkg>
pacman -Qs <query>
pacman -U /var/cache/pacman/pkg/linux-5.7.8.arch1-1-x86_64.pkg.tar.zst
sudo reflector --verbose --latest 200 --country Germany --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
git clone https://aur.archlinux.org/package-query.git cd package-query/ makepkg -si cd .. rm -rf package-query/
git clone https://aur.archlinux.org/yay.git cd yay makepkg -si cd .. rm -rf yay/
Deletes cached versions of installed and uninstalled packages, except for the most recent 2:
paccache -r -k2
Remove package cache and currently unused sync databases:
pacman -Sc
Remove cached AUR package and any untracked Files in the cache (caution: this command removes pacman caches as well):
yay -Scc