Menu

gitpiper

Pacman Cheat Sheet in April 2024

Last Updated: 11 April 2024

README.md

Commands

{: .-three-column}

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
{: .-prime}

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.

Other

Command Description
pactree <pkg> What does pkg depend on?
pactree -r <pkg> What depends on pkg?

References


338+ more cheat sheets for you in April 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️