2020-04-23 10:48:57 +05:30
|
|
|
.Dd April 23, 2020
|
2015-05-16 13:15:35 +05:30
|
|
|
.Dt XBPS-QUERY 1
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-query
|
|
|
|
.Nd XBPS utility to query for package and repository information
|
2015-10-30 11:15:26 +05:30
|
|
|
.Sh SYNOPSIS
|
2012-11-06 15:35:27 +05:30
|
|
|
.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 .
|
|
|
|
.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:
|
|
|
|
.Pp
|
2014-09-30 15:06:08 +05:30
|
|
|
.Bl -item -compact
|
2012-12-20 11:32:28 +05:30
|
|
|
.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-08-23 12:56:02 +05:30
|
|
|
.El
|
2014-09-12 15:45:03 +05:30
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The first repository matching the package expression wins.
|
2020-04-23 10:48:57 +05:30
|
|
|
.Sh PACKAGE MODES
|
|
|
|
An installed package can have some specific modes of operation.
|
|
|
|
Currently the following modes are available:
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Sy hold
|
|
|
|
The package is on hold mode.
|
|
|
|
Packages in this mode won't be updated unless it's explicitely declared to be updated.
|
|
|
|
The only way to update packages in this mode is by using the
|
|
|
|
.Fl f, Fl -force
|
|
|
|
option.
|
|
|
|
To list packages in this mode use
|
|
|
|
.Nm xbps-query Fl H .
|
|
|
|
.It Sy manual
|
|
|
|
The package is in manual mode of installation and won't be considered for
|
|
|
|
removal when running
|
|
|
|
.Nm xbps-remove Fl o .
|
|
|
|
To list packages in this mode use
|
|
|
|
.Nm xbps-query Fl m .
|
|
|
|
.It Sy repolock
|
|
|
|
A package in repolock mode will only accept updates that are available in the
|
|
|
|
same repository that was used for installing.
|
|
|
|
To list packages in this mode use
|
|
|
|
.Nm xbps-query Fl -list-repolock-pkgs .
|
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width -x
|
2014-11-06 14:28:04 +05:30
|
|
|
.It Fl C, Fl -config Ar dir
|
|
|
|
Specifies a path to the XBPS configuration directory.
|
2017-07-11 07:59:45 +05:30
|
|
|
If the first character is not '/' then it's a relative path of
|
2014-11-06 14:28:04 +05:30
|
|
|
.Ar rootdir .
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl c, Fl -cachedir Ar dir
|
2014-11-06 14:28:04 +05:30
|
|
|
Specifies a path to the cache directory, where binary packages are stored.
|
2017-07-11 07:59:45 +05:30
|
|
|
If the first character is not '/' then it's a relative path of
|
2014-11-06 14:28:04 +05:30
|
|
|
.Ar rootdir .
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl d, Fl -debug
|
|
|
|
Enables extra debugging shown to stderr.
|
|
|
|
.It Fl h, Fl -help
|
2015-10-30 11:15:26 +05:30
|
|
|
Show the help message.
|
2014-11-21 15:26:41 +05:30
|
|
|
.It Fl i, Fl -ignore-conf-repos
|
|
|
|
Ignore repositories defined in configuration files.
|
|
|
|
Only repositories specified in the command line via
|
|
|
|
.Ar --repository
|
|
|
|
will be used.
|
2014-11-27 15:12:05 +05:30
|
|
|
.It Fl M, Fl -memory-sync
|
|
|
|
For remote repositories, the data is fetched and stored in memory for the current
|
2020-04-23 10:48:57 +05:30
|
|
|
operation.
|
|
|
|
This ignores the existing on-disk repository archives in rootdir.
|
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.
|
2014-12-06 15:51:30 +05:30
|
|
|
.It Fl R
|
2020-04-23 10:48:57 +05:30
|
|
|
Enable repository mode.
|
|
|
|
This mode explicitly looks in repositories, rather
|
2014-12-06 15:51:30 +05:30
|
|
|
than looking in the target root directory.
|
|
|
|
.It Fl -repository=url
|
2020-04-23 10:48:57 +05:30
|
|
|
Appends the specified repository to the top of the list.
|
|
|
|
The
|
2013-09-18 20:43:43 +05:30
|
|
|
.Ar url
|
2014-12-06 15:51:30 +05:30
|
|
|
argument expects a URL to the repository for remote repositories or
|
2020-04-23 10:48:57 +05:30
|
|
|
a path for local repositories.
|
|
|
|
Note that remote repositories must be signed using
|
2015-12-24 17:19:35 +05:30
|
|
|
.Xr xbps-rindex 1 .
|
2013-12-04 21:29:15 +05:30
|
|
|
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
|
2015-10-30 11:15:26 +05:30
|
|
|
Show the version information.
|
2014-09-30 15:06:08 +05:30
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.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:
|
|
|
|
.Pp
|
2014-09-30 15:06:08 +05:30
|
|
|
.Bl -item -compact
|
2012-12-20 11:41:05 +05:30
|
|
|
.It
|
|
|
|
.Sy ii
|
|
|
|
Package is installed.
|
|
|
|
.It
|
|
|
|
.Sy uu
|
|
|
|
Package is unpacked but must be configured with
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-reconfigure 1 .
|
2012-12-20 11:41:05 +05:30
|
|
|
.It
|
|
|
|
.Sy hr
|
|
|
|
Package is
|
|
|
|
.Sy half-removed ,
|
|
|
|
and can be fully removed with
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-remove 1 .
|
2012-12-20 11:41:05 +05:30
|
|
|
.It
|
|
|
|
.Sy ??
|
|
|
|
Package state is unknown.
|
|
|
|
.El
|
2012-11-06 15:35:27 +05:30
|
|
|
.It Fl L, Fl -list-repos
|
2020-04-23 10:48:57 +05:30
|
|
|
Lists repositories and the number of packages contained on them.
|
|
|
|
If a repository is not available the number of packages will be
|
2013-07-26 15:12:52 +05:30
|
|
|
.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.
|
2020-04-23 10:48:57 +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 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.
|
2020-04-23 10:48:57 +05:30
|
|
|
.It Fl -list-repolock-pkgs
|
|
|
|
Lists packages that are in repolock mode.
|
|
|
|
See the
|
|
|
|
.Em PACKAGE MODES
|
|
|
|
section for more information.
|
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.
|
2015-01-18 23:44:30 +05:30
|
|
|
.It Fl S, Fl -show Ar PKG [ Fl -repository ] [ Fl -property Ar PROP ]
|
2020-04-23 10:48:57 +05:30
|
|
|
Shows information of an installed package.
|
|
|
|
This is the default mode if no other mode is set.
|
2014-05-27 15:31:48 +05:30
|
|
|
If the
|
|
|
|
.Fl -repository
|
|
|
|
option is set, the matched
|
|
|
|
.Ar PKG
|
|
|
|
in repositories will be shown.
|
2015-01-18 23:44:30 +05:30
|
|
|
If a package property is specified with
|
|
|
|
.Fl -property,
|
|
|
|
only that property will be shown.
|
2014-09-11 15:51:33 +05:30
|
|
|
.It Fl s, Fl -search Ar PATTERN [ Fl -repository ] [ Fl -property Ar PROP ] [ Fl -regex ]
|
|
|
|
Search for packages 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
|
2020-04-23 10:48:57 +05:30
|
|
|
properties.
|
|
|
|
The same rules explained in the
|
2012-11-06 15:35:27 +05:30
|
|
|
.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 .
|
2020-04-23 10:48:57 +05:30
|
|
|
Only direct dependencies are shown.
|
|
|
|
To see a full dependency tree, also set
|
2014-08-19 16:44:37 +05:30
|
|
|
.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.
|
2014-09-28 12:59:08 +05:30
|
|
|
.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-11-18 00:10:35 +05:30
|
|
|
.It Fl -cat Ar FILE Ar PKG
|
2014-11-17 20:15:46 +05:30
|
|
|
Prints the file
|
|
|
|
.Ar FILE
|
|
|
|
stored in binary package
|
|
|
|
.Ar PKG
|
2020-04-23 10:48:57 +05:30
|
|
|
to stdout.
|
|
|
|
The first repository matching the
|
2014-11-18 00:10:35 +05:30
|
|
|
.Ar PKG
|
|
|
|
expression wins.
|
|
|
|
This expects an absolute path.
|
|
|
|
This mode only works with repositories.
|
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
|
2020-04-23 10:48:57 +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
|
2020-04-23 10:48:57 +05:30
|
|
|
Sets the target architecture to this value.
|
|
|
|
This variable differs from
|
2014-01-09 16:11:25 +05:30
|
|
|
.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
|
2014-09-11 15:51:33 +05:30
|
|
|
.Bl -tag -width /var/db/xbps/.<pkgname>-files.plist
|
2014-11-06 14:28:04 +05:30
|
|
|
.It Ar /etc/xbps.d
|
|
|
|
Default configuration directory.
|
2014-12-15 13:54:55 +05:30
|
|
|
.It Ar /usr/share/xbps.d
|
|
|
|
Default system configuration directory.
|
2014-09-11 15:51:33 +05:30
|
|
|
.It Ar /var/db/xbps/.<pkgname>-files.plist
|
|
|
|
Package files metadata.
|
|
|
|
.It Ar /var/db/xbps/pkgdb-0.38.plist
|
|
|
|
Default package database (0.38 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
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-checkvers 1 ,
|
|
|
|
.Xr xbps-create 1 ,
|
|
|
|
.Xr xbps-dgraph 1 ,
|
xbps-digest(1): new utility that replaces "xbps-uhelper digest".
See the manual page:
XBPS-DIGEST(1) General Commands Manual XBPS-DIGEST(1)
NAME
xbps-digest - XBPS utility to generate message digests
SYNOPSIS
xbps-digest [OPTIONS] [FILE] [FILE+N]
DESCRIPTION
The xbps-digest utility generates message digests for specified FILE or
stdin if unset.
OPTIONS
-m, --mode mode
Sets the message digest mode. Supported: sha256. If unset, defaults
to sha256.
-h, --help
Show the help message.
-V, --version
Show the version information.
SEE ALSO
xbps.d(5), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1),
xbps-fbulk(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1),
xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1),
xbps-uunshare(1)
AUTHORS
Juan Romero Pardines <xtraeme@gmail.com>
BUGS
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
June 12, 2019
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-12 18:04:58 +05:30
|
|
|
.Xr xbps-digest 1 ,
|
2019-06-12 21:27:03 +05:30
|
|
|
.Xr xbps-fbulk 1 ,
|
|
|
|
.Xr xbps-fetch 1 ,
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-install 1 ,
|
|
|
|
.Xr xbps-pkgdb 1 ,
|
|
|
|
.Xr xbps-reconfigure 1 ,
|
|
|
|
.Xr xbps-remove 1 ,
|
|
|
|
.Xr xbps-rindex 1 ,
|
|
|
|
.Xr xbps-uchroot 1 ,
|
|
|
|
.Xr xbps-uunshare 1 ,
|
|
|
|
.Xr xbps.d 5
|
2012-11-06 15:35:27 +05:30
|
|
|
.Sh AUTHORS
|
|
|
|
.An Juan Romero Pardines <xtraeme@gmail.com>
|
|
|
|
.Sh BUGS
|
2020-04-23 10:48:57 +05:30
|
|
|
Probably, but I try to make this not happen.
|
|
|
|
Use it under your own responsibility and enjoy your life.
|
2012-11-06 15:35:27 +05:30
|
|
|
.Pp
|
2018-09-23 21:21:07 +05:30
|
|
|
Report bugs at https://github.com/void-linux/xbps/issues
|