Forrest logo
back to the xbps-query tool

xbps:tldr:138f8

xbps: Search for a package in the remote repository.
$ xbps-query --repository -s ${package_name}
try on your machine

The command xbps-query --repository -s ${package_name} is used to search for packages in the XBPS package manager on a Linux distribution that uses the XBPS package manager (such as Void Linux).

Here's a breakdown of the command:

  • xbps-query: This is the main command for querying packages in the XBPS package manager.

  • --repository: This flag specifies that the search operation should be limited to the configured repositories in the XBPS package manager. Without this flag, the search would also include installed packages.

  • -s: This flag indicates that you are performing a search operation. It stands for "search" or "query".

  • ${package_name}: This is a placeholder for the name of the package you want to search for. You should replace ${package_name} with the actual name of the package you are looking for.

So, by running this command with the desired package name, the XBPS package manager will search the configured repositories for the specified package and display information about it, such as the package name, version, description, and any dependencies it has.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xbps-query tool