🗓️ 01062026 1727
Package Operations
| Action | Command |
|---|---|
| Install package | sudo pacman -S pkgname |
| Install local file | sudo pacman -U file.pkg.tar.zst |
| Remove package | sudo pacman -R pkgname |
| Remove + unused deps | sudo pacman -Rs pkgname |
| Full system update | sudo pacman -Syu |
| Search repos | pacman -Ss keyword |
| List installed packages | pacman -Q |
| Find what owns a file | pacman -Qo /path/to/file |
| List explicitly installed | pacman -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)