Fundamentals of the Arch Linux package manager (pacman) also used by Manjaro Linux.
List / show / query installed packages
pacman -Q
- Show installed packages with versions
pacman -Qq
- Show installed packages with minimal information (name only)
pacman -Qe
- Show explicitly installed packages with versions
pacman -Qi
- Show installed packages with all information
pacman -Qh
- Show available options for displaying installed packages
Remove package
pacman -R
- Remove a package
pacman -Rs
- Remove a package and unnecessary dependencies
pacman -Ru
- Remove unneeded packages
pacman -Rv
- Remove a package verbosely
pacman -Rh
- Show available options for removing packages
Install package
pacman -S
- Install a package
pacman -Sp
- Dry-run show instead of installing a package
pacman -Su
- Upgrade installed packages
pacman -Sy
- Refresh package databases
pacman -Sh
- Show available options for installing packages
10 / 2022