1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/pacman.md

37 lines
652 B
Markdown
Raw Normal View History

2014-01-29 21:45:28 -07:00
# pacman
> Arch Linux package manager utility.
> More information: <https://man.archlinux.org/man/pacman.8>.
2014-01-29 21:45:28 -07:00
- Synchronize and update all packages:
`pacman -Syu`
2014-01-29 21:45:28 -07:00
- Install a new package:
2014-01-29 21:45:28 -07:00
`pacman -S {{package_name}}`
2014-01-29 21:45:28 -07:00
- Remove a package and its dependencies:
`pacman -Rs {{package_name}}`
2014-01-29 21:45:28 -07:00
2016-12-29 20:24:05 +01:00
- Search the package database for a regular expression or keyword:
2014-01-29 21:45:28 -07:00
`pacman -Ss "{{search_pattern}}"`
2014-01-29 21:45:28 -07:00
- List installed packages and versions:
2014-01-29 21:45:28 -07:00
`pacman -Q`
- List only the explicitly installed packages and versions:
`pacman -Qe`
2016-01-05 10:19:53 +08:00
- Find which package owns a certain file:
2016-01-05 10:19:53 +08:00
`pacman -Qo {{filename}}`
2016-01-05 10:19:53 +08:00
- Empty package cache to free up space:
2016-01-05 10:19:53 +08:00
`pacman -Scc`