LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xbps-query

Query Void Linux package information

TLDR

Search for a package in remote repositories
$ xbps-query -Rs [keyword]
copy
Show information about an installed package
$ xbps-query -S [package]
copy
Show information about a package in remote repositories
$ xbps-query -RS [package]
copy
List all installed packages
$ xbps-query -l
copy
List explicitly installed packages (not dependencies)
$ xbps-query -m
copy
List files installed by a package
$ xbps-query -f [package]
copy
Show dependencies of an installed package
$ xbps-query -x [package]
copy
Show reverse dependencies of a package
$ xbps-query -X [package]
copy
Find which package owns a file
$ xbps-query -o [/path/to/file]
copy
List package orphans (unused dependencies)
$ xbps-query -O
copy

SYNOPSIS

xbps-query [options] [package]

DESCRIPTION

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.

PARAMETERS

-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.

CAVEATS

Repository queries require network access and an up-to-date repository index (run xbps-install -S to sync). Only one query mode can be used at a time. Part of the XBPS package management system for Void Linux.

SEE ALSO

Copied to clipboard
Kai