Files
cheatsheet-tldr/tldr/linux/xbps-query
2025-12-01 00:25:28 +00:00

31 lines
842 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# xbps-query
> XBPS utility to query for package and repository information.
> See also: `xbps`.
> More information: <https://manned.org/xbps-query>.
- Search for a package in remote repositories using a `regex` or a keyword (if `--regex` is omitted):
`xbps-query {{[-s|--search]}} {{regex|keyword}} --repository --regex`
- Show information about an installed package:
`xbps-query {{[-S|--show]}} {{package}}`
- Show information about a package in remote repositories:
`xbps-query {{[-S|--show]}} {{package}} --repository`
- List packages registered in the package database:
`xbps-query {{[-l|--list-pkgs]}}`
- List explicitly installed packages (i.e. not automatically installed as dependencies):
`xbps-query {{[-m|--list-manual-pkgs]}}`