Wed Apr 22 19:14:16 2009 UTC ()
Regen.


(joerg)
diff -r1.20 -r1.21 pkgsrc/pkgtools/pkg_install/files/admin/pkg_admin.cat1

cvs diff -r1.20 -r1.21 pkgsrc/pkgtools/pkg_install/files/admin/Attic/pkg_admin.cat1 (switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/admin/Attic/pkg_admin.cat1 2009/02/08 23:14:14 1.20
+++ pkgsrc/pkgtools/pkg_install/files/admin/Attic/pkg_admin.cat1 2009/04/22 19:14:16 1.21
@@ -1,227 +1,229 @@ @@ -1,227 +1,229 @@
1PKG_ADMIN(1) NetBSD General Commands Manual PKG_ADMIN(1) 1PKG_ADMIN(1) NetBSD General Commands Manual PKG_ADMIN(1)
2 2
3NNAAMMEE 3NNAAMMEE
4 ppkkgg__aaddmmiinn -- perform various administrative tasks to the pkg system 4 ppkkgg__aaddmmiinn -- perform various administrative tasks to the pkg system
5 5
6SSYYNNOOPPSSIISS 6SSYYNNOOPPSSIISS
7 ppkkgg__aaddmmiinn [--bbqqSSvvVV] [--CC _c_o_n_f_i_g] [--dd _l_s_d_i_r] [--KK _p_k_g___d_b_d_i_r] [--ss _s_f_x___p_a_t_t_e_r_n] 7 ppkkgg__aaddmmiinn [--bbqqSSvvVV] [--CC _c_o_n_f_i_g] [--dd _l_s_d_i_r] [--KK _p_k_g___d_b_d_i_r] [--ss _s_f_x___p_a_t_t_e_r_n]
8 _c_o_m_m_a_n_d [args ...] 8 _c_o_m_m_a_n_d [args ...]
9 9
10DDEESSCCRRIIPPTTIIOONN 10DDEESSCCRRIIPPTTIIOONN
11 This command performs various administrative tasks around the NetBSD 11 This command performs various administrative tasks around the NetBSD
12 Packages System. 12 Packages System.
13 13
14OOPPTTIIOONNSS 14OOPPTTIIOONNSS
15 The following command-line options are supported: 15 The following command-line options are supported:
16 16
17 --bb Print only the base names when matching package names for llssaallll 17 --bb Print only the base names when matching package names for llssaallll
18 and llssbbeesstt. 18 and llssbbeesstt.
19 19
20 --CC _c_o_n_f_i_g 20 --CC _c_o_n_f_i_g
21 Read the configuration file from _c_o_n_f_i_g instead of the system 21 Read the configuration file from _c_o_n_f_i_g instead of the system
22 default. 22 default.
23 23
24 --dd _l_s_d_i_r 24 --dd _l_s_d_i_r
25 Set _l_s_d_i_r as the path to the directory in which to find matching 25 Set _l_s_d_i_r as the path to the directory in which to find matching
26 package names for llssaallll and llssbbeesstt. 26 package names for llssaallll and llssbbeesstt.
27 27
28 --KK _p_k_g___d_b_d_i_r 28 --KK _p_k_g___d_b_d_i_r
29 Set _p_k_g___d_b_d_i_r as the package database directory. If this option 29 Set _p_k_g___d_b_d_i_r as the package database directory. If this option
30 isn't specified, then the package database directory is taken 30 isn't specified, then the package database directory is taken
31 from the value of the environment variable PKG_DBDIR if it's set, 31 from the value of the environment variable PKG_DBDIR if it's set,
32 otherwise it defaults to _/_v_a_r_/_d_b_/_p_k_g. 32 otherwise it defaults to _/_v_a_r_/_d_b_/_p_k_g.
33 33
34 --qq Perform checks in a quiet manner. In normal operation, ppkkgg__aaddmmiinn 34 --qq Perform checks in a quiet manner. In normal operation, ppkkgg__aaddmmiinn
35 prints a `.' to standard output to indicate progress. This 35 prints a `.' to standard output to indicate progress. This
36 option suppresses this progress indicator. 36 option suppresses this progress indicator.
37 37
38 --SS Set the shell glob pattern for package suffixes when matching 38 --SS Set the shell glob pattern for package suffixes when matching
39 package names for llssaallll and llssbbeesstt to be the null suffix. 39 package names for llssaallll and llssbbeesstt to be the null suffix.
40 40
41 --ss _s_f_x___p_a_t_t_e_r_n 41 --ss _s_f_x___p_a_t_t_e_r_n
42 Set the shell glob pattern for package suffixes when matching 42 Set the shell glob pattern for package suffixes when matching
43 package names for llssaallll and llssbbeesstt. The default pattern is 43 package names for llssaallll and llssbbeesstt. The default pattern is
44 ".t[bg]z". 44 ".t[bg]z".
45 45
46 --VV Print version number and exit. 46 --VV Print version number and exit.
47 47
48 --vv Be more verbose. 48 --vv Be more verbose.
49 49
50 The following commands are supported: 50 The following commands are supported:
51 51
52 aadddd _p_k_g _._._. 52 aadddd _p_k_g _._._.
53 For each listed package, write the absolute pathnames of the 53 For each listed package, write the absolute pathnames of the
54 files listed in its _+_C_O_N_T_E_N_T_S file together with the package they 54 files listed in its _+_C_O_N_T_E_N_T_S file together with the package they
55 belong to into the package database. This should be used only by 55 belong to into the package database. This should be used only by
56 pkg_view(1). 56 pkg_view(1).
57 57
58 aauuddiitt [--eess] [--tt _t_y_p_e] [_p_k_g] ... 58 aauuddiitt [--eess] [--tt _t_y_p_e] [_p_k_g] ...
59 Check the listed installed packages for vulnerabilities. If no 59 Check the listed installed packages for vulnerabilities. If no
60 package is given, check all installed packages. If --ee is given, 60 package is given, check all installed packages. If --ee is given,
61 also include end-of-life information. If --ss is given, check the 61 also include end-of-life information. If --ss is given, check the
62 signature of the pkg-vulnerabilities file before using it. --tt 62 signature of the pkg-vulnerabilities file before using it. --tt
63 restricts the reported vulnerabilities to type _t_y_p_e. 63 restricts the reported vulnerabilities to type _t_y_p_e.
64 64
65 aauuddiitt--ppkkgg [--eess] [--tt _t_y_p_e] [_p_k_g] ... 65 aauuddiitt--ppkkgg [--eess] [--tt _t_y_p_e] [_p_k_g] ...
66 Like aauuddiitt, but check only the given package names or patterns. 66 Like aauuddiitt, but check only the given package names or patterns.
67 67
68 aauuddiitt--bbaattcchh [--eess] [--tt _t_y_p_e] [_p_k_g_-_l_i_s_t] ... 68 aauuddiitt--bbaattcchh [--eess] [--tt _t_y_p_e] [_p_k_g_-_l_i_s_t] ...
69 Like aauuddiitt--ppkkgg, but read the package names or patterns one per 69 Like aauuddiitt--ppkkgg, but read the package names or patterns one per
70 line from the given files. 70 line from the given files.
71 71
72 aauuddiitt--hhiissttoorryy [--ss] [--tt _t_y_p_e] [_p_k_g_b_a_s_e] ... 72 aauuddiitt--hhiissttoorryy [--ss] [--tt _t_y_p_e] [_p_k_g_b_a_s_e] ...
73 Print all vulnerabilities for the given base package names. 73 Print all vulnerabilities for the given base package names.
74 74
75 cchheecckk [_p_k_g _._._.] 75 cchheecckk [_p_k_g _._._.]
76 Use this command to check the files belonging to some or all of 76 Use this command to check the files belonging to some or all of
77 the packages installed on the local machine against the checksum 77 the packages installed on the local machine against the checksum
78 which was recorded in the _+_C_O_N_T_E_N_T_S files at package installation 78 which was recorded in the _+_C_O_N_T_E_N_T_S files at package installation
79 time. Symbolic links also have their integrity checked against 79 time. Symbolic links also have their integrity checked against
80 the recorded value at package installation time. If no addi- 80 the recorded value at package installation time. If no addi-
81 tional argument is given, the files of all installed packages are 81 tional argument is given, the files of all installed packages are
82 checked, else only the named packages will be checked (wildcards 82 checked, else only the named packages will be checked (wildcards
83 can be used here, see pkg_info(1)). 83 can be used here, see pkg_info(1)).
84 84
85 The packages' _+_C_O_N_T_E_N_T_S files will be parsed and the checksum 85 The packages' _+_C_O_N_T_E_N_T_S files will be parsed and the checksum
86 will be checked for every file found. A warning message is 86 will be checked for every file found. A warning message is
87 printed if the expected checksum differs from the checksum of the 87 printed if the expected checksum differs from the checksum of the
88 file on disk. Symbolic links are also checked, ensuring that the 88 file on disk. Symbolic links are also checked, ensuring that the
89 targets on disk are the same as the contents recorded at package 89 targets on disk are the same as the contents recorded at package
90 installation time. 90 installation time.
91 91
92 cchheecckk--ppkkgg--vvuullnneerraabbiilliittiieess [--ss] _f_i_l_e 92 cchheecckk--ppkkgg--vvuullnneerraabbiilliittiieess [--ss] _f_i_l_e
93 Check format and hashes in the pkg-vulnerabilities file _f_i_l_e. If 93 Check format and hashes in the pkg-vulnerabilities file _f_i_l_e. If
94 --ss is given, also check the embedded signature. 94 --ss is given, also check the embedded signature.
95 95
96 cchheecckk--ssiiggnnaattuurree _f_i_l_e _._._. 96 cchheecckk--ssiiggnnaattuurree _f_i_l_e _._._.
97 Reports if _f_i_l_e is a correctly signed package. 97 Reports if _f_i_l_e is a correctly signed package.
98 98
99 ccoonnffiigg--vvaarr _v_a_r_i_a_b_l_e 99 ccoonnffiigg--vvaarr _v_a_r_i_a_b_l_e
100 Print the current value of _v_a_r_i_a_b_l_e as used after parsing the 100 Print the current value of _v_a_r_i_a_b_l_e as used after parsing the
101 configuration file. 101 configuration file.
102 102
103 ddeelleettee _p_k_g _._._. 103 ddeelleettee _p_k_g _._._.
104 For each listed package, remove all file entries in the package 104 For each listed package, remove all file entries in the package
105 database that belong to the package. This should be used only by 105 database that belong to the package. This should be used only by
106 pkg_view(1). 106 pkg_view(1).
107 107
108 dduummpp Dump the contents of the package database, similar to ppkkgg__iinnffoo 108 dduummpp Dump the contents of the package database, similar to ppkkgg__iinnffoo
109 --FF. Columns are printed for the key field used in the pkgdb - 109 --FF. Columns are printed for the key field used in the pkgdb -
110 the filename -, and the data field - the package the file belongs 110 the filename -, and the data field - the package the file belongs
111 to. 111 to.
112 112
113 ffeettcchh--ppkkgg--vvuullnneerraabbiilliittiieess [--ssuu] 113 ffeettcchh--ppkkgg--vvuullnneerraabbiilliittiieess [--ssuu]
114 Fetch a new pkg-vulnerabilities file, check the format and if --ss 114 Fetch a new pkg-vulnerabilities file, check the format and if --ss
115 is given the signature. If all checks are passed, write it to 115 is given the signature. If all checks are passed, write it to
116 pkgdb. 116 pkgdb. If --uu is given, the fetch is conditional and the file
 117 transfer is only done if the remote version is newer than the one
 118 in pkgdb.
117 119
118 llssaallll _/_d_i_r_/_p_k_g_p_a_t_t_e_r_n 120 llssaallll _/_d_i_r_/_p_k_g_p_a_t_t_e_r_n
119 121
120 llssbbeesstt _/_d_i_r_/_p_k_g_p_a_t_t_e_r_n 122 llssbbeesstt _/_d_i_r_/_p_k_g_p_a_t_t_e_r_n
121 List all/best package matching pattern in the given directory 123 List all/best package matching pattern in the given directory
122 _/_d_i_r. If the --dd flag is given, then that directory path over- 124 _/_d_i_r. If the --dd flag is given, then that directory path over-
123 rides _/_d_i_r. Can be used to work around limitations of /bin/sh 125 rides _/_d_i_r. Can be used to work around limitations of /bin/sh
124 and other filename globbing mechanisms. This option implements 126 and other filename globbing mechanisms. This option implements
125 matching of pkg-wildcards against arbitrary files and directo- 127 matching of pkg-wildcards against arbitrary files and directo-
126 ries, useful mainly in the build system itself. See pkg_info(1) 128 ries, useful mainly in the build system itself. See pkg_info(1)
127 for a description of the pattern. 129 for a description of the pattern.
128 130
129 Example: 131 Example:
130 132
131 yui# cd /usr/pkgsrc/packages/i386ELF/All/ 133 yui# cd /usr/pkgsrc/packages/i386ELF/All/
132 yui# ls unzip* 134 yui# ls unzip*
133 unzip-5.40.tgz unzip-5.41.tgz 135 unzip-5.40.tgz unzip-5.41.tgz
134 yui# pkg_admin lsall 'unzip*' 136 yui# pkg_admin lsall 'unzip*'
135 /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz 137 /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz
136 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz 138 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
137 yui# pkg_admin lsall 'unzip>=5.40' 139 yui# pkg_admin lsall 'unzip>=5.40'
138 /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz 140 /usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz
139 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz 141 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
140 yui# pkg_admin lsall 'unzip>=5.41' 142 yui# pkg_admin lsall 'unzip>=5.41'
141 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz 143 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
142 yui# pkg_admin lsbest 'unzip>=5.40' 144 yui# pkg_admin lsbest 'unzip>=5.40'
143 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz 145 /usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
144 yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*' 146 yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*'
145 /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz 147 /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz
146 /usr/pkgsrc/packages/i386ELF/All/unproven-pthreads-0.15.tgz 148 /usr/pkgsrc/packages/i386ELF/All/unproven-pthreads-0.15.tgz
147 149
148 ppmmaattcchh _p_a_t_t_e_r_n _p_k_g 150 ppmmaattcchh _p_a_t_t_e_r_n _p_k_g
149 Returns true if _p_k_g matches _p_a_t_t_e_r_n, otherwise returns false. 151 Returns true if _p_k_g matches _p_a_t_t_e_r_n, otherwise returns false.
150 152
151 rreebbuuiilldd 153 rreebbuuiilldd
152 Rebuild the package database mapping from scratch, scanning sub- 154 Rebuild the package database mapping from scratch, scanning sub-
153 directories in _/_v_a_r_/_d_b_/_p_k_g for _+_C_O_N_T_E_N_T_S files, parsing them and 155 directories in _/_v_a_r_/_d_b_/_p_k_g for _+_C_O_N_T_E_N_T_S files, parsing them and
154 writing the resulting absolute pathnames together with the pack- 156 writing the resulting absolute pathnames together with the pack-
155 age they belong to into the package database. 157 age they belong to into the package database.
156 158
157 This option is intended to be used for upgrading from non-pkgdb- 159 This option is intended to be used for upgrading from non-pkgdb-
158 pkg_* tools to pkgdb-pkg_* tools, further manipulation of the 160 pkg_* tools to pkgdb-pkg_* tools, further manipulation of the
159 pkgdb will be done by pkg_add(1), pkg_delete(1), and 161 pkgdb will be done by pkg_add(1), pkg_delete(1), and
160 pkg_create(1). 162 pkg_create(1).
161 163
162 Needs to be run as root. 164 Needs to be run as root.
163 165
164 rreebbuuiilldd--ttrreeee 166 rreebbuuiilldd--ttrreeee
165 Rebuild the +REQUIRED_BY files from scratch by reresolving all 167 Rebuild the +REQUIRED_BY files from scratch by reresolving all
166 dependencies. 168 dependencies.
167 169
168 This option is intended to be used for fixing inconsistencies 170 This option is intended to be used for fixing inconsistencies
169 between the records of depending and depended-on packages, such 171 between the records of depending and depended-on packages, such
170 as can arise by the use of ppkkgg__ddeelleettee --ff. 172 as can arise by the use of ppkkgg__ddeelleettee --ff.
171 173
172 sseett _v_a_r_i_a_b_l_e_=_v_a_l_u_e _p_k_g _._._. 174 sseett _v_a_r_i_a_b_l_e_=_v_a_l_u_e _p_k_g _._._.
173 Set variable with information about the installed package. Use 175 Set variable with information about the installed package. Use
174 uunnsseett to remove a variable. 176 uunnsseett to remove a variable.
175 177
176 Packages that are not installed directly by the user but pulled 178 Packages that are not installed directly by the user but pulled
177 in as dependencies are marked by setting ``automatic=YES''. 179 in as dependencies are marked by setting ``automatic=YES''.
178 180
179 ggppgg--ssiiggnn--ppaacckkaaggee ppkkgg 181 ggppgg--ssiiggnn--ppaacckkaaggee ppkkgg
180 Sign the binary package _p_k_g using GPG. 182 Sign the binary package _p_k_g using GPG.
181 183
182 xx550099--ssiiggnn--ppaacckkaaggee ppkkgg ssppkkgg kkeeyy cceerrtt 184 xx550099--ssiiggnn--ppaacckkaaggee ppkkgg ssppkkgg kkeeyy cceerrtt
183 Sign the binary package _p_k_g using the key _k_e_y and the certificate 185 Sign the binary package _p_k_g using the key _k_e_y and the certificate
184 _c_e_r_t, using _s_p_k_g as output file. 186 _c_e_r_t, using _s_p_k_g as output file.
185 187
186 uunnsseett _v_a_r_i_a_b_l_e _p_k_g _._._. 188 uunnsseett _v_a_r_i_a_b_l_e _p_k_g _._._.
187 Remove an installation variable. 189 Remove an installation variable.
188 190
189EENNVVIIRROONNMMEENNTT 191EENNVVIIRROONNMMEENNTT
190 PKG_DBDIR 192 PKG_DBDIR
191 If the --KK flag isn't given, then PKG_DBDIR is the location of the 193 If the --KK flag isn't given, then PKG_DBDIR is the location of the
192 package database directory. The default package database direc- 194 package database directory. The default package database direc-
193 tory is _/_v_a_r_/_d_b_/_p_k_g. 195 tory is _/_v_a_r_/_d_b_/_p_k_g.
194 196
195CCOONNFFIIGGUURRAATTIIOONN VVAARRIIAABBLLEESS 197CCOONNFFIIGGUURRAATTIIOONN VVAARRIIAABBLLEESS
196 The following variables change the behavior of ppkkgg__aaddmmiinn and are 198 The following variables change the behavior of ppkkgg__aaddmmiinn and are
197 described in pkg_install.conf(5): 199 described in pkg_install.conf(5):
198 200
199 CERTIFICATE_ANCHOR_PKGS 201 CERTIFICATE_ANCHOR_PKGS
200 202
201 CERTIFICATE_ANCHOR_PKGVULN 203 CERTIFICATE_ANCHOR_PKGVULN
202 204
203 CERTIFICATE_CHAIN 205 CERTIFICATE_CHAIN
204 206
205 GPG 207 GPG
206 208
207 PKGVULNDIR 209 PKGVULNDIR
208 210
209 PKGVULNURL 211 PKGVULNURL
210 212
211 IGNORE_URL 213 IGNORE_URL
212 214
213FFIILLEESS 215FFIILLEESS
214 /var/db/pkg/pkgdb.byfile.db 216 /var/db/pkg/pkgdb.byfile.db
215 /var/db/pkg/<pkg>/+CONTENTS 217 /var/db/pkg/<pkg>/+CONTENTS
216 218
217SSEEEE AALLSSOO 219SSEEEE AALLSSOO
218 pkg_add(1), pkg_create(1), pkg_delete(1), pkg_info(1), pkg_view(1), 220 pkg_add(1), pkg_create(1), pkg_delete(1), pkg_info(1), pkg_view(1),
219 pkg_install.conf(5), pkgsrc(7) 221 pkg_install.conf(5), pkgsrc(7)
220 222
221HHIISSTTOORRYY 223HHIISSTTOORRYY
222 The ppkkgg__aaddmmiinn command first appeared in NetBSD 1.4. 224 The ppkkgg__aaddmmiinn command first appeared in NetBSD 1.4.
223 225
224AAUUTTHHOORRSS 226AAUUTTHHOORRSS
225 The ppkkgg__aaddmmiinn command was written by Hubert Feyrer. 227 The ppkkgg__aaddmmiinn command was written by Hubert Feyrer.
226 228
227NetBSD 5.0 May 30, 2008 NetBSD 5.0 229NetBSD 5.0 May 30, 2008 NetBSD 5.0