xbps-query
— XBPS
utility to query for package and repository information
xbps-query |
[OPTIONS] MODE [ARGUMENTS] |
The xbps-query
utility prints information
of a specific package or packages stored in target root directory or in
registered repositories. The argument PKG is a package
expression, which is explained in the PACKAGE EXPRESSION
section.
A package expression is a form to match a pattern; currently xbps
supports 3 ways to specify them:
- by package name, i.e:
“foo”.
- by exact package name and version, i.e:
“foo-1.0_1”.
- by specifying a package name and version separated by any of the following
version comparators:
- < less
than
- >
greater than
- <=
less or equal than
- >=
greater or equal than
Example:
“foo>=2.0”.
The first repository matching the package expression wins.
-C,
--config
dir
- Specifies a path to the XBPS configuration directory. If the first
character is not '/' then it's a relative path of
rootdir.
-c,
--cachedir
dir
- Specifies a path to the cache directory, where binary packages are stored.
If the first character is not '/' then it's a relative path of
rootdir.
-d,
--debug
- Enables extra debugging shown to stderr.
-h,
--help
- Show the help message.
-i,
--ignore-conf-repos
- Ignore repositories defined in configuration files. Only repositories
specified in the command line via --repository will
be used.
-M,
--memory-sync
- For remote repositories, the data is fetched and stored in memory for the
current operation. This ignores the existing on-disk repository archives
in rootdir.
-p,
--property
PROP[,...]
- Only match this package property. Multiple properties can be specified by
delimiting them with commas.
-R
- Enable repository mode. This mode explicitly looks in repositories, rather
than looking in the target root directory.
--repository=url
- Appends the specified repository to the top of the list. The
url argument expects a URL to the repository for
remote repositories or a path for local repositories. Note that remote
repositories must be signed using
xbps-rindex(1). This option can be
specified multiple times.
--regex
- Enables string matching by using Extended Regular Expressions in
compatible modes, currently in the
ownedby
and
search
modes.
--fulldeptree
- Prints a full dependency tree in the
show
dependencies mode.
-r,
--rootdir
dir
- Specifies a full path for the target root directory.
-v,
--verbose
- Enables verbose messages.
-V,
--version
- Show the version information.
Only one of the following modes can be used at a time. By default
and unless the -R
option is specified, the target
PKG will be queried in the root directory, otherwise
it will be queried in registered repositories.
-l,
--list-pkgs
- Lists registered packages in the package database (pkgdb). A package can
be in any of the following states:
-H,
--list-hold-pkgs
- List registered packages in the package database (pkgdb) that are on
hold.
Such packages won't be updated automatically.
-L,
--list-repos
- Lists repositories and the number of packages contained on them. If a
repository is not available the number of packages will be
-1. The
-v
option can be used to show more detailed
information of remote repositories.
-m,
--list-manual-pkgs
- Lists registered packages in the package database (pkgdb) that were
installed manually by the user (i.e not as dependency of any
package).
-O,
--list-orphans
- Lists package orphans in the package database (pkgdb), i.e packages that
were installed as dependencies and no package is currently depending on
them directly.
-o,
--ownedby
PATTERN
[--repository
]
[--regex
]
- Search for installed package files by matching
PATTERN. The PATTERN argument
can be a simple string, a shell wildcard pattern as explained in
fnmatch(3) or an Extended Regular
Expression as explained in regex(7) (if
--regex
option is set). If the
--repository
option is set, the matched
PATTERN in repositories will be shown.
-S,
--show
PKG
[--repository
] [--property
PROP]
- Shows information of an installed package. This is the default mode if no
other mode is set. If the
--repository
option is
set, the matched PKG in repositories will be shown.
If a package property is specified with
--property,
only that property will be shown.
-s,
--search
PATTERN
[--repository
] [--property
PROP] [--regex
]
- Search for packages by matching PATTERN on its
pkgver
and/or
short_desc
properties. The same rules explained in the
--ownedby
option are applied, but a
PACKAGE EXPRESSION is also supported. If a package
property is specified with --property,
all
packages matching PATTERN against
PROP will be shown.
-f,
--files
PKG
[--repository
]
- Show the package files for PKG. If the
--repository
option is set, the matched
PKG in repositories will be shown.
-x,
--deps
PKG
[--repository
]
- Show the required dependencies for PKG. Only direct
dependencies are shown. To see a full dependency tree, also set
--fulldeptree
. If the
--repository
option is set, the matched
PKG in repositories will be shown.
-X,
--revdeps
PKG
[--repository
]
- Show the reverse dependencies for PKG. If the
--repository
option is set, the matched
PKG in repositories will be shown.
--cat
FILE PKG
- Prints the file FILE stored in binary package
PKG to stdout. The first repository matching the
PKG expression wins. This expects an absolute path.
This mode only works with repositories.
- XBPS_ARCH
- Overrides uname(2) machine result with
this value. Useful to install packages with a fake architecture.
- XBPS_TARGET_ARCH
- Sets the target architecture to this value. This variable differs from
XBPS_ARCH in that it allows you to install packages
partially, because configuration phase is skipped (the target binaries
might not be compatible with the native architecture).
- /etc/xbps.d
- Default configuration directory.
- /usr/share/xbps.d
- Default system configuration directory.
- /var/db/xbps/.<pkgname>-files.plist
- Package files metadata.
- /var/db/xbps/pkgdb-0.38.plist
- Default package database (0.38 format). Keeps track of installed packages
and properties.
- /var/cache/xbps
- Default cache directory to store downloaded binary packages.
xbps-checkvers(1),
xbps-create(1),
xbps-dgraph(1),
xbps-digest(1),
xbps-fbulk(1),
xbps-fetch(1),
xbps-install(1),
xbps-pkgdb(1),
xbps-reconfigure(1),
xbps-remove(1),
xbps-rindex(1),
xbps-uchroot(1),
xbps-uunshare(1),
xbps.d(5)
Juan Romero Pardines
<xtraeme@gmail.com>
Probably, but I try to make this not happen. Use it under your own
responsibility and enjoy your life.
Report bugs at https://github.com/void-linux/xbps/issues