From 2c02ed59442a1c9bb6c4b15304050a2e2bb9109d Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 28 Jul 2020 22:57:50 +1000 Subject: [PATCH] xbps-checkvers.1: Add EXAMPLES section, fix typo. --- bin/xbps-checkvers/xbps-checkvers.1 | 31 ++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/bin/xbps-checkvers/xbps-checkvers.1 b/bin/xbps-checkvers/xbps-checkvers.1 index d36eb42e8..6650cf019 100644 --- a/bin/xbps-checkvers/xbps-checkvers.1 +++ b/bin/xbps-checkvers/xbps-checkvers.1 @@ -15,7 +15,7 @@ all registered repositories by comparing the package versions against the source package versions available in a .Nm void-packages tree. By default and unless the -.Fl i, Fl -installed +.Fl I, Fl -installed option is set, it will compare package versions in repositories against the .Nm void-packages @@ -94,6 +94,35 @@ is printed instead. .It Fl V, Fl -version Show the version information. .El +.Sh EXAMPLES +Show all packages in +.Pa ~/void-packages , +listing the repository version and the +.Pa srcpkgs +version: +.Pp +.Dl $ xbps-checkvers -s +.Pp +Show packages in +.Pa ~/void-packages +which have a newer version than the installed version: +.Pp +.Dl $ xbps-checkvers -I +.Pp +Show packages in +.Pa /home/user/src/void-packages +which have a newer version than the installed version: +.Pp +.Dl $ xbps-checkvers -D /home/user/src/void-packages -I +.Pp +Check whether installed package +.Sq foo +has a newer version in the +.Nm void-packages +tree: +.Pp +.Dl $ xbps-checkvers -I -m foo +.Pp .Sh SEE ALSO .Xr xbps-create 1 , .Xr xbps-dgraph 1 ,