1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 16:35:53 +02:00

pacman-q: add alias page; pacman-query: update page (#15180)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
You Gao 2024-12-20 16:04:54 -05:00 committed by GitHub
parent 64cc308063
commit f050572beb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 16 deletions

7
pages/linux/pacman-q.md Normal file
View file

@ -0,0 +1,7 @@
# pacman -Q
> This command is an alias of `pacman --query`.
- View documentation for the original command:
`tldr pacman query`

View file

@ -4,34 +4,34 @@
> See also: `pacman`. > See also: `pacman`.
> More information: <https://manned.org/pacman.8>. > More information: <https://manned.org/pacman.8>.
- List installed packages and versions: - [Q]uery the local package database and list installed packages and versions:
`pacman --query` `pacman -Q`
- List only packages and versions that were explicitly installed: - List only packages and versions that were [e]xplicitly installed:
`pacman --query --explicit` `pacman -Qe`
- Find which package owns a file: - Find which package [o]wns a file:
`pacman --query --owns {{filename}}` `pacman -Qo {{filename}}`
- Display information about an installed package: - Display information about an [i]nstalled package:
`pacman --query --info {{package}}` `pacman -Qi {{package}}`
- List files owned by a package: - Display the [l]ist of files owned by a specific package:
`pacman --query --list {{package}}` `pacman -Ql {{package}}`
- List orphan packages (installed as dependencies but not required by any package): - List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in [q]uiet mode (only package name is displayed)):
`pacman --query --unrequired --deps --quiet` `pacman -Qdtq`
- List installed packages not found in the repositories: - List installed packages foreign ([m]) to the repository database:
`pacman --query --foreign` `pacman -Qm`
- List outdated packages: - List packages that can be [u]pgraded:
`pacman --query --upgrades` `pacman -Qu`