← 返回命令列表

Linux command

xbps-query 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search for a package

xbps-query -Rs [keyword]

Show information

xbps-query -S [package]

Show information

xbps-query -RS [package]

List all installed

xbps-query -l

List explicitly installed

xbps-query -m

List files

xbps-query -f [package]

Show dependencies

xbps-query -x [package]

Show reverse dependencies

xbps-query -X [package]

Find which package owns

xbps-query -o [/path/to/file]

List package orphans

xbps-query -O

说明

xbps-query queries package information from the XBPS package management system. It can search repositories, display package details, list installed packages, and show dependency information. The tool is essential for exploring available packages and understanding the current system state on Void Linux.

参数

-s _pattern_
Search for packages matching pattern.
-S _package_
Show detailed package information.
-l
List all installed packages.
-m
List explicitly installed packages (not dependencies).
-L
List configured repositories.
-f _package_
List files installed by package.
-x _package_
Show package dependencies.
-X _package_
Show reverse dependencies.
-R, --repository
Query remote repositories instead of local.
-o _PATTERN_
Search for packages owning files matching PATTERN.
-O
List package orphans (installed as dependencies, no longer needed).
--regex
Enable Extended Regular Expression matching for search.
-p _property_
Show specific property (e.g., version, description).
-v, --verbose
Enable verbose output.

FAQ

What is the xbps-query command used for?

xbps-query queries package information from the XBPS package management system. It can search repositories, display package details, list installed packages, and show dependency information. The tool is essential for exploring available packages and understanding the current system state on Void Linux.

How do I run a basic xbps-query example?

Run `xbps-query -Rs [keyword]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s _pattern_ do in xbps-query?

Search for packages matching pattern.