These tables were originally listed in a GitHub wiki.
Pacman
These must be run with sudo.
| Command | Description |
|---|---|
pacman -Syu [package] |
Sync, refresh, upgrade, install |
pacman -Rsu [package] |
Remove recursively unneeded package |
pacman -Qs [string] |
Search local database |
pacman -Ss [string] |
Search sync database |
pacman -Qi [string] |
Get package info from local database |
pacman -Si [string] |
Get package info from sync database |
pacman -Scc |
Clean cache of installed and all packages |
pacman -Qett |
List explicitly-installed, non-dependency packages |
pacman -Qttdq \| pacman -Rs - |
Remove recursively all (optional) orphan dependencies quietly |
Pamac
These should not be run with sudo.
| Command | Description |
|---|---|
pamac search (-a) [string] |
Search Manjaro repo (and AUR) |
pamac install [package] |
Install package from Manjaro repo |
pamac build [package] |
Install package from AUR |
pamac upgrade (-a) |
Upgrade packages installed from Manjaro repo (and AUR) |
pamac remove [package] |
Uninstall package |
pamac remove -o |
Uninstall orphaned packages |
pamac clean -k [n] |
Clean cache (and keep n latest versions) |
Yay
These should not be run with sudo. Most flags that work with pacman will work with yay.
| Command | Description |
|---|---|
yay |
Upgrade packages |
yay [package] |
Upgrade and install package |
yay -Yc |
Remove unused dependencies |