2014-08-23 12:56:02 +05:30
|
|
|
.Dd August 23, 2014
|
2012-11-06 15:35:27 +05:30
|
|
|
.Os Void Linux
|
|
|
|
.Dt xbps-query 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-query
|
|
|
|
.Nd XBPS utility to query for package and repository information
|
|
|
|
.Sh SYNOPSYS
|
|
|
|
.Nm xbps-query
|
|
|
|
.Op OPTIONS
|
|
|
|
.Ar MODE
|
2014-05-26 21:00:44 +05:30
|
|
|
.Op ARGUMENTS
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility prints information of a specific package or packages stored
|
|
|
|
in target root directory or in registered repositories.
|
2012-12-20 11:32:28 +05:30
|
|
|
The argument
|
|
|
|
.Ar PKG
|
|
|
|
is a package expression, which is explained in the
|
|
|
|
.Em PACKAGE EXPRESSION
|
|
|
|
section.
|
|
|
|
.Sh PACKAGE EXPRESSION
|
|
|
|
A package expression is a form to match a pattern; currently xbps
|
|
|
|
supports 3 ways to specify them:
|
|
|
|
.Bl -dash
|
|
|
|
.It
|
|
|
|
by package name, i.e:
|
|
|
|
.Dq Sy foo .
|
2014-04-18 12:23:14 +05:30
|
|
|
The package with the greatest version available in all repositories will be choosen.
|
2012-12-20 11:32:28 +05:30
|
|
|
.It
|
|
|
|
by exact package name and version, i.e:
|
|
|
|
.Dq Sy foo-1.0_1 .
|
2014-04-18 12:23:14 +05:30
|
|
|
The first package matching expression in a repository will be choosen.
|
2012-12-20 11:32:28 +05:30
|
|
|
.It
|
|
|
|
by specifying a package name and version separated by any of the following version comparators:
|
|
|
|
.Bl -item -width xx -compact
|
|
|
|
.Pp
|
|
|
|
.It
|
|
|
|
.Sy <
|
|
|
|
less than
|
|
|
|
.It
|
|
|
|
.Sy >
|
|
|
|
greater than
|
|
|
|
.It
|
|
|
|
.Sy <=
|
|
|
|
less or equal than
|
|
|
|
.It
|
|
|
|
.Sy >=
|
|
|
|
greater or equal than
|
|
|
|
.Pp
|
|
|
|
Example:
|
|
|
|
.Dq Sy foo>=2.0 .
|
2014-04-18 12:23:14 +05:30
|
|
|
The first package matching expression in a repository will be choosen.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Fl C, Fl -config Ar file
|
|
|
|
Specifies a full path to the XBPS configuration file.
|
|
|
|
.It Fl c, Fl -cachedir Ar dir
|
|
|
|
Specifies a full path to the cache directory, where binary packages are stored.
|
|
|
|
.It Fl d, Fl -debug
|
|
|
|
Enables extra debugging shown to stderr.
|
|
|
|
.It Fl h, Fl -help
|
|
|
|
Show the help usage.
|
2014-03-21 18:45:25 +05:30
|
|
|
.It Fl p, Fl -property Ar PROP[,...]
|
|
|
|
Only match this package property.
|
|
|
|
Multiple properties can be specified by delimiting them with commas.
|
2013-09-18 20:43:43 +05:30
|
|
|
.It Fl R, Fl -repository=url
|
2012-11-06 16:11:33 +05:30
|
|
|
Enable repository mode. This mode explicitly looks in repositories, rather
|
2013-09-18 20:43:43 +05:30
|
|
|
than looking in the target root directory. The
|
|
|
|
.Ar url
|
2013-12-04 21:29:15 +05:30
|
|
|
argument is optional and can be used to add the repository to the top of the list.
|
|
|
|
This option can be specified multiple times.
|
2014-05-26 21:00:44 +05:30
|
|
|
.It Fl -regex
|
|
|
|
Enables string matching by using Extended Regular Expressions in compatible modes,
|
|
|
|
currently in the
|
|
|
|
.Sy ownedby
|
|
|
|
and
|
|
|
|
.Sy search
|
|
|
|
modes.
|
2014-08-19 16:44:37 +05:30
|
|
|
.It Fl -fulldeptree
|
|
|
|
Prints a full dependency tree in the
|
|
|
|
.Sy show dependencies
|
|
|
|
mode.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl r, Fl -rootdir Ar dir
|
|
|
|
Specifies a full path for the target root directory.
|
|
|
|
.It Fl v, Fl -verbose
|
|
|
|
Enables verbose messages.
|
|
|
|
.It Fl V, Fl -version
|
|
|
|
Shows the XBPS version.
|
|
|
|
.Sh MODE
|
|
|
|
Only one of the following modes can be used at a time.
|
|
|
|
By default and unless the
|
|
|
|
.Fl R
|
|
|
|
option is specified, the target
|
|
|
|
.Ar PKG
|
2013-02-02 16:32:10 +05:30
|
|
|
will be queried in the root directory, otherwise it will be
|
2012-11-06 15:35:27 +05:30
|
|
|
queried in registered repositories.
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Fl l, Fl -list-pkgs
|
|
|
|
Lists registered packages in the package database (pkgdb).
|
2012-12-20 11:41:05 +05:30
|
|
|
A package can be in any of the following states:
|
|
|
|
.Bl -item -width xx -compact
|
|
|
|
.Pp
|
|
|
|
.It
|
|
|
|
.Sy ii
|
|
|
|
Package is installed.
|
|
|
|
.It
|
|
|
|
.Sy uu
|
|
|
|
Package is unpacked but must be configured with
|
|
|
|
.Xr xbps-reconfigure 8 .
|
|
|
|
.It
|
|
|
|
.Sy hr
|
|
|
|
Package is
|
|
|
|
.Sy half-removed ,
|
|
|
|
and can be fully removed with
|
|
|
|
.Xr xbps-remove 8 .
|
|
|
|
.It
|
|
|
|
.Sy ??
|
|
|
|
Package state is unknown.
|
|
|
|
.El
|
2013-08-18 14:36:45 +05:30
|
|
|
.It Fl H, Fl -list-hold-pkgs
|
|
|
|
List registered packages in the package database (pkgdb) that are on
|
|
|
|
.Sy hold .
|
|
|
|
Such packages won't be updated automatically.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl L, Fl -list-repos
|
2013-07-26 15:12:52 +05:30
|
|
|
Lists repositories and the number of packages contained on them. If a repository is not
|
|
|
|
available the number of packages will be
|
|
|
|
.Sy -1 .
|
2013-12-04 21:29:15 +05:30
|
|
|
The
|
|
|
|
.Fl v
|
|
|
|
option can be used to show more detailed information of remote repositories.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl m, Fl -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).
|
2013-02-13 20:17:46 +05:30
|
|
|
.It Fl O, Fl -list-orphans
|
2012-11-06 15:35:27 +05:30
|
|
|
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.
|
2014-05-27 15:31:48 +05:30
|
|
|
.It Fl o, Fl -ownedby Ar PATTERN [ Fl -repository ] [ Fl -regex ]
|
|
|
|
Search for installed package files by matching
|
2012-11-06 15:35:27 +05:30
|
|
|
.Ar PATTERN .
|
|
|
|
The
|
|
|
|
.Ar PATTERN
|
2014-05-26 21:00:44 +05:30
|
|
|
argument can be a simple string, a shell wildcard pattern as explained in
|
|
|
|
.Xr fnmatch 3
|
|
|
|
or an Extended Regular Expression as explained in
|
|
|
|
.Xr regex 7
|
|
|
|
(if
|
|
|
|
.Fl -regex
|
|
|
|
option is set).
|
2014-05-27 15:31:48 +05:30
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PATTERN
|
|
|
|
in repositories will be shown.
|
|
|
|
.It Fl S, Fl -show Ar PKG [ Fl -repository ]
|
|
|
|
Shows information of an installed package. This is the default mode
|
|
|
|
if no other mode is set.
|
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PKG
|
|
|
|
in repositories will be shown.
|
|
|
|
.It Fl s, Fl -search Ar PATTERN [ Fl -property Ar PROP ] [ Fl -regex ]
|
2014-05-26 21:00:44 +05:30
|
|
|
Search for packages in repositories by matching
|
2012-11-06 15:35:27 +05:30
|
|
|
.Ar PATTERN
|
|
|
|
on its
|
|
|
|
.Em pkgver
|
|
|
|
and/or
|
2012-12-20 11:47:16 +05:30
|
|
|
.Em short_desc
|
2012-11-06 15:35:27 +05:30
|
|
|
properties. The same rules explained in the
|
|
|
|
.Fl -ownedby
|
2012-12-20 11:47:16 +05:30
|
|
|
option are applied, but a
|
|
|
|
.Sy PACKAGE EXPRESSION
|
|
|
|
is also supported.
|
2014-03-21 18:45:25 +05:30
|
|
|
If a package property is specified with
|
|
|
|
.Fl -property,
|
|
|
|
all packages matching
|
|
|
|
.Ar PATTERN
|
|
|
|
against
|
|
|
|
.Ar PROP
|
|
|
|
will be shown.
|
2014-05-27 15:31:48 +05:30
|
|
|
.It Fl f, Fl -files Ar PKG [ Fl -repository ]
|
2012-11-06 15:35:27 +05:30
|
|
|
Show the package files for
|
|
|
|
.Ar PKG .
|
2014-05-27 15:31:48 +05:30
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PKG
|
|
|
|
in repositories will be shown.
|
|
|
|
.It Fl x, Fl -deps Ar PKG [ Fl -repository ]
|
2012-11-06 15:35:27 +05:30
|
|
|
Show the required dependencies for
|
|
|
|
.Ar PKG .
|
2014-08-19 16:44:37 +05:30
|
|
|
Only direct dependencies are shown. To see a full dependency tree, also set
|
|
|
|
.Fl -fulldeptree .
|
2014-05-27 15:31:48 +05:30
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PKG
|
|
|
|
in repositories will be shown.
|
|
|
|
.It Fl X, Fl -revdeps Ar PKG [Fl -repository ]
|
2012-11-06 15:35:27 +05:30
|
|
|
Show the reverse dependencies for
|
|
|
|
.Ar PKG .
|
2014-05-27 15:31:48 +05:30
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PKG
|
|
|
|
in repositories will be shown.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2013-02-20 16:12:06 +05:30
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width XBPS_TARGET_ARCH
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_ARCH
|
2013-02-20 16:12:06 +05:30
|
|
|
Overrides
|
|
|
|
.Xr uname 2
|
2014-01-09 16:11:25 +05:30
|
|
|
machine result with this value. Useful to install packages with a fake
|
2013-02-20 16:12:06 +05:30
|
|
|
architecture.
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_TARGET_ARCH
|
|
|
|
Sets the target architecture to this value. This variable differs from
|
|
|
|
.Sy 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).
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh FILES
|
2012-11-21 10:00:28 +05:30
|
|
|
.Bl -tag -width /var/db/xbps/.<pkgname>.plist
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Ar /etc/xbps/xbps.conf
|
2013-03-05 08:38:42 +05:30
|
|
|
Default configuration file.
|
2012-11-21 10:00:28 +05:30
|
|
|
.It Ar /var/db/xbps/.<pkgname>.plist
|
|
|
|
Package metadata properties.
|
2013-03-05 08:38:42 +05:30
|
|
|
.It Ar /var/db/xbps/pkgdb-0.21.plist
|
|
|
|
Default package database (0.21 format). Keeps track of installed packages and properties.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Ar /var/cache/xbps
|
2013-03-05 08:38:42 +05:30
|
|
|
Default cache directory to store downloaded binary packages.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh SEE ALSO
|
2014-04-07 15:52:55 +05:30
|
|
|
.Xr xbps-checkvers 8 ,
|
2012-11-06 15:35:27 +05:30
|
|
|
.Xr xbps-create 8 ,
|
|
|
|
.Xr xbps-dgraph 8 ,
|
|
|
|
.Xr xbps-install 8 ,
|
|
|
|
.Xr xbps-pkgdb 8 ,
|
|
|
|
.Xr xbps-reconfigure 8 ,
|
|
|
|
.Xr xbps-remove 8 ,
|
2014-04-21 14:28:09 +05:30
|
|
|
.Xr xbps-rindex 8 ,
|
|
|
|
.Xr xbps-uchroot 8
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh AUTHORS
|
|
|
|
.An Juan Romero Pardines <xtraeme@gmail.com>
|
|
|
|
.Sh BUGS
|
|
|
|
Probably, but I try to make this not happen. Use it under your own
|
|
|
|
responsability and enjoy your life.
|
|
|
|
.Pp
|
2013-12-17 20:08:56 +05:30
|
|
|
Report bugs in https://github.com/voidlinux/xbps/issues
|