Pacman Cheatsheet

CommandParamsDescription
pacman -Syu<pkg>Sync package list and install <pkg>.
pacman -S<pkg>Install <pkg> only.
pacman -Rsc<pkg>Uninstall <pkg>.
pacman -Ss<keyowrd>Search <keyword>.
pacman -SyuN/ASync package list and update available packages.

Query(Q) Commands

CommandParamsDescription
pacman -QN/AList all installed packages with version
pacman -QqN/AList all installed packages without version
pacman -QeN/AList explictly installed packages with version
pacman -QqeN/AList explictly installed packages without version
pacman -Ql<pkg>List all files owned by a given <pkg>
pacman -Qi<pkg>Display information on a given <pkg>
pacman -Qii<pkg>Display information on a given <pkg> (more than single i)
pacman -Qs<keyword>Search each locally-installed package for names or descriptions that match regexp