diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-10-13 23:09:55 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-10-13 23:09:55 +0000 |
commit | 5151819038ae07cb40007b9af6f62b7a1233e1f8 (patch) | |
tree | 1da90b6e2032cccea62e8374ca25f7816dcd1948 /usr.sbin/pkg_install/info/pkg_info.1 | |
parent | eb96b5bdfeaf891a861a757eab37a1348f1a030a (diff) |
Sync with recent NetBSD changes:
- use snprintf in place of sprintf
- code cleanup
- Package -> package_t, PackingList -> plist_t
Also: remove files that haven't been linked in a while
Pass -q to mtree so it is quiet in the presence of symlinks
Diffstat (limited to 'usr.sbin/pkg_install/info/pkg_info.1')
-rw-r--r-- | usr.sbin/pkg_install/info/pkg_info.1 | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/usr.sbin/pkg_install/info/pkg_info.1 b/usr.sbin/pkg_install/info/pkg_info.1 index c937e751770..1457fb3748f 100644 --- a/usr.sbin/pkg_install/info/pkg_info.1 +++ b/usr.sbin/pkg_install/info/pkg_info.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pkg_info.1,v 1.3 1998/09/07 22:30:16 marc Exp $ +.\" $OpenBSD: pkg_info.1,v 1.4 1998/10/13 23:09:51 marc Exp $ .\" .\" FreeBSD install - a package for the installation and maintainance .\" of non-core utilities. @@ -55,18 +55,26 @@ Show the install-message file (if any) for each package. .It Fl d Show the long-description field for each package. .It Fl e Ar pkg-name +This option +allows you to test for the presence of another (perhaps +prerequisite) package from a script. If the package identified by .Ar pkg-name is currently installed, return 0, otherwise return 1. -If the given pkg-name contains a +In addition, the names of any package(s) found installed are printed to +stdout unless turned off using the +.Fl q +option. + +If the given +.Ar pkg-name +contains a shell metacharacter, it will be matched against all installed packages using -.Xr fnmatch 3 , -and any packages found installed are printed to stdout, one name per -line. +.Xr fnmatch 3 . .Xr csh 1 -style {,} alternates have also been implemented. -Dewey decimal numbers can also be matched in a relational manner, +style {,} alternates have also been implemented in addition to this. +Package version numbers can also be matched in a relational manner using the .Pa >=, <=, > and @@ -77,12 +85,6 @@ For example, will match versions 1.3 and later of the .Pa name package. -This printing can be turned off using the -.Fl q -option. -This option -allows you to test for the presence of another (perhaps -prerequisite) package from a script. .It Fl f Show the packing list instructions for each package. .It Fl I |