6 Pacman is the package manager for Arch linux and its derivatives.
14 | Command | Description |
15 | ----------------------- | --------------------------------- |
16 | `pacman -Syu <pkg>` | Install (and update package list) |
17 | `pacman -S <pkg>` | Install only |
18 | `pacman -Rsc <pkg>` | Uninstall |
19 | `pacman -Ss <keywords>` | Search |
20 | `pacman -Syu` | Upgrade everything |
25 | Command | Description |
26 | -------------------- | -------------------------------------- |
27 | `pacman -Qe` | List explictly-installed packages |
29 | `pacman -Ql <pkg>` | What files does this package have? |
30 | `pacman -Qii <pkg>` | List information on package |
32 | `pacman -Qo <file>` | Who owns this file? |
34 | `pacman -Qs <query>` | Search installed packages for keywords |
38 | Command | Description |
39 | ----------------------------- | --------------------------- |
40 | `pacman -Qdt` | List unneeded packages |
41 | `pacman -Rns $(pacman -Qdtq)` | Uninstall unneeded packages |
43 Avoid orphans by using `pacman -Rsc` to remove packages, which will remove unneeded dependencies.
47 | Command | Description |
48 | ------------------ | -------------------------- |
49 | `pactree <pkg>` | What does _pkg_ depend on? |
50 | `pactree -r <pkg>` | What depends on _pkg_? |
54 * [Pacman tips and tricks](https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks) _(wiki.archlinux.org)_