2016-09-20 12:43:01 +05:30
|
|
|
.Dd September 20, 2016
|
2015-05-16 13:15:35 +05:30
|
|
|
.Dt XBPS-PKGDB 1
|
2012-11-06 14:24:43 +05:30
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-pkgdb
|
2013-02-20 15:05:55 +05:30
|
|
|
.Nd XBPS utility to report/fix issues and modify the package database (pkgdb)
|
2015-10-30 11:15:26 +05:30
|
|
|
.Sh SYNOPSIS
|
2012-11-06 14:24:43 +05:30
|
|
|
.Nm xbps-pkgdb
|
|
|
|
.Op OPTIONS
|
|
|
|
.Op PKGNAME...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2013-02-20 15:05:55 +05:30
|
|
|
utility can check/fix issues and modify the package database (pkgdb).
|
|
|
|
It's able to check for missing dependencies, modified files and symlinks,
|
2019-03-13 19:21:37 +05:30
|
|
|
alternatives and more errors that have been fixed in newer versions of xbps.
|
|
|
|
A mode to update the format to the latest version is also available.
|
2013-02-20 21:02:53 +05:30
|
|
|
This is the list of things that
|
|
|
|
.Nm
|
|
|
|
currently does:
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Sy METADATA CHECK
|
|
|
|
Checks that package metadata files have not been modified by comparing original
|
|
|
|
hash that is recorded when package is installed against current one.
|
|
|
|
.It Sy FILES CHECK
|
|
|
|
Checks that all files belonging to a package have not been modified and are
|
|
|
|
not missing.
|
2015-02-22 23:15:47 +05:30
|
|
|
For regular files, its modification time and the SHA256 hash are
|
|
|
|
compared and checked if they differ.
|
|
|
|
For symbolic links the target file is checked that it has not been modified.
|
2013-02-20 21:02:53 +05:30
|
|
|
.It Sy DEPENDENCIES CHECK
|
|
|
|
Checks that all required dependencies for a package are resolved.
|
2019-03-13 19:21:37 +05:30
|
|
|
.It Sy ALTERNATIVES CHECK
|
|
|
|
Checks that all alternatives symlinks for set alternatives groups are correct.
|
2013-02-20 21:02:53 +05:30
|
|
|
.It Sy OBSOLETE METADATA CHECK
|
|
|
|
Checks that the package database does not contain obsolete data from previous
|
|
|
|
XBPS versions and removes them if found.
|
2013-03-05 08:38:42 +05:30
|
|
|
.It Sy FORMAT CONVERSION
|
|
|
|
Updates the pkgdb format to the latest version.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 14:24:43 +05:30
|
|
|
.Sh OPTIONS
|
2012-11-06 15:03:29 +05:30
|
|
|
.Bl -tag -width -x
|
2012-11-06 14:24:43 +05:30
|
|
|
.It Fl a, Fl -all
|
|
|
|
Process all registered packages, regardless of its state.
|
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:19 +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 14:24:43 +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.
|
2015-03-03 16:41:28 +05:30
|
|
|
.It Fl m, Fl -mode Ar auto|manual|hold|unhold|repolock|repounlock
|
2016-09-20 12:43:01 +05:30
|
|
|
.
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.
|
|
|
|
.It Sy auto , manual
|
|
|
|
.Sy auto No marks each Ar PKGNAME
|
|
|
|
as
|
|
|
|
.Sy automatic -
|
|
|
|
as if it was installed implicitly as a dependency of another package.
|
|
|
|
.Sy manual No marks each Ar PKGNAME
|
|
|
|
as if it was installed explicitly as an operand to
|
|
|
|
.Xr xbps-install 1 .
|
2013-08-12 18:16:54 +05:30
|
|
|
.Sy automatic
|
2016-09-20 12:43:01 +05:30
|
|
|
packages are considered for removal by
|
|
|
|
.Nm xbps-remove Fl -remove-orphans ;
|
|
|
|
see also
|
|
|
|
.Fl -list-manual-pkgs ,
|
|
|
|
.Fl -list-orphans
|
|
|
|
in
|
|
|
|
.Xr xbps-query 1 .
|
|
|
|
.
|
|
|
|
.It Sy hold , unhold
|
|
|
|
Set or unset the
|
2013-08-12 18:16:54 +05:30
|
|
|
.Sy hold
|
2016-09-20 12:43:01 +05:30
|
|
|
mode for each
|
|
|
|
.Ar PKGNAME .
|
|
|
|
.Nm xbps-install Fl u
|
|
|
|
does not update packages on
|
|
|
|
.Sy hold ;
|
|
|
|
see also
|
|
|
|
.Fl -list-hold-pkgs
|
|
|
|
in
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-query 1 .
|
2016-09-20 12:43:01 +05:30
|
|
|
.
|
|
|
|
.It Sy repolock , repounlock
|
|
|
|
Set or unset the
|
|
|
|
.Sy repolock
|
|
|
|
mode for each
|
|
|
|
.Ar PKGNAME .
|
2015-03-03 16:41:28 +05:30
|
|
|
A package in
|
|
|
|
.Sy repolock
|
|
|
|
mode will only accept updates that are available in the same repository that was used
|
|
|
|
for installing.
|
2016-09-20 12:43:01 +05:30
|
|
|
See also
|
|
|
|
.Fl -list-repolock-pkgs
|
|
|
|
in
|
|
|
|
.Xr xbps-query 1 .
|
|
|
|
.El
|
|
|
|
.
|
2012-11-06 14:24:43 +05:30
|
|
|
.It Fl r, Fl -rootdir Ar dir
|
|
|
|
Specifies a full path for the target root directory.
|
2013-03-05 08:38:42 +05:30
|
|
|
.It Fl u, Fl -update
|
|
|
|
Updates the pkgdb format to the latest version making the necessary conversions
|
|
|
|
automatically. Usually this is needed only in rare circumstances.
|
2012-11-06 14:24:43 +05:30
|
|
|
.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-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 14:24:43 +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.
|
2013-03-05 08:38:42 +05:30
|
|
|
.It Ar /var/cache/xbps
|
|
|
|
Default cache directory to store downloaded binary packages.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 14:24:43 +05:30
|
|
|
.Sh SEE ALSO
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-checkvers 1 ,
|
|
|
|
.Xr xbps-create 1 ,
|
2015-05-28 12:43:12 +05:30
|
|
|
.Xr xbps-dgraph 1 ,
|
2015-10-28 14:07:09 +05:30
|
|
|
.Xr xbps-fbulk 1 ,
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-install 1 ,
|
|
|
|
.Xr xbps-query 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 14:24:43 +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
|
2015-10-28 14:33:41 +05:30
|
|
|
responsibility and enjoy your life.
|
2012-11-06 14:24:43 +05:30
|
|
|
.Pp
|
2018-09-23 21:21:07 +05:30
|
|
|
Report bugs at https://github.com/void-linux/xbps/issues
|