Skip to content

Commit

Permalink
xbps-pkgdb.1: Add EXAMPLES section.
Browse files Browse the repository at this point in the history
By ericonr:
- trim down EXAMPLES section
- improve -a explanation so an example isn't necessary
- fix mandoc -Wall lint from extra .Pp line

Closes: void-linux#311 [via git-merge-pr]
  • Loading branch information
flexibeast authored and ericonr committed Jun 27, 2021
1 parent 4a5eb8d commit 56fa4b5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bin/xbps-pkgdb/xbps-pkgdb.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Dd June 20, 2019
.Dd June 27, 2021
.Dt XBPS-PKGDB 1
.Sh NAME
.Nm xbps-pkgdb
Expand Down Expand Up @@ -40,7 +40,8 @@ Updates the pkgdb format to the latest version.
.Sh OPTIONS
.Bl -tag -width -x
.It Fl a, Fl -all
Process all registered packages, regardless of its state.
Process all packages instead of only the ones listed in
.Ar PKGNAME .
.It Fl C, Fl -config Ar dir
Specifies a path to the XBPS configuration directory.
If the first character is not '/' then it's a relative path of
Expand Down Expand Up @@ -121,6 +122,17 @@ Default package database (0.38 format). Keeps track of installed packages and pr
.It Ar /var/cache/xbps
Default cache directory to store downloaded binary packages.
.El
.Sh EXAMPLES
Prevent package
.Sq foo
from being updated during a system update:
.Pp
.Dl # xbps-pkgdb -m hold foo
.Pp
Remove hold on package
.Sq foo :
.Pp
.Dl # xbps-pkgdb -m unhold foo
.Sh SEE ALSO
.Xr xbps-checkvers 1 ,
.Xr xbps-create 1 ,
Expand Down

0 comments on commit 56fa4b5

Please sign in to comment.