pkgng

Check-in [bb0876ef5e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:pkg.8: Update example for detecting pkg(8) to support pkg-devel Reported by: Takanori Saneto <sanewo@ba2.so-net.ne.jp> (ports/181813)
Timelines: family | ancestors | descendants | both | trunk | multi-repos | stash
Files: files | file ages | folders
SHA1: bb0876ef5e19671554cb221ebc823556f7db0e45
User & Date: bryan@shatow.net 2013-09-14 12:23:16
Context
2013-09-16
06:43
Make sure the default configuration is without any signature check-in: bfd85e4347 user: bapt@FreeBSD.org tags: trunk, multi-repos, stash
2013-09-14
12:23
pkg.8: Update example for detecting pkg(8) to support pkg-devel Reported by: Takanori Saneto <sanewo@ba2.so-net.ne.jp> (ports/181813) check-in: bb0876ef5e user: bryan@shatow.net tags: trunk, multi-repos, stash
2013-09-10
22:14
Fix spelling Reported by: matthew check-in: a49e0a5a88 user: bapt@FreeBSD.org tags: trunk, multi-repos, stash
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pkg/pkg.8.

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\"
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
.Dd September 8, 2013
.Dt PKG 8
.Os
.\" ---------------------------------------------------------------------------
.Sh NAME
.Nm pkg ,
.Nm pkg-static
.Nd a utility for manipulating packages
................................................................................
.Nm .
The following script is the safest way to detect if
.Nm
is installed and activated:
.Bd -literal -offset indent
  if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 \\
       PACKAGESITE=file:///nonexistent \\
       pkg info pkg >/dev/null 2>&1; then
    # pkgng-specifics
  else
    # pkg_install-specifics
  fi
.Ed
.It Fl j Ao jail name or id Ac
.Nm







|







 







|







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\"
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
.Dd September 14, 2013
.Dt PKG 8
.Os
.\" ---------------------------------------------------------------------------
.Sh NAME
.Nm pkg ,
.Nm pkg-static
.Nd a utility for manipulating packages
................................................................................
.Nm .
The following script is the safest way to detect if
.Nm
is installed and activated:
.Bd -literal -offset indent
  if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 \\
       PACKAGESITE=file:///nonexistent \\
       pkg info -x 'pkg(-devel)?$' >/dev/null 2>&1; then
    # pkgng-specifics
  else
    # pkg_install-specifics
  fi
.Ed
.It Fl j Ao jail name or id Ac
.Nm