Skip to content

Commit

Permalink
xbps-pkgdb.1: Add EXAMPLES section.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexibeast committed Jul 23, 2020
1 parent 44cd938 commit d7ccff4
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion 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 July 23, 2020
.Dt XBPS-PKGDB 1
.Sh NAME
.Nm xbps-pkgdb
Expand Down Expand Up @@ -121,6 +121,29 @@ 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
.Pp
Ensure that package
.Sq foo
is only updated from the same repository used to install it:
.Pp
.Dl # xbps-pkgdb -m repolock foo
.Pp
Remove the repolock on package
.Sq foo :
.Pp
.Dl # xbps-pkgdb -m repounlock foo
.Pp
.Sh SEE ALSO
.Xr xbps-checkvers 1 ,
.Xr xbps-create 1 ,
Expand Down

0 comments on commit d7ccff4

Please sign in to comment.