[go: up one dir, main page]

0% found this document useful (0 votes)
1K views2 pages

Pacman Cheat Sheet

This document provides a cheatsheet of common commands for the pacman package manager in Arch Linux. It lists commands for installing, upgrading, uninstalling, searching for packages and querying package information. It also describes how to list explicitly installed, orphaned, and required packages and check package dependencies and reverse dependencies.

Uploaded by

Ibukun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views2 pages

Pacman Cheat Sheet

This document provides a cheatsheet of common commands for the pacman package manager in Arch Linux. It lists commands for installing, upgrading, uninstalling, searching for packages and querying package information. It also describes how to list explicitly installed, orphaned, and required packages and check package dependencies and reverse dependencies.

Uploaded by

Ibukun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

23/09/2018 Pacman cheatsheet

C H E AT S H E E T F O R

Pacman

Commands

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.

Other

Command Description

pactree <pkg> What does pkg depend on?

https://devhints.io/pacman 1/2
23/09/2018 Pacman cheatsheet

Command Description

pactree -r <pkg> What depends on pkg?

References

Pacman tips and tricks (wiki.archlinux.org)

https://devhints.io/pacman 2/2

You might also like