Merge pull request #198 from roman-neuhauser/package-modes

xbps-pkgdb(1), xbps-install(1), xbps-remove(1): extend discussion of package modes
This commit is contained in:
Juan RP 2017-02-19 02:45:58 +01:00 committed by GitHub
commit a7f2080367
3 changed files with 49 additions and 14 deletions

View File

@ -1,4 +1,4 @@
.Dd October 28, 2015 .Dd September 20, 2016
.Dt XBPS-INSTALL 1 .Dt XBPS-INSTALL 1
.Sh NAME .Sh NAME
.Nm xbps-install .Nm xbps-install
@ -59,6 +59,7 @@ The first repository matching the package expression wins.
.It Fl A, Fl -automatic .It Fl A, Fl -automatic
Enables automatic installation mode, i.e. package will be treated as orphan Enables automatic installation mode, i.e. package will be treated as orphan
if no package is depending on it directly. if no package is depending on it directly.
.No See Fl -mode Sy auto No in Xr xbps-pkgdb 1 .
.It Fl C, Fl -config Ar dir .It Fl C, Fl -config Ar dir
Specifies a path to the XBPS configuration directory. Specifies a path to the XBPS configuration directory.
If the first character is not '\/' then it's a relative path of If the first character is not '\/' then it's a relative path of
@ -112,7 +113,9 @@ If set, packages to be installed or upgraded in the transaction won't be configu
just unpacked. That means that those packages should be reconfigured via just unpacked. That means that those packages should be reconfigured via
.Xr xbps-reconfigure 1 . .Xr xbps-reconfigure 1 .
.It Fl u, Fl -update .It Fl u, Fl -update
Performs a full system upgrade: all installed packages will be updated to the greatest Performs a full system upgrade: all installed packages
.Pq except those on Sy hold , No see Fl -mode Sy hold No in Xr xbps-pkgdb 1
will be updated to the greatest
versions that were found in repositories. versions that were found in repositories.
.It Fl v, Fl -verbose .It Fl v, Fl -verbose
Enables verbose messages. Enables verbose messages.

View File

@ -1,4 +1,4 @@
.Dd October 28, 2015 .Dd September 20, 2016
.Dt XBPS-PKGDB 1 .Dt XBPS-PKGDB 1
.Sh NAME .Sh NAME
.Nm xbps-pkgdb .Nm xbps-pkgdb
@ -48,23 +48,54 @@ Enables extra debugging shown to stderr.
.It Fl h, Fl -help .It Fl h, Fl -help
Show the help message. Show the help message.
.It Fl m, Fl -mode Ar auto|manual|hold|unhold|repolock|repounlock .It Fl m, Fl -mode Ar auto|manual|hold|unhold|repolock|repounlock
Switches .
.Ar PKGNAME .Bl -tag -width -x
to the specified mode: automatic or manual installation mode, or to (un)set the on hold mode, .
and repository locked mode. .It Sy auto , manual
A package that was installed as dependency will be in .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 .
.Sy automatic .Sy automatic
mode, otherwise will be set to packages are considered for removal by
.Sy manual . .Nm xbps-remove Fl -remove-orphans ;
A package in see also
.Sy hold .Fl -list-manual-pkgs ,
mode won't be updated in full system upgrades. The list of packages in this mode can be .Fl -list-orphans
seen with in
.Xr xbps-query 1 . .Xr xbps-query 1 .
.
.It Sy hold , unhold
Set or unset the
.Sy hold
mode for each
.Ar PKGNAME .
.Nm xbps-install Fl u
does not update packages on
.Sy hold ;
see also
.Fl -list-hold-pkgs
in
.Xr xbps-query 1 .
.
.It Sy repolock , repounlock
Set or unset the
.Sy repolock
mode for each
.Ar PKGNAME .
A package in A package in
.Sy repolock .Sy repolock
mode will only accept updates that are available in the same repository that was used mode will only accept updates that are available in the same repository that was used
for installing. for installing.
See also
.Fl -list-repolock-pkgs
in
.Xr xbps-query 1 .
.El
.
.It Fl r, Fl -rootdir Ar dir .It Fl r, Fl -rootdir Ar dir
Specifies a full path for the target root directory. Specifies a full path for the target root directory.
.It Fl u, Fl -update .It Fl u, Fl -update

View File

@ -83,6 +83,7 @@ Cleans cache directory removing obsolete binary packages.
.It Fl o, Fl -remove-orphans .It Fl o, Fl -remove-orphans
Removes installed package orphans that were installed automatically Removes installed package orphans that were installed automatically
(as dependencies) and are not currently dependencies of any installed package. (as dependencies) and are not currently dependencies of any installed package.
.No See Fl -mode Sy auto No in Xr xbps-pkgdb 1 .
.It Fl R, Fl -recursive .It Fl R, Fl -recursive
Recursively remove packages that were installed by Recursively remove packages that were installed by
.Ar PKGNAME .Ar PKGNAME