Pacman cheatsheet

 

Common commands

Command Description
pacman -Syu <pkg> Install (and update package list)
pacman -S <pkg> Install only
pacman -Rsc <pkg> Uninstall
pacman -Ss <keywords> Search
pacman -Syu Upgrade everything

Query

Command Description
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

Command Description
pacman -Qdt List unneeded packages
pacman -Rns $(pacman -Qdtq) Uninstall unneeded packages

Avoid orphans by using pacman -Rsc to remove packages, which will remove unneeded dependencies.


Reacties

Populaire posts van deze blog

Adjust Color Temperature of Your Screen Using Terminal

CrunchBang++ Linux – The Ultimate Lightweight and Stable Linux Distribution

Snapdrop = AirDrop for Windows, Mac, Linux & Android