🗓️ 01062026 1727

PACMAN

Package Operations​

ActionCommand
Install packagesudo pacman -S pkgname
Install local filesudo pacman -U file.pkg.tar.zst
Remove packagesudo pacman -R pkgname
Remove + unused depssudo pacman -Rs pkgname
Full system updatesudo pacman -Syu
Search repospacman -Ss keyword
List installed packagespacman -Q
Find what owns a filepacman -Qo /path/to/file
List explicitly installedpacman -Qe

AUR Helpers​

yay and paru wrap pacman and add AUR support — same flags, plus AUR packages. Prefer them over raw pacman for day-to-day use. See yay for the command reference.

Cache Cleanup​

sudo pacman -Sc # remove old cached package versions
sudo pacman -Scc # remove all cached packages (more aggressive)

References​