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-query.md

38 lines
838 B
Markdown
Raw Normal View History

2021-02-18 21:44:34 -03:00
# pacman --query
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.
2021-02-18 21:44:34 -03:00
- [Q]uery the local package database and list installed packages and versions:
2021-02-18 21:44:34 -03:00
`pacman -Q`
2021-02-18 21:44:34 -03:00
- List only packages and versions that were [e]xplicitly installed:
2021-02-18 21:44:34 -03:00
`pacman -Qe`
2021-02-18 21:44:34 -03:00
- Find which package [o]wns a file:
2021-02-18 21:44:34 -03:00
`pacman -Qo {{filename}}`
2021-02-18 21:44:34 -03:00
- Display information about an [i]nstalled package:
2021-02-18 21:44:34 -03:00
`pacman -Qi {{package}}`
2021-02-18 21:44:34 -03:00
- Display the [l]ist of files owned by a specific package:
2021-02-18 21:44:34 -03:00
`pacman -Ql {{package}}`
2021-02-18 21:44:34 -03:00
- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in [q]uiet mode (only package name is displayed)):
2021-02-18 21:44:34 -03:00
`pacman -Qdtq`
2021-02-18 21:44:34 -03:00
- List installed packages foreign ([m]) to the repository database:
2021-02-18 21:44:34 -03:00
`pacman -Qm`
2021-02-18 21:44:34 -03:00
- List packages that can be [u]pgraded:
2021-02-18 21:44:34 -03:00
`pacman -Qu`