tldr/pages/linux/pacman.md

36 lines
546 B
Markdown
Raw Normal View History

2014-01-30 04:45:28 +00:00
# pacman
> Arch Linux package manager utility.
2014-01-30 04:45:28 +00:00
- Synchronize and update all packages:
`pacman -Syu`
2014-01-30 04:45:28 +00:00
- Install a new package:
2014-01-30 04:45:28 +00:00
`pacman -S package-name`
- Remove a package and its dependencies:
2014-01-30 04:45:28 +00:00
`pacman -Rs package-name`
- Search the package database for a keyword:
2014-01-30 04:45:28 +00:00
`pacman -Ss icon theme`
- List installed packages and versions:
2014-01-30 04:45:28 +00:00
`pacman -Q`
- List only the explicitly installed packages and versions:
`pacman -Qe`
2016-01-05 02:19:53 +00:00
- Find which package owns a certain file:
2016-01-05 02:19:53 +00:00
`pacman -Qo filename`
- Empty package cache to free up space:
2016-01-05 02:19:53 +00:00
`pacman -Scc`