Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Dec 20, 2024
7 changes: 7 additions & 0 deletions pages/linux/pacman-q.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pacman -Q

> This command is an alias of `pacman --query`.

- View documentation for the original command:

`tldr pacman query`
32 changes: 16 additions & 16 deletions pages/linux/pacman-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.

- List installed packages and versions:
- [Q]uery the local package database and list installed packages and versions:

Check failure on line 7 in pages/linux/pacman-query.md

View workflow job for this annotation

GitHub Actions / build

uery ==> query, very

`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:

Check failure on line 19 in pages/linux/pacman-query.md

View workflow job for this annotation

GitHub Actions / build

nstalled ==> installed

`pacman --query --info {{package}}`
`pacman -Qi {{package}}`

- List files owned by a package:
- Display the [l]ist of files owned by a specific package:

Check failure on line 23 in pages/linux/pacman-query.md

View workflow job for this annotation

GitHub Actions / build

ist ==> is, it, its, it's, sit, list

`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`
Loading