Pacman
Common commands
pacman -Syy # update the software database
pacman -S <pkg> # Install only
pacman -Rsc <pkg> # Uninstall
pacman -Rsc*n* <pkg> # Uninstall (and remove configuration files)
pacman -S*s* <keywords> # Search
pacman -Syu # Upgrade everything
pacman -Syu <pkg> # Install (and update package list (and upgrade everything else ! )
pacman -S*w* <pkg> # Download a package without installing it
pacman -U <local_path> # install from local (e.g. package is from the AUR)
Query
pacman -Qe # List explictly-installed packages
pacman -Ql <pkg> # What files does this package have?
pacman -Qii <pkg> # List information on package
pacman -Qo <file> # Who owns this file?
pacman -Qs <query> # Search installed packages for keywords
Orphans
pacman -Qdt # List unneeded packages
pacman -Rns ili pacman -Qdtq # Uninstall unneeded packages
Other
pactree <pkg> # What does pkg depend on?
pactree -r <pkg> # What depends on pkg?
pacman -Sc # remove all the cached packages that are not currently installed
pacman -Scc # remove all files from the cache
Configuration file
Configuration file is in: /etc/pacman.conf
Look:
Top comments (0)