2021-02-19 00:44:34 +00:00
|
|
|
# pacman --query
|
|
|
|
|
|
|
|
> Arch Linux package manager utility.
|
2023-05-14 12:41:37 +01:00
|
|
|
> See also: `pacman`.
|
2021-02-19 00:44:34 +00:00
|
|
|
> More information: <https://man.archlinux.org/man/pacman.8>.
|
|
|
|
|
|
|
|
- List installed packages and versions:
|
|
|
|
|
|
|
|
`pacman --query`
|
|
|
|
|
|
|
|
- List only packages and versions that were explicitly installed:
|
|
|
|
|
|
|
|
`pacman --query --explicit`
|
|
|
|
|
|
|
|
- Find which package owns a file:
|
|
|
|
|
|
|
|
`pacman --query --owns {{filename}}`
|
|
|
|
|
|
|
|
- Display information about an installed package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pacman --query --info {{package}}`
|
2021-02-19 00:44:34 +00:00
|
|
|
|
|
|
|
- List files owned by a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pacman --query --list {{package}}`
|
2021-02-19 00:44:34 +00:00
|
|
|
|
|
|
|
- List orphan packages (installed as dependencies but not required by any package):
|
|
|
|
|
|
|
|
`pacman --query --unrequired --deps --quiet`
|
|
|
|
|
|
|
|
- List installed packages not found in the repositories:
|
|
|
|
|
|
|
|
`pacman --query --foreign`
|
|
|
|
|
|
|
|
- List outdated packages:
|
|
|
|
|
|
|
|
`pacman --query --upgrades`
|