2012-12-20 11:32:28 +05:30
|
|
|
.Dd December 20, 2012
|
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
|
|
|
|
.Op PKG
|
|
|
|
.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 .
|
|
|
|
.It
|
|
|
|
by exact package name and version, i.e:
|
|
|
|
.Dq Sy foo-1.0_1 .
|
|
|
|
.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 .
|
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 -defrepo Ar uri
|
|
|
|
Default repository to be used if no repository is specified in configuration file.
|
|
|
|
.It Fl d, Fl -debug
|
|
|
|
Enables extra debugging shown to stderr.
|
|
|
|
.It Fl h, Fl -help
|
|
|
|
Show the help usage.
|
|
|
|
.It Fl R, Fl -repository
|
2012-11-06 16:11:33 +05:30
|
|
|
Enable repository mode. This mode explicitly looks in repositories, rather
|
|
|
|
than looking in the target root directory.
|
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
|
|
|
|
will be queried in the root directory, and if this fails, it will be
|
|
|
|
queried in registered repositories.
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Fl l, Fl -list-pkgs
|
|
|
|
Lists registered packages in the package database (pkgdb).
|
|
|
|
.It Fl L, Fl -list-repos
|
|
|
|
Lists registered and working repositories.
|
|
|
|
.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).
|
|
|
|
.It Fl M, Fl -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.
|
|
|
|
.It Fl o, Fl -ownedby Ar PATTERN...
|
|
|
|
Search for packages owning the files specified by
|
|
|
|
.Ar PATTERN .
|
|
|
|
The
|
|
|
|
.Ar PATTERN
|
|
|
|
can be a shell wildcard pattern (see
|
|
|
|
.Xr fnmatch 3),
|
|
|
|
a simple string, or a
|
|
|
|
.Ar package pattern
|
|
|
|
(i.e package name separated by any of the following version comparators:
|
|
|
|
\'<' '>' '<=' '>=', 'foo>2.0').
|
|
|
|
Multiple patterns may be specified.
|
|
|
|
.It Fl s, Fl -search Ar PATTERN...
|
|
|
|
Search for packages matching
|
|
|
|
.Ar PATTERN
|
|
|
|
on its
|
|
|
|
.Em pkgver
|
|
|
|
and/or
|
|
|
|
.Em description
|
|
|
|
properties. The same rules explained in the
|
|
|
|
.Fl -ownedby
|
|
|
|
option are applied.
|
|
|
|
.It Fl f, Fl -files Ar PKG
|
|
|
|
Show the package files for
|
|
|
|
.Ar PKG .
|
|
|
|
.It Fl p, Fl -property Ar PROP[,...] Ar PKG
|
|
|
|
Show a property for
|
|
|
|
.Ar PKG .
|
|
|
|
Multiple properties can be specified by delimiting them with commas.
|
|
|
|
.It Fl x, Fl -deps Ar PKG
|
|
|
|
Show the required dependencies for
|
|
|
|
.Ar PKG .
|
|
|
|
.It Fl X, Fl -revdeps Ar PKG
|
|
|
|
Show the reverse dependencies for
|
|
|
|
.Ar PKG .
|
|
|
|
.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
|
|
|
|
Default XBPS configuration file.
|
2012-11-21 10:00:28 +05:30
|
|
|
.It Ar /var/db/xbps/.<pkgname>.plist
|
|
|
|
Package metadata properties.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Ar /var/db/xbps/pkgdb.plist
|
2012-11-21 10:00:28 +05:30
|
|
|
XBPS package database.
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Ar /var/cache/xbps
|
|
|
|
Default XBPS cache directory.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr xbps-create 8 ,
|
|
|
|
.Xr xbps-dgraph 8 ,
|
|
|
|
.Xr xbps-install 8 ,
|
|
|
|
.Xr xbps-pkgdb 8 ,
|
|
|
|
.Xr xbps-reconfigure 8 ,
|
|
|
|
.Xr xbps-remove 8 ,
|
|
|
|
.Xr xbps-rindex 8
|
|
|
|
.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
|
|
|
|
Report bugs in http://code.google.com/p/xbps.
|