1 PKG_VIEW(1) NetBSD General Commands Manual PKG_VIEW(1)
4 p
\bpk
\bkg
\bg_
\b_v
\bvi
\bie
\bew
\bw -- add and delete instances of depoted packages in views
6 S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
7 p
\bpk
\bkg
\bg_
\b_v
\bvi
\bie
\bew
\bw [-
\b-n
\bnV
\bVv
\bv] [-
\b-d
\bd _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br] [-
\b-i
\bi _
\bi_
\bg_
\bn_
\bo_
\br_
\be] [-
\b-k
\bk _
\bp_
\bk_
\bg_
\b__
\bd_
\bb_
\bd_
\bi_
\br] [-
\b-W
\bW _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be]
8 [-
\b-w
\bw _
\bv_
\bi_
\be_
\bw] _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be _
\b._
\b._
\b.
10 D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
11 The p
\bpk
\bkg
\bg_
\b_v
\bvi
\bie
\bew
\bw command is used to add and delete instances of depoted pack-
12 ages in _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br in a _
\bv_
\bi_
\be_
\bw in the _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be directory.
14 W
\bWA
\bAR
\bRN
\bNI
\bIN
\bNG
\bG
15 _
\bS_
\bi_
\bn_
\bc_
\be _
\bt_
\bh_
\be p
\bpk
\bkg
\bg_
\b_v
\bvi
\bie
\bew
\bw _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd _
\bm_
\ba_
\by _
\be_
\bx_
\be_
\bc_
\bu_
\bt_
\be _
\bs_
\bc_
\br_
\bi_
\bp_
\bt_
\bs _
\bo_
\br _
\bp_
\br_
\bo_
\bg_
\br_
\ba_
\bm_
\bs _
\bp_
\br_
\bo_
\bv_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\bh_
\be_
\bc_
\bk _
\bf_
\bo_
\br _
\bs_
\be_
\bt_
\bu_
\bi_
\bd_
\b)_
\b, @
\b@d
\bdi
\bir
\brr
\brm
\bm_
\b, @
\b@e
\bex
\bxe
\bec
\bc_
\b, _
\ba_
\bn_
\bd @
\b@u
\bun
\bne
\bex
\bxe
\bec
\bc _
\bd_
\bi_
\br_
\be_
\bc_
\bt_
\bi_
\bv_
\be_
\bs_
\b, _
\ba_
\bn_
\bd_
\b/_
\bo_
\br
25 _
\bu_
\bs_
\be _
\bt_
\bh_
\be pkg_info(_
\b1) _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd _
\bt_
\bo _
\be_
\bx_
\ba_
\bm_
\bi_
\bn_
\be _
\bt_
\bh_
\be _
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl_
\be_
\bd _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be _
\bc_
\bo_
\bn_
\bt_
\br_
\bo_
\bl
26 _
\bf_
\bi_
\bl_
\be_
\bs_
\b.
28 O
\bOP
\bPT
\bTI
\bIO
\bON
\bNS
\bS
29 The following command-line options are supported:
31 -
\b-d
\bd _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br
32 Set _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br as the directory in which the depoted packages can be
33 found. If this option isn't specified, then the _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br is taken
34 from the value of the environment variable DEPOTBASE if it's set,
35 otherwise the default _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br is the path to the _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be_
\bs direc-
36 tory under _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be.
38 -
\b-i
\bi _
\bi_
\bg_
\bn_
\bo_
\br_
\be
39 Add _
\bi_
\bg_
\bn_
\bo_
\br_
\be to the list of files in _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be that should ignored
40 when adding or removing the package instance from _
\bv_
\bi_
\be_
\bw.
42 -
\b-k
\bk _
\bp_
\bk_
\bg_
\b__
\bd_
\bb_
\bd_
\bi_
\br
43 Set _
\bp_
\bk_
\bg_
\b__
\bd_
\bb_
\bd_
\bi_
\br as the package database directory for the default
44 (empty) view. If this option isn't specified, then the package
45 database directory is taken from the value of the environment
46 variable PKG_DBDIR, otherwise it defaults to _
\b/_
\bv_
\ba_
\br_
\b/_
\bd_
\bb_
\b/_
\bp_
\bk_
\bg.
48 -
\b-n
\bn Don't actually execute the commands for manipulating the package
51 -
\b-V
\bV Print the version number and exit.
53 -
\b-v
\bv Turn on verbose output. Specifying -
\b-v
\bv multiple times increases
54 the level of verbosity.
56 -
\b-W
\bW _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be
57 Set _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be as the directory in which all the views are managed.
58 The default _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be directory is _
\b/_
\bu_
\bs_
\br_
\b/_
\bp_
\bk_
\bg but may be overridden
59 by the LOCALBASE environment variable.
61 -
\b-w
\bw _
\bv_
\bi_
\be_
\bw
62 Set _
\bv_
\bi_
\be_
\bw as the directory in _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be in which the package
63 instances should be added or deleted. The default _
\bv_
\bi_
\be_
\bw is the
64 empty view but may be overridden by the PKG_VIEW environment
67 The following commands are supported:
69 a
\bad
\bdd
\bd Add the listed package instances into _
\bv_
\bi_
\be_
\bw.
71 c
\bch
\bhe
\bec
\bck
\bk Check whether the listed package instances are present in _
\bv_
\bi_
\be_
\bw.
72 If they are not present, then return 0, otherwise return 1.
74 d
\bde
\bel
\ble
\bet
\bte
\be Delete the listed package instances from _
\bv_
\bi_
\be_
\bw.
76 E
\bEN
\bNV
\bVI
\bIR
\bRO
\bON
\bNM
\bME
\bEN
\bNT
\bT
78 This is the location of the _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br directory inside which all
79 depoted packages are kept. The default _
\bs_
\bt_
\bo_
\bw_
\bd_
\bi_
\br is the _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be_
\bs
80 directory under _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be.
83 This is the location of the _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be directory in which all the
84 views are managed. The default _
\bv_
\bi_
\be_
\bw_
\bb_
\ba_
\bs_
\be directory is _
\b/_
\bu_
\bs_
\br_
\b/_
\bp_
\bk_
\bg.
87 If the -
\b-k
\bk flag isn't given, then the value of the environment
88 variable PKG_DBDIR is the package database directory for the
89 default view, otherwise it defaults to _
\b/_
\bv_
\ba_
\br_
\b/_
\bd_
\bb_
\b/_
\bp_
\bk_
\bg.
92 This can be used to specify files in _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be that should ignored
93 when adding or removing the package instance from _
\bv_
\bi_
\be_
\bw.
94 PLIST_IGNORE_FILES is a space-separated list of shell glob pat-
95 terns that match files relative to the _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be depot directory,
96 and it defaults to "info/dir *[~#] *.OLD *.orig *,v". This is
97 overridden by any _PLIST_IGNORE_FILES setting in a package's
98 _
\bb_
\bu_
\bi_
\bl_
\bd_
\b-_
\bi_
\bn_
\bf_
\bo_
\b-_
\bf_
\bi_
\bl_
\be (see pkg_create(1)) if it exists.
101 The default view can be specified in the PKG_VIEW environment
105 <pkg-dbdir>/<package>/+INSTALL
106 If the package contains an _
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl script (see pkg_create(1)),
107 then after the package instance is added into a view, the script
108 is executed with the following arguments:
110 _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be The name of the package instance being added.
112 V
\bVI
\bIE
\bEW
\bW-
\b-I
\bIN
\bNS
\bST
\bTA
\bAL
\bLL
\bL
113 Keyword denoting that the script is to perform any
114 actions needed after the package instance is added to a
117 If the _
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl script exits with a non-zero status code, the
118 installation is terminated.
120 <pkg-dbdir>/<package>/+DEINSTALL
121 If the package contains an _
\bd_
\be_
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl script (see pkg_create(1)),
122 then before the package instance is deleted from a view, the
123 script is executed with the following arguments:
125 _
\bp_
\ba_
\bc_
\bk_
\ba_
\bg_
\be The name of the package instance being deleted.
127 V
\bVI
\bIE
\bEW
\bW-
\b-D
\bDE
\bEI
\bIN
\bNS
\bST
\bTA
\bAL
\bLL
\bL
128 Keyword denoting that the script is to perform any
129 actions needed before the package instance is deleted
132 If the _
\bd_
\be_
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl script exits with a non-zero status code, the
133 de-installation is terminated.
135 The _
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl and _
\bd_
\be_
\bi_
\bn_
\bs_
\bt_
\ba_
\bl_
\bl scripts are called with the environment vari-
136 able PKG_PREFIX set to the path to the _
\bv_
\bi_
\be_
\bw directory.
138 S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
139 linkfarm(1), pkg_delete(1)
141 A
\bAU
\bUT
\bTH
\bHO
\bOR
\bRS
\bS
142 The p
\bpk
\bkg
\bg_
\b_v
\bvi
\bie
\bew
\bw utility was written by Alistair G. Crooks <agc@NetBSD.org>.
144 NetBSD 4.0 September 8, 2003 NetBSD 4.0