OSDN Git Service

[BUG FIX] Detection of the default option configuration was unsuccessful or wrong...
[portsreinstall/current.git] / man / portsreinstall.8
1 .\" ==================================================================================
2 .\" ports reinstall installation guide
3 .\" Copyright (C) 2010-2016 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
4 .\" ==================================================================================
5 .TH PORTSREINSTALL 8 "10 July 2016" "FreeBSD" "FreeBSD System Manager's Manual"
6 .SH NAME
7 portsreinstall \- ports upgrading utility for massive forced reinstallation
8 .SH SYNOPSIS
9 .B portsreinstall
10 [
11 .I
12 OPTIONS
13 ] [
14 .B
15 \-\-
16 ] [
17 .I
18 command
19 ]
20 .SH DESCRIPTION
21 This utility is an alternative to \fBportupgrade\fR(1) and \fBportmaster\fR(8), and designed to be suitable for reinstallation/upgrade of all packages after major version upgrade of the system or very long absence of ports upgrade, or for entire correction of confusion among installed packages.
22 .SH NOTATIONS
23  A \fIglob\fR is an extended regular expression or a shell\-type glob pattern matching either of a unique name, package names or port origins.
24  The glob syntax is compatible with \fBportupgrade\fR(1) and its accompaniments such as \fBportsdb\fR(1), \fBpkg_glob\fR(1) and \fBports_glob\fR(1).
25  If a glob starts with a colon ":", the following string is parsed as an extended regular expression, and otherwise a shell\-type glob.
26  A shell\-type glob is evaluated by matching an asterisk "*" to an arbitrary string of an arbitrary length, a question mark "?" to an arbitrary single character, characters "..." enclosed in a bracket "[...]" to a single character as one of the characters and characters "..." in a bracket "[!...]" to a single character matching none of the characters.
27  Here, the evaluation of the bracket is actually done by passing it to an extended regular expression by simply converting the prefix "[!" to "[^".
28  A glob is recognized as a unique name (package name without the version part) if no slash "/" or any special character for an extended regular expression or a shell\-type glob is included in the pattern.
29  For example, all of "zip" "zip\-3.?", "zip\-*", "zip\-[0\-9]*" and ":^zip\-[[:digit:]]+\.*" can match "zip\-3.0"; "archivers/unzip*" can match both of "archivers/unzip" and "archivers/unzip\-iconv".
30 .SH ARGUMENTS
31 One of the following \fIcommands\fR can be given for optional operations or confirmation.
32 .TP
33 \fBdo\fR
34 .PD 0
35 .TP
36 \fBdo all\fR
37 Full execution (default).
38 .TP
39 \fBprepare\fR
40 .PD 0
41 .TP
42 \fBdo prepare\fR
43 Just build (or continue to build or rebuild) the temporary database and stop before the actual operations to the ports/packages.
44 .TP
45 \fBredo\fR
46 .PD 0
47 .TP
48 \fBredo all\fR
49 Execute again for failed ports and their dependents.
50 .TP
51 \fBredo prepare\fR
52 Just rebuild the temporary database and stop before the actual operations for the redo process.
53 In case of restarting a stopped \fBredo prepare\fR process, execute by \fBprepare\fR or \fBdo prepare\fR command instead of this command.
54 .TP
55 \fBclean\fR
56 .PD 0
57 .TP
58 \fBclean [normal]\fR
59 Clean up the temporary database.
60 .TP
61 \fBclean force\fR
62 Clean up the temporary database without checking the privilege.
63 .TP
64 \fBreset\fR
65 .PD 0
66 .TP
67 \fBreset all\fR
68 Reset the temporary database by preserving the initial snapshot of installed packages.
69 This is for a rescue in case that some ports or the temporary database is broken.
70 .TP
71 \fBreset keepopts\fR
72 Reset the temporary database by preserving the initial snapshot of installed packages and option settings.
73 This is for a rescue in case that some ports or the temporary database is broken.
74 .TP
75 \fBok add\fR \fIglob1\fR [\fIglob2\fR ...]
76 Register manually resolved ports.
77 The port globs are separated from each other by comma or space.
78 .TP
79 \fBok del\fR \fIglob1\fR [\fIglob2\fR ...]
80 deregister manually resolved ports.
81 The port globs are separated from each other by comma or space.
82 .TP
83 \fBtaboo add\fR \fIglob1\fR [\fIglob2\fR ...]
84 Register taboo ports that must not be built or newly (re)installed.
85 The port globs are separated from each other by comma or space.
86 Registration to be "taboo" practically invalidates "necessary" registered by \fBnoneed add\fR command.
87 Ports specified in the HOLD section in the configuration file are protected from deinstallation.
88 The port globs are separated from each other by comma or space.
89 This functionality is intended to avoid manually deinstalled ports because of confliction or ports whose build or installation operations can damage the system, e.g., by flooding the file systems or kernel panic.
90 This command is for temporal definitions and permanent definitions should be given as TABOO_* values in ${LOCALBASE}/etc/portsreinstall.conf instead.
91 .TP
92 \fBtaboo del\fR \fIglob1\fR [\fIglob2\fR ...]
93 Deregister taboo ports.
94 The port globs are separated from each other by comma or space.
95 .TP
96 \fBneed add\fR \fIglob1\fR [\fIglob2\fR ...]
97 Register necessary ports that should be newly installed if not yet and kept installed even if being obsolete.
98 The port globs are separated from each other by comma or space.
99 Registration to be "necessary" takes priority over "unnecessary" registered by \fBnoneed add\fR command.
100 In other words, the registered ports are excluded from deinstallation candidates if they are obsolete, leaf or not-initially-installed ports, and otherwise have no effect on the actual operations.
101 .TP
102 \fBneed del\fR \fIglob1\fR [\fIglob2\fR ...]
103 Deregister necessary ports.
104 The port globs are separated from each other by comma or space.
105 The deregistered ports are added to leaf port candidates if they are not initially installed.
106 In this case, information on the deregistered ports remain until removal by \fBforget\fR command.
107 .TP
108 \fBnoneed add\fR \fIglob1\fR [\fIglob2\fR ...]
109 Register unnecessary ports that should be deinstalled unless required by other non\-leaf ports.
110 The port globs are separated from each other by comma or space.
111 In other words, the registered ports are added to leaf ports if they have no non\-leaf dependent, and otherwise have no effect on the actual operations.
112 Requirements of the registered ports are also recognized as leaves if all of their dependents are leaves.
113 Ports specified in the HOLD section in the configuration file are protected.
114 For example, just after installing new ports due to \fBneed add\fR command or \fB\-i\fR option as requirements of a specified target, registering only the target will let the all required ports be leaves as well as the target.
115 Actually deinstalled ports are selected via dialog together with the original leaf ports.
116 .TP
117 \fBnoneed del\fR \fIglob1\fR [\fIglob2\fR ...]
118 Deregister unnecessary ports.
119 The port globs are separated from each other by comma or space.
120 .TP
121 \fBreselect leaves\fR
122 Reselect leaf ports to delete.
123 This command is effective only after the temporary database is once built.
124 .TP
125 \fBreselect obsolete\fR
126 Reselect obsolete ports to delete.
127 This command is effective only after the temporary database is once built.
128 .TP
129 \fBsave\fR [\fIdir\fR]
130 Save the current temporary database as a .tar.gz archive.
131 The file name is created automatically by containing the current date time.
132 By default save directory is the current directory.
133 .TP
134 \fBload\fR \fIpath\fR
135 Load a temporary database archive.
136 Note that the currently temporary database is removed.
137 .TP
138 \fBglob\fR \fIglob\fR [\fIglob2\fR ...]
139 Evaluate port globs and show matched origins both for installed and uninstalled packages.
140 .TP
141 \fBoptions\fR
142 Show saved option settings and expected effects of option-resetting options \fB\-L\fR, \fB\-M\fR and \fB\-N\fR.
143 With \fB\-a\fR option, the first, second and third columns denote the option-resetting options, reset options and remaining options, respectively.
144 .TP
145 \fBrmconf\fR \fIglob\fR [\fIglob2\fR ...]
146 Reset port options for the specified ports to the default and reset affected parts in the temporary database.
147 .TP
148 \fBreconf\fR \fIglob\fR [\fIglob2\fR ...]
149 Reconfigure port options for the specified ports and reset affected parts in the temporary database.
150 .TP
151 \fBforget\fR \fIglob\fR [\fIglob2\fR ...]
152 Try to let the temporary database forget about the specified ports as much as possible.
153 Concretely, the data on each of the specified ports and their requirements/dependents is unless initially installed or required by other preserved ports.
154 This command is mainly for removing information on ports which had been added due to \fB\-i\fR option or \fBneed add\fR command but have become unneeded again.
155 In advance to executing this command, deinstallation for the specified ports should be completed by \fBnoneed add\fR command followed by \fBredo\fR command.
156 It is noted that ports registered by \fBok\fR, \fBtaboo\fR and \fBnoneed\fR commands are NOT deleted.
157 Internal tables used for \fBshow\fR command keep their information regardless of this command.
158 .TP
159 \fBpkgsanity\fR [\fIglob\fR ...]
160 Examine the sanity of installed packages, i.e., whether the installed files exist and match the checksum.
161 If arguments \fIglobs\fR are given, only the matching packages are examined.
162 For each insane package, the user is queried whether to reinstall it forcedly in the following do/redo runs.
163 The default choice is "yes" for packages which have any ELF binaries or include files changed or any type of files overwritten by other packages, and "no" for the others.
164 Insane packages already assigned to be reinstalled are skipped.
165 With \fB\-a\fR enabled, all insane packages are assigned to be the above mentioned default and the output is given in a form that the first to fourth columns denote the package name, port origin, whether assigned to be reinstalled (yes or no), and file path with a notice, respectively.
166 It is noted that this sanity check can detect some configuration or cache files which are changed during normal use and need not to be recovered.
167 .TP
168 \fBescape\fR \fIglob\fR [\fIglob2\fR ...]
169 Back up and delete packages specified by \fIglobs\fR for a temporary escape mainly for resolving undeclared conflicts.
170 The escaped packages are registered as taboo as same as \fBtaboo add\fR \fIglob\fR [\fIglob2\fR ...].
171 .TP
172 \fBrestore\fR \fIglob\fR [\fIglob2\fR ...]
173 Restore packages specified by \fIglobs\fR escaped by \fBescape\fR command.
174 The escaped packages are deregistered from taboo as same as \fBtaboo del\fR \fIglob\fR [\fIglob2\fR ...].
175 .TP
176 \fBshow\fR [\fIsubject\fR] [@[\fBrun\fR|\fBbuild\fR|\fBall\fR][,[\fBdirect\fR|\fBfull\fR]]] [\fIarguments\fR]
177 Show the list of ports to be reinstalled.
178 The applied scope of dependencies can be controlled by "show option" proceeded by "@"; \fBrun\fR, \fBbuild\fR and \fBall\fR employ the run\-time, build\-time or both-time ones, respectively; \fBdirect\fR and \fBfull\fR include only the direct or fully recursive ones, respectively.
179 The default scope is determined by the saved option settings for \fB\-B\fR, \fB\-b\fR and \fB\-o\fR.
180 Some \fIsubject\fR's require \fIarguments\fR.
181 The following \fIsubject\fR's are available.
182 .RS 8
183 .TP
184 \fBtodo\fR
185 Ports to be reinstalled in the current do/redo process (default).
186 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
187 .TP
188 \fBdone\fR
189 Ports which have been already reinstalled to be up-to-date with their all requirements.
190 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
191 .TP
192 \fBresolved\fR
193 Manually reinstalled ports registered by \fBok\fR command.
194 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
195 .TP
196 \fBfailure\fR
197 Failed ports.
198 With \fB\-a\fR option, the first, second and third columns denote the origin, initial/new/current package name, failed make target and manually resolved status (yes or no), respectively.
199 .TP
200 \fBredo\fR
201 Ports to be reinstalled after success in any of their failed requirements.
202 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
203 .TP
204 \fBtaboo\fR
205 Taboo ports registered by \fBtaboo\fR command.
206 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
207 .TP
208 \fBneed\fR
209 Necessary ports registered by \fBneed\fR command.
210 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
211 .TP
212 \fBnoneed\fR
213 Unnecessary ports registered by \fBnoneed\fR command.
214 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
215 .TP
216 \fBrestored\fR
217 Leaf, obsolete or unneeded ports which had been once deleted but are to be or have been restored.
218 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
219 .TP
220 \fBdeleted\fR
221 Leaf, obsolete or unneeded ports are to be or have been deleted.
222 With \fB\-a\fR option, the first and second columns denote the origin and initial/new/current package name, respectively.
223 .TP
224 \fBconflict\fR
225 Conflicting ports which are temporarily deleted.
226 With \fB\-a\fR option, the first, second and third columns denote the origin, initial/new/current package name, and opponent ports concatenated by comma respectively.
227 .TP
228 \fBrequirements\fR \fIglob1\fR [\fIglob2\fR ...]
229 Ports required by matching ports/packages.
230 With \fB\-a\fR option, the first, second, third and fourth columns denote the origin of the queried port, initial/new/current package name of the queried port, origin of a requirement of the queried port and initial/new/current package name of the requirement, respectively.
231 .TP
232 \fBdependents\fR \fIglob1\fR [\fIglob2\fR ...]
233 Ports depending on matching ports/packages.
234 With \fB\-a\fR option, the first, second, third and fourth columns denote the origin of the queried port, initial/new/current package name of the queried port, origin of a dependent of the queried port and initial/new/current package name of the dependent, respectively.
235 .TP
236 \fBinitrequirements\fR \fIglob1\fR [\fIglob2\fR ...]
237 Ports initially required by matching initially installed ports/packages.
238 With \fB\-a\fR option, the first, second, third and fourth columns denote the origin of the queried port, package name of the queried port, origin of a requirement of the queried port and package name of the requirement, respectively.
239 .TP
240 \fBinitdependents\fR \fIglob1\fR [\fIglob2\fR ...]
241 Ports initially depending on matching initially installed ports/packages.
242 With \fB\-a\fR option, the first, second, third and fourth columns denote the origin of the queried port, package name of the queried port, origin of a dependent of the queried port and package name of the dependent, respectively.
243 .TP
244 \fBstatus\fR \fIglob1\fR [\fIglob2\fR ...]
245 Current success/failure status in (re)installation of matching ports/packages.
246 Returned values are null, "todo", "done", "resolved", "failure", "redo", "taboo", "need", "noneed", "restored", "deleted" or "conflict", where null means that they are untouched in the current option configuration or temporary reset due to configuration changes. 
247 .RE
248 .SH OPTIONS
249 If duplicated or conflicting ones are set, the last ones are effective.
250 The end of options can be explicitly specified by \fB\-\-\fR.
251 Short options can be given in compact forms, for example, \fB\-i -q -P\fR to be \fB\-iqP\fR.
252 .PD
253 .TP
254 \fB*NOTE*\fR
255 The configuration of options annotated as "saved and transferred to restarted/following runs" are saved in the temporary database by the first run after cleaning the database.
256 In the following runs for any commands, the corresponding option settings are loaded from the saved configuration unless explicitly reset by \fB\-L\fR, \fB\-M\fR or \fB\-N\fR option.
257 The saved options can be checked by \fBportsreinstall options\fR command.
258 .PD
259 .SS Group 1: Just show messages and exit without operation
260 .IP \fB\-H\fR
261 .PD 0
262 .TP
263 \fB\-\-long\-help\fR
264 Show a long help whose content is the same as the manual page.
265 .PD
266 .IP \fB\-h\fR
267 .PD 0
268 .TP
269 \fB\-\-help\fR
270 .PD 0
271 .TP
272 \fB\-\-short\-help\fR
273 Show a short help.
274 .PD
275 .IP \fB\-V\fR
276 .PD 0
277 .TP
278 \fB\-\-show\-version\fR
279 Show the current version.
280 .PD
281 .SS Group 2: Effective anytime
282 .IP \fB\-a\fR
283 .PD 0
284 .TP
285 \fB\-\-batch\-mode\fR
286 Suppress messages so as to be friendly for batch operations.
287 The output formats for \fBoptions\fR and \fBshow\fR commands and \fB\-V\fR option are arranged to be more batch\-friendly.
288 It is noted that log output in build/installation processes are not suppressed.
289 .PD
290 .IP \fB\-i\fR
291 .PD 0
292 .TP
293 \fB\-\-allow\-new\-targets\fR
294 Allow \fB\-O\fR, \fB\-T\fR or \fB\-t\fR options to specify not\-yet\-installed ports.
295 If any of not\-yet\-installed ports matching the target globs are ambiguous, a dialog box is open for each of them to select the actual targets.
296 .PD
297 .IP \fB\-M\fR
298 .PD 0
299 .TP
300 \fB\-\-reset\-minor\-options\fR
301 Reset option settings for minor controls.
302 Option settings for group 4 are once reset and replaced with the newly specified ones.
303 Check the saved options by \fBportsreinstall options\fR command before specifying this option.
304 .PD
305 .SS Group 3: Effective only with redo command
306 .IP \fB\-L\fR
307 .PD 0
308 .TP
309 \fB\-\-reload\-conf\fR
310 Reload configuration files.
311 This option is effective only with \fBredo\fR command.
312 Option settings for group 6 are once reset and replaced with the newly specified ones.
313 Check the saved options by \fBportsreinstall options\fR command before specifying this option.
314 .PD
315 .IP \fB\-N\fR
316 .PD 0
317 .TP
318 \fB\-\-reset\-targets\fR
319 Re\-scan installed packages and reset option settings for target specification.
320 This option is effective only with \fBredo\fR command.
321 Option settings for group 5 are once reset and replaced with the newly specified ones.
322 Check the saved options by \fBportsreinstall options\fR command before specifying this option.
323 .PD
324 .SS Group 4: Saved and transferred to restarted runs, renewable by \-M option
325 Option settings in this group are saved at the first \fBdo\fR or \fBprepare\fR run, and transferred to the following runs.
326 Reset of the saved values for this group is available by appending \fB\-M\fR with newly specified options.
327 .IP \fB\-A\fR
328 .PD 0
329 .TP
330 \fB\-\-non\-interactive\-ports\-only\fR
331 Operations of (re)installation are made only on ports which do not require manual interaction.
332 This option conflicts with \fB\-I\fR.
333 .PD
334 .IP \fB\-B\fR
335 .PD 0
336 .TP
337 \fB\-\-exclude\-runtime\-dependencies\fR
338 Exclude run\-time dependencies in evaluation of dependencies.
339 This option affects behaviors of \fB\-t\fR, \fB\-T\fR and \fB\-q\fR options.
340 .PD
341 .IP \fB\-b\fR
342 .PD 0
343 .TP
344 \fB\-\-include\-buildtime\-dependencies\fR
345 Include build\-time dependencies in evaluation of dependencies.
346 This option affects behaviors of \fB\-t\fR, \fB\-T\fR and \fB\-q\fR options.
347 .PD
348 .IP \fB\-C\fR
349 .PD 0
350 .TP
351 \fB\-\-apply\-default\-config\fR
352 The temporary database is built by skipping executing \fBmake config\fR and applying default values for unconfigured port options.
353 The port options are unchanged and unsaved (they are saved in case of old ports trees in which \fBdialog\fR(1) is used instead of \fBdialog4ports\fR(1)).
354 .PD
355 .IP \fB\-c\fR
356 .PD 0
357 .TP
358 \fB\-\-suppress\-cleaning\-obsolete\-database\fR
359 Suppress cleaning the temporary database even if its obsolete.
360 This option suppresses the default behavior that the temporary database is automatically cleaned up if it is older than the ports tree or portsreinstall itself is to be upgraded.
361 Use of this option may cause unexpected results and basically unrecommended.
362 .PD
363 .IP \fB\-D\fR
364 .PD 0
365 .TP
366 \fB\-\-suppress\-entire\-inspection\-distinfo\fR
367 Suppress entire inspection of distinfo files in the ports tree as a preparation for deleting obsolete distfiles.
368 By default, viz., without this option, all distfiles are preserved unless being obsolete in the current version of the ports tree.
369 For this purpose, entire inspection of distinfo files in the ports tree is carried out in order to get the complete list of distfiles.
370 This inspection can take an extremely long time if the ports tree is located in file systems with low access speeds.
371 With this option specified, distfiles for ports are deleted unless they are initially installed, added due to \fB\-i\fR option, or required by any of the installed or added ports.
372 .PD
373 .IP \fB\-d\fR
374 .PD 0
375 .TP
376 \fB\-\-keep\-distfiles\fR
377 Do not clean up obsolete or unused distfiles.
378 .PD
379 .IP \fB\-f\fR
380 .PD 0
381 .TP
382 \fB\-\-disallow\-force\-continuation\-for\-looped\-dependency\fR
383 Disallow forcible continuation in case that looped dependencies are found.
384 Without this option, workarounds are carried out at the phase of "Completion of *-time requirement lists" of the preparation stage.
385 In this case, when a looped dependency is detected, the first found dependency which is not run-and-build-time dependency (that is a typical pattern of dynamically linked libraries) is marked ignored to break the loop; if no such dependency is found, one connecting the end back to the start of a loop cycle is ignored for the time being.
386 .PD
387 .IP \fB\-G\fR
388 .PD 0
389 .TP
390 \fB\-\-use\-prebuilt\-package\fR
391 Use prebuilt packages for ports with the default configurations, i.e., that no part option is changed from the default, no knob (make environment variable or make argument) is defined, and no replacement or update is made to required ports.
392 This option is useful for new installation and will not be harmful for the most other cases.
393 The actual merit of this option depends on the service levels and qualities of the remote package sites; since October 31, 2013, weekly-updated pkgng packages are provided for major OS distributions (as of November 15, 2013, i386 and amd64) until their end-of-life while legacy packages are provided only at each release timing in case of existing release versions of major architectures; the situations are different for STABLE and CURRENT versions and more various architectures are supported for legacy packages.
394 The official support of legacy packages were abandoned at September 1, 2014, but third-party services might be used by configuring PACKAGECHECKSUMROOTS and PACKAGEROOTS if available somewhere.
395 It is noted that this option can be inconvenient for ports whose dependencies on other packages, files or other system-specific values are automatically arranged during the build or installation processes by detection outside of control by port options, knobs or ports replacement.
396 This problem can be resolved by configuring NOPKG_* section in ${LOCALBASE}/etc/portsreinstall.conf.
397 .PD
398 .IP \fB\-g\fR
399 .PD 0
400 .TP
401 \fB\-\-suppress\-pkgtools\-upadte\fR
402 Keep indispensable packages for the standard function of the ports/packages system untouched.
403 Concretely, this option suppresses upgrade, de/re-installation of the currently installed ports-mgmt/pkg(\-devel) and ports-mgmt/dialog4ports.
404 .PD
405 .IP \fB\-I\fR
406 .PD 0
407 .TP
408 \fB\-\-interactive\-ports\-only\fR
409 Operations of (re)installation are made only on ports which require manual interaction.
410 This option conflicts with \fB\-A\fR.
411 .PD
412 .IP \fB\-k\fR
413 .PD 0
414 .TP
415 \fB\-\-suppress\-self\-upadte\fR
416 Keep portsreinstall itself untouched.
417 This option suppresses upgrade, deinstallation and reinstallation of the currently installed portsreinstall.
418 .PD
419 .IP \fB\-l\fR
420 .PD 0
421 .TP
422 \fB\-use\-legacy\-package\-for\-missing\-pkgng\fR
423 If prebuilt pkgng packages are missing, use of corresponding legacy ones is attempted instead by converting them to pkgng using \fBpkg2ng\fR.
424 This option is effective only when \fB\-G\fR option is enabled and pkgng is employed for the current packages system, but will not be harmful even in the other cases.
425 .PD
426 .IP \fB\-n\fR
427 .PD 0
428 .TP
429 \fB\-\-dry\-run\fR
430 No operation is carried out (just for seeing what will be done).
431 This option is effective for \fBdo\fR and \fBredo\fR commands so that no deinstallation and (re)installation process is actually carried out.
432 By this option, ports/packages to be deinstalled or (re)installed can be confirmed without making changes to the current situation of packages.
433 .PD
434 .IP \fB\-q\fR
435 .PD 0
436 .TP
437 \fB\-\-skip\-unchanged\-ports\fR
438 Only new ports and their dependents are reinstalled.
439 This option is convenient when the all of the major version of the system and configurations of ports (options and knobs) are unchanged.
440 The behavior can be modified by \fB\-b\fR option.
441 .PD
442 .IP \fB\-s\fR
443 .PD 0
444 .TP
445 \fB\-\-avoid\-vulnerability\-check\fR
446 Build of vulnerable ports are avoided by triggering errors.
447 Note that already installed vulnerable packages are untouched.
448 If you desire to uninstall them, do it manually.
449 .PD
450 .IP \fB\-X\fR
451 .PD 0
452 .TP
453 \fB\-\-deselect\-all\fR
454 Automatically deselect all candidates for deinstallation of leaf or obsolete ports.
455 This option conflicts with \fB\-Y\fR option.
456 .PD
457 .IP \fB\-Y\fR
458 .PD 0
459 .TP
460 \fB\-\-select\-all\fR
461 Automatically select all candidates for deinstallation of leaf or obsolete ports.
462 This option conflicts with \fB\-X\fR option.
463 .PD
464 .SS Group 5: Saved and transferred to restarted runs, renewable by \-N option
465 Option settings in this group are saved at the first \fBdo\fR or \fBprepare\fR run, and transferred to the following runs.
466 Reset of the saved values for this group is available in the initial run of \fBredo\fR command by appending \fB\-N\fR with newly specified options.
467 .IP \fB\-O\fR\ \fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
468 .PD 0
469 .TP
470 \fB\-\-target\-only\-itself=\fR\fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
471 Restrict (re/de)installation within a scope consisting of the specified target ports and their missing build\-time requirements.
472 Available ports matching the specified target globs are automatically registered as necessary ports equivalently to \fBportsreinstall need add\fR command.
473 Records of successful (re)installation for the all ports in the scope are deleted so that they are to be reinstalled forcedly.
474 So this option is usable for fixing packages whose data in the package database or content files are broken.  
475 Without \fB\-i\fR option, target ports must be already installed or inspected.
476 Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
477 Combination with options \fB\-T\fR and \fB\-t\fR is available.
478 The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
479 .PD
480 .IP \fB\-o\fR
481 .PD 0
482 .TP
483 \fB\-\-only\-target\-scope\fR
484 Ignore ports which are outside of target scopes of \fB\-O\fR, \fB\-T\fR or \fB\-t\fR options.
485 Inspection of dependencies is made within the least-required scope for (re)installing the targets.
486 If given with \fB\-O\fR, targets themselves and their missing direct build\-time requirements are in the scope.
487 If given with \fB\-T\fR, targets themselves, their direct requirements and their missing direct build\-time requirements are in the scope.
488 If given with \fB\-t\fR, targets themselves, their already-inspected dependents and their missing direct build\-time requirements are in the scope.
489 Ports outside of the scopes are kept untouched even if they are updated.
490 It is noted that this option disables detection and deinstallation of new leaf ports.
491 This option will be useful for quick upgrades or new installation (only) before complete construction of the temporary database for the all installed ports.
492 .PD
493 .IP \fB\-T\fR\ \fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
494 .PD 0
495 .TP
496 \fB\-\-target\-and\-requirements=\fR\fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
497 Restrict (re/de)installation within a scope consisting of the specified target ports, their requirements and their missing build\-time requirements.
498 Available ports matching the specified target globs are automatically registered as necessary ports equivalently to \fBportsreinstall need add\fR command.
499 Records of successful (re)installation for the all ports in the scope are deleted so that they are to be reinstalled forcedly.
500 So this option is usable for fixing packages whose data in the package database or content files are broken.  
501 Without \fB\-i\fR option, target ports must be already installed or inspected.
502 Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
503 Combination with options \fB\-T\fR and \fB\-t\fR is available.
504 The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
505 .PD
506 .IP \fB\-t\fR\ \fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
507 .PD 0
508 .TP
509 \fB\-\-target\-and\-dependents=\fR\fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
510 Restrict (re/de)installation within a scope consisting of the specified target ports, their dependents and their missing build\-time requirements.
511 Available ports matching the specified target globs are automatically registered as necessary ports equivalently to \fBportsreinstall need add\fR command.
512 Records of successful (re)installation for the all ports in the scope are deleted so that they are to be reinstalled forcedly.
513 So this option is usable for fixing packages whose data in the package database or content files are broken.  
514 Without \fB\-i\fR option, target ports must be already installed or inspected.
515 Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
516 Combination with options \fB\-T\fR and \fB\-t\fR is available.
517 The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
518 .PD
519 .SS Group 6: Saved and transferred to restarted runs, renewable by \-L option
520 Option settings in this group are saved at the first \fBdo\fR or \fBprepare\fR run, and transferred to the following runs.
521 Reset of the saved values for this group is available in the initial run of \fBredo\fR command by appending \fB\-L\fR with newly specified options.
522 .IP \fB\-P\fR
523 .PD 0
524 .TP
525 \fB\-\-load\-pkgtoolsconf\-as\-override\fR
526 Import settings from \fBpkgtools.conf\fR(5) as the secondary.
527 This option is effective only when \fBportupgrade\fR(1) is installed.
528 For duplicated configurations, values in portsreinstall.conf are applied first and then those in \fBpkgtools.conf\fR(5) are.
529 This option overrides preceding \fB\-p\fR option. 
530 .PD
531 .IP \fB\-p\fR
532 .PD 0
533 .TP
534 \fB\-\-load\-pkgtoolsconf\-as\-default\fR
535 Import settings from \fBpkgtools.conf\fR(5) as the primary (default).
536 This option is effective only when \fBportupgrade\fR(1) is installed.
537 For duplicated configurations, values in \fBpkgtools.conf\fR(5) are applied first and then those in portsreinstall.conf are.
538 This option overrides preceding \fB\-P\fR option. 
539 .PD
540 .IP \fB\-Q\fR
541 .PD 0
542 .TP
543 \fB\-\-ignore\-pkgtoolsconf\fR
544 Ignore \fBpkgtools.conf\fR(5) even if it exists.
545 .PD
546 .SH DETAILS
547 .SS Overview
548 This utility is a ports/packages management tool which upgrades packages to be as much as consistent regarding their dependencies by allowing repetitional retrials called "redo runs".
549 The implementation of this utility is designed for smart entire reinstallation of installed packages which takes a very long time.
550 A temporary database is used for managing the starting point, intermediate status and goal of the upgrade processes.
551 The starting point is determined by the initially installed packages.
552 The intermediate status contains various information on successes and failures of ports to judge the necessity of upgrade considering dependencies during \fBredo\fR runs.
553 The goal is determined by the ports tree, replacement to compatible ports and configurations for each port, i.e., port options configured by \fBmake config\fR and knobs (make environment variables and make arguments).
554 In order to make this utility work smartly, knob should be defined in ${LOCALBASE}/etc/portsreinstall.conf (or \fBpkgtools.conf\fR(5) if \fBportupgrade\fR(1) is installed) but not in /etc/make.conf
555 The temporary database is available until the ports tree is updated.
556 Each port is built for its (re)installation in principle, however, \fB\-G\fR option enables a function that use of prebuilt packages in remote servers are attempted for each port matching a condition that all configurations of the port and its requirements are unchanged from the default.
557 .PP
558 The algorithms of this utility are originally optimized for massive reinstallation to be invoked after major upgrade of the system where reinstallation of all third\-party applications is encouraged before cleaning up obsolete system libraries.
559 Nevertheless, the all functionalities of this utility is applicable to any situations where complete reinstallation is preferred for the whole or typical packages, e.g., when you have been lazy in upgrade of ports for a too long time.
560 .PP
561 In a standard case, the entire reinstallation will proceed in the following step:
562 .TP
563 1.
564 Update the ports tree and (in case of pkgng) the pkgng repository catalog;
565 .PD
566 .TP
567 2.
568 Clean up a temporary database which stores the all information used for the whole task of reinstallation (first \fBdo\fR or \fBprepare\fR run);
569 .PD
570 .TP
571 3.
572 Record the snapshot of the all installed packages as the initial point of reinstallation (first \fBdo\fR or \fBprepare\fR run);
573 .PD
574 .TP
575 4.
576 Build up the database to store data on configurations and dependencies (which may depend on the configurations) of the all (re/de)installing packages to be the latest version according to the current ports tree (\fBdo\fR or \fBprepare\fR run);
577 .PD
578 .TP
579 5.
580 Select obsolete packages or new leaf ports/packages to deinstall or exclude if any (\fBdo\fR or \fBprepare\fR run);
581 .PD
582 .TP
583 6.
584 Execute the actual (re/de)installation (\fBdo\fR run);
585 .PD
586 .TP
587 7.
588 If some ports failed, retry the (re/de)installation for the failed ones and their dependents (\fBredo\fR run);
589 .PD
590 .TP
591 8.
592 Make modification to the temporary database or manually re/de-install packages in concern (\fBok\fR, \fBtaboo\fR, \fBnoneed\fR, etc.).
593 .PD
594 .TP
595 9.
596 Repeat from 6 to 7 until the all available ports succeed.
597 .PD
598 .PP
599 A typical instance of actually executed commands for upgrading packages will be in the following flow:
600 .TP
601 1.
602 .B portsnap fetch update
603 .PD
604 .TP
605 2.
606 .B pkg update
607 .RS
608 (In case of pkgng)
609 .RE
610 .PD
611 .TP
612 3.
613 .B script
614 .RS
615 (Enter \fBscript\fR(1) environment for logging)
616 .RE
617 .PD
618 .TP
619 4.
620 .B portsreinstall
621 .RS
622 (Possibly end up with some failed ports)
623 .RE
624 .PD
625 .TP
626 5.
627 .B portsreinstall redo
628 .RS
629 (Possibly end up with some failed ports)
630 .RE
631 .PD
632 .TP
633 6.
634  ... Countermeasure to failures ...
635 .PD
636 .TP
637 7.
638 .B portsreinstall redo
639 .RS
640 (Possibly end up with some failed ports)
641 .RE
642 .PD
643 .TP
644 8.
645  ... Repetition from 7 to 8 ...
646 .PD
647 .TP
648 9.
649 .B portsreinstall redo
650 .RS
651 (All available ports succeed)
652 .RE
653 .PD
654 .PP
655 Here, in case of entire reinstallation after a major version upgrade of the operating system, \fB\-q\fR option should be removed.
656 It is usually encouraged to execute the command on \fBscript\fR(1) in order to record the make outputs for catching reasons of failures if any.
657 In many cases, the user may undergo failures in build or installation of some ports during do/redo runs.
658 Refer to subsections entitled "Workaround for failed ports: ..." for the techniques and procedures to resolve the problems.
659 .PP
660 This utility is implemented to be flexible and robust about interrupt/restart operations so as to allow the users to run only when the machine is free and terminate when it becomes busy on demand.
661 Concretely, the users can stop the process by CTRL+C (or even by unexpected termination) and restart from the stopped point at any stage throughout the whole task, i.e., from the beginning of preparation of the temporary database to the end of (re/de)installation.
662 This functionality allows the users, for example, to start this utility before lunch, terminate after lunch, restart before dinner, terminate after dinner, restart before going to bed, terminate after breakfast, restart before lunch, ..., and finally complete.
663 .PP
664 Compatibility with \fBportupgrade\fR(1) is well considered if it is installed; settings in \fBpkgtools.conf\fR(5) are reflected and the portupgrade database is updated at the end of each do/redo run.
665 The main difference of this utility with \fBportupgrade\fR(1) or \fBportmaster\fR(8) is that this utility is optimized for on\-the\-fly entire upgrade of the packages environment to be as complete as possible while the latter are for partial upgrade to get the latest versions available as quickly as possible by applying the least "patches" to the environment.
666 While this utility also has options for partial upgrade (\fB\-t\fR, \fB\-T\fR and \fB\-O\fR), they are intended as auxiliary modification of (re)installing packages.
667 This utility resolves conflicts between old and new packages automatically by referring to CONFLICTS, CONFLICTS_BUILD and CONFLICTS_INSTALL defined for each port or by redo processes for ports missing appropriate definition of them.
668 Many of the UPDATING advisories on trouble shooting in packages upgrade will be unnecessary to follow if the users use this utility instead of \fBportupgrade\fR(1) or \fBportmaster\fR(8).
669 .PP
670 If this utility has been installed by ports/packages and the corresponding port is renewed, upgrade of this utility is carried out first and then the following processes are continued by the new version after cleaning up the temporary database.
671 .PP
672 New leaf ports (primary leaves) and their exclusive requirements (secondary leaves) are automatically detected.
673 The user may specify unneeded ports explicitly by \fBportsreinstall noneed\fR command so that the specified ports are added to the new leaves if they have no non-leaf dependents.
674 If any leaf ports are detected, the user is prompted to select ones to delete by dialog.
675 Similarly, obsolete ports to delete are also selectable by dialog.
676 Here, both for leaf and obsolete ports, the selection can be modified afterward and unselected ones can be restored by following redo runs.
677 .PP
678 The scheme of this utility is divided into stages of temporary database construction and actual (re/de)installation.
679 Execution by
680 .B portsreinstall prepare
681 procedes to the end the first stage, and that without any argument procedes to the end of the second stage.
682 Each of these two major stages is divided into minor stages.
683 When a previously terminated process is restarted, completed minor stages are skipped.
684 Changes of the configurations made or notified by corresponding options or commands of this utility are reflected to the database by automatically re-executing the concerned stages in the following do/redo runs.
685 .PP
686 When option(s) \fB\-O\fR, \fB\-t\fR or \fB\-T\fR is/are specified, only the targets and their requirements or dependents within the specified scope are inspected and (re/de)installed.
687 Inspected data on the ports are preserved in the temporary database and reused in the following runs even if the targets are reset or changed with aid of \fB\-N\fR option.
688 The preserved data are basically harmless even if the corresponding ports are out of scope of new targets unless conflicts arise.
689 .SS New installation of ports: case 1
690 If the user has not executed this utility for entire reinstallation/upgrade never or after the final clean up of the temporary database,
691 .RS
692 .B portsreinstall -i -Glq -oO
693 .I globs
694 .RE
695 will be a quick way to install new packages matching glob patters \fIglobs\fR (here the options are separated into each group just for easy understanding).
696 More automated operation is possible by appending \fB\-C\fR and \fB\-Y\fR options so as to skip all dialog queries by letting all configurations default.
697 .SS New installation of ports: case 2
698 If the user already has a complete temporary database by executing entire reinstallation/upgrade,
699 .RS
700 .B portsreinstall need add
701 .I globs
702 .RE
703 followed by
704 .RS
705 .B portsreinstall -MGlq -N redo
706 .RE
707 will be a quick and smart way to install new packages matching glob patters \fIglobs\fR.
708 More automated operation is possible by appending \fB\-C\fR and \fB\-Y\fR options so as to skip all dialog queries by letting all configurations default.
709 .SS Deinstallation and restoration of leaf and obsolete ports
710 If any new leaf ports and obsolete (lost) ports are detected, dialogs are displayed for selecting which ports/packages to delete.
711 Here it is noted that detection and operations on new leaf ports are invalidated when the temporary database is incomplete due to \fB\-o\fR option.
712 Deinstallation and restoration of the packages are carried out after reinstallation of the all ports are attempted.
713 The selected packages are backed up before deinstallation.
714 .PP
715 The selection can be modified by executing
716 .RS
717 .B portsreinstall reselect leaves
718 .RE
719 for new leaf ports, and
720 .RS
721 .B portsreinstall reselect obsolete
722 .RE
723 for obsolete ports.
724 .PP
725 Then following execution of
726 .RS
727 .B portsreinstall
728 .RE
729 deinstalls newly selected packages and restores unselected ones.
730 .SS Workaround for failed ports: conflicts: case 1
731 This utility automatically resolves conflicts between ports/packages by temporary deinstallation during concerned build or installation processes according to CONFLICTS, CONFLICTS_BUILD and CONFLICTS_INSTALL defined by each port.
732 This means that ports lacking proper CONFLICTS, CONFLICTS_BUILD and CONFLICTS_INSTALL definitions may undergo failures.
733 Some of the undeclared conflicts may be resolved by simple redo runs.
734 .PP
735 Some problems may be due to coexistence of the same or related software of different versions of the requirements or the unsuccessful ports themselves.
736 For analysis of the upgraded and initial requirements,
737 .RS
738 \fBportsreinstall show requirements @all,direct \fR \fIglob\fR
739 .RE
740 and
741 .RS
742 \fBportsreinstall show initrequirements @all,direct\fR \fIglob\fR
743 .RE
744 can be used, respectively, where \fIglob\fR denotes a glob specifying the unsuccessful ports.
745 For analysis of ports for the same software of different versions,
746 .RS
747 \fBportsreinstall glob\fR \fIglob_req\fR
748 .RE
749 can be used, where \fIglob_req\fR denotes a glob specifying the suspicious requirements.
750 .PP
751 If a conflict is found, first escape (back up and delete) the conflict by
752 .RS
753 \fBportsreinstall escape\fR \fIpackage_conflict\fR
754 .RE
755 where \fIpackage_conflict\fR is the conflicting package.
756 .RS
757 .PP
758 Then execute
759 .RS
760 .B portsreinstall redo
761 .RE
762 for completing (re)installation of the dependents of the resolved port.
763 .PP
764 If the (re)installation is successful, execute
765 .RS
766 \fBportsreinstall restore\fR \fIpackage_conflict\fR
767 .RE
768 to restore the escaped package (reinstallation may fail if a newer version is installed but there is no problem).
769 If any conflicts still remain unresolved, refer to case 2.
770 .SS Workaround for failed ports: conflicts: case 2
771 If some upgraded ports fundamentally conflict with each other, the output log of this utility for do/redo processes will report a message entitled "The following ports are temporarily deleted due to conflicts".
772 In this case, although not always encouraged, the user may consider replacement of the conflicting ones with one of them by assuming and expecting compatibility between them.
773 .PP
774 This workaround can be done by the following procedure.
775 First edit the configuration file ${LOCALBASE}/etc/portsreinstall.conf so as to define the corresponding REPLACE_* values.
776 If \fBportupgrade\fR(1) is installed, the corresponding configuration should be made in ALT_PKGDEP section of \fBpkgtools.conf\fR(5).
777 .PP
778 Then execute
779 .RS
780 .B portsreinstall -L redo
781 .RE
782 .RS
783 (Recover options reset by \fB\-L\fR if any by checking with the aid of \fBportsreinstall options\fR.)
784 .RE
785 for (re)installation of the concerned port by reflecting the configuration changes.
786 .SS Workaround for failed ports: conflicts: case 3
787 If some conflicts are found to be unnecessary, they can be removed in the following way.
788 The unnecessary ports are registered by executing
789 .RS
790 .B portsreinstall noneed add
791 .I globs_unnecessary
792 .RE
793 where \fIglobs_unnecessary\fR denotes globs specifying the unnecessary ports.
794 .PP
795 Next execute
796 .RS
797 .B portsreinstall show dependents @run,full
798 .I globs_unnecessary
799 .RE
800 for checking whether any dependents seem unnecessary for the user.
801 Next execute
802 .RS
803 .B portsreinstall noneed add
804 .I globs_unnecessary_dependents
805 .RE
806 to register them, where \fIglobs_unnecessary_dependents\fR denotes globs specifying the unnecessary dependents.
807 .PP
808 Then execute
809 .RS
810 .B portsreinstall
811 .RE
812 .RS
813 (If it seems effective, reconfigure options for \fB\-B\fR, \fB\-b\fR and \fB\-o\fR by using \fB\-M\fR and \fB\-N\fR.)
814 .RE
815 for automatic evaluation and deinstallation of new leaf ports redefined by the new unnecessary ports.
816 If the registered ports are required by any non-leaf or non-unnecessary ports, this process will end up with no practical progress.
817 .SS Workaround for failed ports: reconfiguration of port options
818 If the problems may be resolved by reconfiguration of the port options, execute
819 .B portsreinstall reconf 
820 .I glob
821 which invokes the dialog for reselecting options.
822 Here \fIglob\fR denotes a glob specifying the concerned port.
823 .PP
824 If any change was made here, execute
825 .RS
826 .B portsreinstall
827 .RE
828 for retrial of (re)installation.
829 .SS Workaround for failed ports: reconfiguration of knobs
830 If the problems may be resolved by reconfiguration of the knobs, first edit the configuration file ${LOCALBASE}/etc/portsreinstall.conf so as to redefine the corresponding MARG_*, MENV_*, BEFOREBUILD_*, BEFOREDEINSTALL_* or AFTERINSTALL_* values.
831 If \fBportupgrade\fR(1) is installed, the corresponding configuration should be made in MAKE_ARGS, MAKE_ENV, BEFOREBUILD, BEFOREDEINSTALL or AFTERINSTALL section of \fBpkgtools.conf\fR(5).
832 .PP
833 Then execute
834 .RS
835 .B portsreinstall -L redo
836 .RE
837 .RS
838 (Recover options reset by \fB\-L\fR if any by checking with the aid of \fBportsreinstall options\fR.)
839 .RE
840 for (re)installation of the concerned port by reflecting the configuration changes.
841 .SS Workaround for failed ports: update of ports tree
842 If the ports are fundamentally broken, updating the ports tree may fix the problems.
843 In this case, execute
844 .RS
845 .B portsnap fetch update
846 .RE
847 and, in case of pkgng, followed by
848 .RS
849 .B pkg update
850 .RE
851 and then
852 .RS
853 .B portsreinstall reset keepopts
854 .RE
855 to clean everything but the option settings and information of the initially installed packages.
856 Then execute
857 .RS
858 .B portsreinstall
859 .RE
860 and see whether the problems are resolved.
861 .SH "ENVIRONMENT VARIABLES"
862 The following environment variables can be used to change the behavior of \fBportsreinstall\fR.
863 Some of them are the same as defined in \fBports\fR(7).
864 Usually they should be kept to be the system default or empty.
865 The configuration file (${LOCALBASE}/etc/portsreinstall.conf) takes priority over environment variables.
866 .TP
867 .B LOCALBASE
868 Where to install files of native applications.
869 The default is /usr/local.
870 .TP
871 .B LINUXBASE
872 Where to install files of Linux applications.
873 The default is /compat/linux.
874 .TP
875 .B PREFIX
876 Where to install things in general.
877 The default value is defined for each port; it is usually ${LOCALBASE} for most native applications and ${LINUXBASE} for Linux applications.
878 However, some ports customize it to their own defaults, e.g., ${LOCALBASE}/kde4 for KDE4-related ones.
879 Therefore, it is safer to keep this variable undefined by the user so as to define it automatically although traditionally this variable has been used for controlling installation paths by users.
880 .TP
881 .B PORT_DBDIR
882 Where to store port option values.
883 The default is /var/db/ports.
884 .TP
885 .B PORTSDIR
886 Location of the ports tree.
887 The default is /usr/ports.
888 .TP
889 .B DISTDIR
890 Where to store distfiles.
891 The default is ${PORTSDIR}/distfiles.
892 .TP
893 .B PACKAGES
894 Where to store package archives.
895 The default is ${PORTSDIR}/packages.
896 .TP
897 .B PKGREPOSITORYSUBDIR
898 Subdirectory under ${PACKAGES} to store substances of package archives.
899 The default is "All".
900 .TP
901 .B PKGREPOSITORY
902 Where to store substances of package archives.
903 The default is ${PACKAGES}/${PKGREPOSITORYSUBDIR}.
904 .TP
905 .B PKG_PATH
906 Overriding Synonym to PKGREPOSITORY for compatibility with \fBpkgtools.conf\fR(5).
907 .TP
908 .B PACKAGECHECKSUMROOTS
909 Roots of available sites for legacy package check sum to be randomly selected.
910 Each site is separated by "|" (vertical bar).
911 The default consists of ftp://ftp.FreeBSD.org/ and from ftp://ftp1.FreeBSD.org/ to ftp://ftp14.FreeBSD.org/.
912 .TP
913 .B PACKAGECHECKSUMDIR
914 Subdirectory pattern of legacy package check sum sites.
915 The first and second \fI%s\fR are substituted with the platform and version of OS, respectively.
916 The default is pub/FreeBSD/ports/%s/packages-%s/All/.
917 .TP
918 .B PACKAGEROOTS
919 Roots of available legacy package sites to be randomly selected.
920 Each site is separated by "|" (vertical bar).
921 The default is ${PACKAGECHECKSUMROOTS}, but it is relatively secure to be different from it.
922 .TP
923 .B PACKAGEDIR
924 Subdirectory pattern of legacy package sites.
925 The first and second \fI%s\fR are substituted with the platform and version of OS, respectively.
926 The default is ${PACKAGECHECKSUMDIR}.
927 .SH FILES/DIRECTORIES
928 The following files and directories are referred to.
929 .TP
930 ${LOCALBASE}/etc/portsreinstall.conf
931 Configuration file.
932 .TP
933 /var/tmp/portsreinstall.db
934 Temporal database directory.
935 The whole contents can be saved by \fBportsreinstall save\fR command.
936 .TP
937 ${LOCALBASE}/etc/pkgtools.conf
938 Configuration file of \fBportupgrade\fR(1).
939 .SH HISTORY
940 \fBportsreinstall\fR has been developed as below.
941 .TP
942 3.3.1 (17 August 2016)
943 .RS
944 [BUG FIX] Detection of the default option configuration was unsuccessful or wrong when /etc/make.conf was configured; some ports caused aborting in the phase of inspection.
945 .RE
946 .TP
947 3.3.0 (10 July 2016)
948 .RS
949 [NEW] Option \-f is added.
950 .PP
951 [IMPROVED] Automatic workaround of looped dependencies is implemented at the phase of "Completion of *-time requirement lists" in the preparation stage.
952 .PP
953 [CHANGED] Dependencies on pkg(8) is changed to be ignored.
954 .PP
955 [BUG FIX] The rescue process for cases missing pkg(8) was not working well.
956 .PP
957 [BUG FIX] The phase of "Completion of *-time requirement lists" in the preparation stage was caught into an infinite loop when looped dependencies exist.
958 .PP
959 [BUG FIX] Comments on termination were unavailable in some phases.
960 .PP
961 [BUG FIX] The messages of currently installed packages may have shown duplicated ones.
962 .RE
963 .TP
964 3.2.1 (27 January 2015)
965 .RS
966 [BUG FIX] The automatic resolution of installation conflict implemented in the previous version was seriously broken and judged conflicts incorrectly.
967 .RE
968 .TP
969 3.2.0 (30 December 2014)
970 .RS
971 [IMPROVED] The automatic resolution of installation conflict is improved to avoid stripping due to restore\-and\-delete of backup packages that possibly occurs when the default version changes.
972 .PP
973 [IMPROVED] Support for cases that alternative version of ports\-mgmt/pkg (ports\-mgmt/pkg\-devel, switched by defining WITH_PKG=devel in /etc/make.conf) or ports-mgmt/dialog4ports (DIALOGPORT=\fIport_origin\fR in /etc/make.conf, reserved for the future) is used are implemented.
974 .PP
975 [BUG FIX] Reinstallation of pkg(8) could encounter error termination.
976 .RE
977 .TP
978 3.1.1 (17 December 2014)
979 .RS
980 [IMPROVED] The automatic resolution of installation conflict is improved to detect actual conflict not described in CONFLICTS or CONFLICTS_INSTALL (for the sake of the staging mechanism).
981 .PP
982 [BUG FIX] MOVED or REPLACED ports were sometimes incorrectly detected as duplicated ports.
983 .PP
984 [BUG FIX] Command \fBpkgsanity\fR was confused by the specification change of \fBpkg\-check\fR(8).
985 .PP
986 [BUG FIX] Option \fB\-q\fR did not work correctly in version 3.1.0.
987 .RE
988 .TP
989 3.1.0 (9 August 2014)
990 .RS
991 [IMPROVED] Command \fBreset\fR is now available to work with an updated ports tree by preserving information of the initially installed packages.
992 The manual page is updated by adding "Workaround for failed ports: update of ports tree" subsection to explain an example to utilize this improved specification.
993 .PP
994 [IMPROVED] A countermeasure operation is implemented for a bug of pkg-1.3.4 that \fBpkg delete \-q\fR does not work.
995 .PP
996 [IMPROVED] Revisions are made so that packages whose ports are replaced or moved are deinstalled before installation of the alternative ports.
997 .PP
998 [IMPROVED] Reinstalltion of ports-mgmt/pkg becomes smarter in systems where Pkgng is the default.
999 .PP
1000 [BUG FIX] Command \fBprepare\fR was possibly aborted at a port any of whose requirements or dependents is obsolete.
1001 .PP
1002 [BUG FIX] It silently failed to launch if the ports tree is missing or broken.
1003 .PP
1004 [BUG FIX] The short help lacked descriptions on \fBneed\fR command.
1005 .PP
1006 [BUG FIX] Some message output failed with a warning "3: Bad file descriptor" in some environment (detected in 10.0-RELEASE).
1007 .PP
1008 [BUG FIX] The error message for specifying option \fB\-L\fR or \fB\-N\fR for other than \fBredo\fR command was wrong (\fB\-L\fR was missing).
1009 .PP
1010 [BUG FIX] Control sequences in output of the long help by \fB\-H\fR option was not correctly handled in some environment (detected in 10.0\-RELEASE).
1011 .PP
1012 [BUG FIX] Reload of configuration where replacement rule is changed possibly caused errors in the phase of "Inspection of necessity".
1013 .PP
1014 [BUG FIX] Messages about failed ports were inappropriate when failed ports were changed to unneeded.
1015 .PP
1016 [BUG FIX] Evaluation of glob was incorrect when the pattern is regular expression containing multiple slashes.
1017 .PP
1018 [BUG FIX] Warning messages might have arise by attempting to restore nonexistent backed\-up requirements.
1019 .PP
1020 [BUG FIX] The error message for invalid operation on \fBreselect\fR command was wrong.
1021 .PP
1022 [BUG FIX] Selection of leaf packages remained after all of them changed to non\-leaves.
1023 .PP
1024 [BUG FIX] Ports with periods or underscores in their package name, port name or origin were not be treated correctly.
1025 .PP
1026 [BUG FIX] Changes in "REPLACE_*" in ${LOCALBASE}/etc/portsreinstall.conf were not correctly reflected in recursive reinstallation of dependents. The specification of the temporary database is changed for this fix.
1027 .PP
1028 [BUG FIX] Execution of \fBreset\fR command unintentionally removed temporally deinstalled leaf ports out of scope of reinstallation.
1029 .PP
1030 [BUG FIX] A wrong option was given to \fBpkg-info(8)\fR in a compatible command for \fBpkg_info \-qoX\fR.
1031 .PP
1032 [BUG FIX] Variables "NOPKG_*" in ${LOCALBASE}/etc/portsreinstall.conf were not parsed.
1033 .RE
1034 .TP
1035 3.0.5 (14 December 2013)
1036 .RS
1037 [NEW] Command of \fBrmconf\fR is added.
1038 .PP
1039 [IMPROVED] Automatic resolution of duplicated registrations of multiple packages for the same port origin is implemented in \fBpkgsanity\fR command.
1040 .PP
1041 [CHANGED] Specification changes are made so that (re)installation processes are skipped for ports any of whose requirements is missing. This results in improvement to avoid attempt of unsuccessful builds due to unsuccessful installation of requirements and a fix of the following bug regarding unintentional reinstallation of escaped packages.
1042 .PP
1043 [BUG FIX] Execution of \fBreconf\fR command confused the work of \fB\-G\fR option.
1044 .PP
1045 [BUG FIX] Escaped packages by \fBescape\fR command were unintentionally reinstalled in (re)installation of their dependents.
1046 .RE
1047 .TP
1048 3.0.4 (16 November 2013)
1049 .RS
1050 [IMPROVED] Support for systems in which pkgng is the default or legacy package tools are abandoned is improved.
1051 .PP
1052 [IMPROVED] Changes are made so that MAKE_JOBS_UNSAFE=yes is set in retrials of build and installation.
1053 .PP
1054 [MISC] The manual page is updated regarding \fB\-G\fR option by reflecting the official service start of pkgng packages and abandonment of the legacy packages.
1055 .PP
1056 [BUG FIX] Commands of \fBforget\fR and \fBreconf\fR and option \fB\-L\fR could have caused error ends in following \fBshow failure\fR command and the part showing the failure list at the end of execution of \fBdo\fR and \fBredo\fR commands.
1057 .PP
1058 [BUG FIX] The execution was terminated by error when /etc/make.conf does not exist.
1059 .PP
1060 [BUG FIX] The execution was terminated by error when there is no INDEX file for the current OS version is prepared.
1061 .PP
1062 [BUG FIX] Some meaningless warnings are suppressed.
1063 .PP
1064 [BUG FIX] Comments at termination during building the temporary database were inconsistent.
1065 .RE
1066 .TP
1067 3.0.3 (2 August 2013)
1068 .RS
1069 [BUG FIX] Cleaning of distfiles before retrial of failed fetch was forgotten.
1070 .RE
1071 .TP
1072 3.0.2 (10 July 2013)
1073 .RS
1074 [NOTE] Version 3.0.1 has a serious defect that newly installed files can be spoiled by restoration of conflicting old packages. When the current version is to executed only for limited ports (with \fB\-q\fR, \fB\-t\fR, \fB\-T\fR or \fB\-O\fR) after this previous version was used, in advance to that, it is strongly encouraged to execute
1075 .RS
1076 \fBportsreinstall pkgsanity\fR
1077 .RE
1078 and select "y" in the queries for spoiled packages.
1079 .PP
1080 [NEW] Commands of \fBpkgsanity\fR and \fBshow status\fR are added.
1081 .PP
1082 [IMPROVED] Changes are made so as to deinstall conflicts before the first trials in build and installation.
1083 .PP
1084 [IMPROVED] Changes are made so as to prevent restoration of backed-up packages deinstalled due to matching CONFLICTS_INSTALL of installed packages.
1085 .PP
1086 [IMPROVED] Changes are made so as to retry build by deinstalling the current package and packages matching CONFLICTS_INSTALL even if not in CONFLICTS_BUILD nor CONFLICTS.
1087 .PP
1088 [IMPROVED] Command \fBshow conflict\fR is changed to append a column of opponent ports of each conflict.
1089 .PP
1090 [CHANGED] Changes are made so that FORCE_PKG_REGISTER is disabled in the all operations. This had become obsolete and even harmful after the implementation of the automatic workaround function for conflicts.
1091 .PP
1092 [MISC] Minor changes are made on HISTORY section of the manual page in the level of coding and terminology.
1093 .PP
1094 [BUG FIX] Configuration changes in replacement were not completely reflected by redo with \fB\-L\fR option and ended up with errors.
1095 .PP
1096 [BUG FIX] Deinstallation of obsolete or new leaf ports did not work in version 3.0.1.
1097 .PP
1098 [BUG FIX] Conflicts escape was not implemented for (re)installation by prebuilt packages.
1099 .PP
1100 [BUG FIX] The message format in enumerating port origins or so on was broken.
1101 .RE
1102 .TP
1103 3.0.1 (11 June 2013)
1104 .RS
1105 [NEW] Commands \fBescape\fR and \fBrestore\fR are added.
1106 .PP
1107 [IMPROVED] The behavior of \fB\-C\fR option is changed in case of \fBdialog4ports\fR(1) so that the port options are unchanged and unsaved throughout the all stages from the temporary database build to (re)installation. This allows the all stages to run on \fBscript\fR(1) and \fBnohup\fR(1).
1108 .PP
1109 [IMPROVED] Changes are made so that installation by packages is split into fetch and installation stages and backup/deletion of old packages are skipped if the fetch is unsuccessful.
1110 .PP
1111 [IMPROVED] Changes are made so that uninspected ports are skipped in \fBreconf\fR command.
1112 .PP
1113 [IMPROVED] A measure to cases of duplicated packages for the same port is implemented.
1114 .PP
1115 [BUG FIX] Commands permitted for unprivileged users did not work for the users.
1116 .PP
1117 [BUG FIX] This manual page, comments and messages contained some wrong English words and incorrect descriptions.
1118 .PP
1119 [BUG FIX] Runs by unprivileged users could end up with errors in message output if /dev/stdin cannot provide information of the console size.
1120 .PP
1121 [BUG FIX] Meaningless warnings are suppressed.
1122 .PP
1123 [BUG FIX] Leaf ports replaced by REPLACE_* were recognized to be new leaf ports to delete even if they are targets of \fB\-O\fR, \fB\-T\fR or \fB\-t\fR or in the needed list.
1124 .PP
1125 [BUG FIX] Evaluation of glob patterns which have the form of port origin was inappropriately ambiguous.
1126 .PP
1127 [BUG FIX] Reinstallation processes were unintentionally terminated when the backup package creation was unsuccessful.
1128 .PP
1129 [BUG FIX] Options \fB\-O\fR, \fB\-T\fR and \fB\-t\fR did not work for once-succeeded ports.
1130 .RE
1131 .TP
1132 3.0.0 (01 June 2013)
1133 .RS
1134 [NEW] Options of \fB\-a\fR, \fB\-A\fR, \fB\-b\fR, \fB\-B\fR, \fB\-C\fR, \fB\-D\fR, \fB\-g\fR, \fB\-G\fR, \fB\-i\fR, \fB\-I\fR, \fB\-l\fR, \fB\-L\fR, \fB\-M\fR, \fB\-n\fR, \fB\-o\fR, \fB\-O\fR, \fB\-X\fR and \fB\-Y\fR are added (\fB\-X\fR is redefined as a different function).
1135 .PP
1136 [NEW] Long options are supported.
1137 .PP
1138 [NEW] Commands \fBneed\fR, \fBnoneed\fR, \fBreset\fR, \fBforget\fR, \fBreselect\fR, \fBglob\fR, \fBreconf\fR, \fBoptions\fR, \fBshow need\fR, \fBshow noneed\fR, \fBshow restored\fR and \fBshow conflict\fR are added.
1139 .PP
1140 [NEW] (Re)installation by prebuilt packages for ports with default configurations is implemented.
1141 .PP
1142 [NEW] Controlling the dependency scope for \fBshow\fR command becomes available. 
1143 .PP
1144 [NEW] Commands of \fBdo\fR, \fBprepare\fR and \fBredo\fR are rearranged with \fBdo\fR and \fBredo\fR with an optional mode either of \fBprepare\fR or \fBall\fR so that the default and synonyms are compatible with the earlier versions.
1145 .PP
1146 [CHANGED] The function of \fBshow redo\fR is replaced with that of former \fBshow pending\fR, and \fBshow pending\fR is abandoned in exchange.
1147 .PP
1148 [CHANGED] Deinstallation of obsolete packages becomes selectable by run\-time dialog.
1149 .PP
1150 [CHANGED] Deinstallation and ignorance of leaf ports becomes available via selection by run\-time dialog.
1151 .PP
1152 [CHANGED] The directory for saving packages of obsolete or removed leaf ports are changed to $PACKAGES/All whose default is /usr/ports/packages/All.
1153 .PP
1154 [CHANGED] The deinstallation process for unused packages which have been done before reinstallation is changed to be done after it.
1155 .PP
1156 [CHANGED] Compact forms of options is made to be accepted, e.g., \fB\-b \-t \-o\fR as \fB\-bto\fR.
1157 .PP
1158 [CHANGED] The behaviors of \fB\-q\fR, \fB\-t\fR and \fB\-T\fR options are changed to ignore build\-time-only dependencies. The former function is reproduced with \fB\-b\fR option. The document for \fB\-t\fR and \fB\-T\fR options are revised so as to correct wrong descriptions that they could newly install the specified ports.
1159 .PP
1160 [CHANGED] Syntax of \fB\-t\fR and \fB\-T\fR options are changed so as to give all port globs by a single argument value as concatenation with colons as delimiters. Along this change, \fB\-r\fR and \fB\-R\fR options are abandoned.
1161 .PP
1162 [CHANGED] Old options of \fB\-x\fR and \fB\-X\fR are abandoned due to duplication with \fBtaboo add\fR command.
1163 .PP
1164 [CHANGED] Rules for transferring option settings to restarted runs are changed so as to let the all options renewable.
1165 .PP
1166 [CHANGED] The evaluation algorithm of glob patterns is improved and changed to be fully original.
1167 .PP
1168 [CHANGED] The long help is unified with this manual page.
1169 .PP
1170 [IMPROVED] A change is made so as to carry out upgrade of ports-mgmt/pkg in advanced to everything in case of pkgng and as to ignore dependencies on ports-mgmt/pkg.
1171 .PP
1172 [IMPROVED] The treatment of backup packages is modified to be safer by considering possible format fluctuation in case of pkgng.
1173 .PP
1174 [IMPROVED] Automatic solution to conflicts in (re)installation is implemented.
1175 .PP
1176 [MISC] Line feeds of the help and information messages are improved.
1177 .PP
1178 [BUG FIX] Meaningless warnings at the end of leaf ports are suppressed.
1179 .PP
1180 [BUG FIX] Inappropriate operations could have been attempted on the temporary database by non-superuser privilege.
1181 .PP
1182 [BUG FIX] Tarballs for ports which depend on other ports could have been lost in the step of cleaning distfiles.
1183 .PP
1184 [BUG FIX] Self-upgrade was carried out even for commands other than do or prepare.
1185 .RE
1186 .TP
1187 2.2.2 (03 January 2013)
1188 .RS
1189 [BUG FIX] Commands \fBok add\fR and \fBok del\fR failed if no port has reinstalled in the latest do/redo process.
1190 .PP
1191 [BUG FIX] Makefile was problematic if ${LOCALBASE}/etc/portsreinstall.conf does not exist before installation.
1192 .RE
1193 .TP
1194 2.2.1 (25 December 2012)
1195 .RS
1196 [CHANGED] Command \fBshow todo_next\fR is renamed to \fBshow pending\fR.
1197 .PP
1198 [IMPROVED] Changes are made so as to avoid retrying for dependents of failed ports when no problem has resolved.
1199 .PP
1200 [BUG FIX] Removed a remained debugging code in the action for \fBsave\fR command.
1201 .RE
1202 .TP
1203 2.2.0 (17 December 2012)
1204 .RS
1205 [NEW] Command of \fBshow todo_next\fR is added.
1206 .PP
1207 [CHANGED] Changes are made so as to skip wasteful reinstallation where the target port is already reinstalled once (with \fB\-q\fR option, when its version is up-to-date) and no change has been made for either of its requirements afterwards.
1208 .PP
1209 [CHANGED] The default settings in portsreinstall.conf was changed so as to include a HOLD pattern for bsdpan.
1210 .PP
1211 [BUG FIX] There was a problem in evaluating glob patterns expressing origins.
1212 .PP
1213 [BUG FIX] Minor inappropriate messages and actions emerged when the target and replacement of ports substitution become the same.
1214 .PP
1215 [BUG FIX] The help messages and this manual page lacked the descriptions about \fBshow redo\fR command.
1216 .RE
1217 .TP
1218 2.1.0 (10 December 2012)
1219 .RS
1220 [NEW] New generation package (pkgng) is supported.
1221 .PP
1222 [IMPROVED] A countermeasure for a build failure in a restarted build from a terminated build is implemented.
1223 .PP
1224 [BUG FIX] Restoration of backup packages after failed installation was not working correctly.
1225 .PP
1226 [BUG FIX] The transferring mechanism of option values to restarted run was broken.
1227 .PP
1228 [BUG FIX] Error end in case that no packages are installed is fixed.
1229 .PP
1230 [BUG FIX] A glob evaluation routine used when \fBports_glob\fR(1) is not installed was broken.
1231 .RE
1232 .TP
1233 2.0.0 (12 August 2012)
1234 .RS
1235 [NEW] Options \fB\-X\fR, \fB\-r\fR and \fB\-R\fR are added so as to compensate a fact that \fB\-x\fR, \fB\-t\fR and \fB\-T\fR cannot specify package names with commas.
1236 .PP
1237 [NEW] Commands of \fBshow requirements\fR and  \fBshow dependents\fR are added.
1238 .PP
1239 [NEW] A functionality of self-upgrade is added so as to be carried out first if the port of portsreinstall is new.
1240 .PP
1241 [NEW] Option \fB\-k\fR is added for cases that upgrade of portsreinstall should be avoided.
1242 .PP
1243 [IMPROVED] Messages are extended to output configuration parameter values.
1244 .PP
1245 [CHANGED] Functionalities of options \fB\-t\fR and \fB\-T\fR are changed so as to prevent deinstallation of irrelevant packages and detect obsolete installed dependencies.
1246 .PP
1247 [CHANGED] Use of commas as delimiters in \fBok\fR and \fBtaboo\fR commands is abolished.
1248 .PP
1249 [CHANGED] The specification of \fBshow\fR command is changed to exclude irrelevant packages/ports and output messages about the matching targets when options \fB\-r\fR, \fB\-R\fR, \fB\-t\fR and \fB\-T\fR are enabled.
1250 .PP
1251 [CHANGED] The default behavior in case that the temporary database is older than the ports tree is changed from warnings to automatic reconstruction; the old behavior is recovered by option \fB\-c\fR.
1252 .PP
1253 [BUG FIX] Termination message is corrected (portsreinstall ok => portsreinstall ok add).
1254 .PP
1255 [BUG FIX] Values of BEFOREBUILD, BEFOREDEINSTALL and AFTERINSTALL were not correctly imported from \fBpkgtools.conf\fR(5).
1256 .PP
1257 [BUG FIX] The file name given by save command was with a wrong time stamp.
1258 .RE
1259 .TP
1260 1.1.0 (28 April 2012)
1261 .RS
1262 [NEW] Command of show deleted is newly added.
1263 .PP
1264 [CHANGED] Origin names in messages and results of show command are changed to be accompanied with package names.
1265 .PP
1266 [CHANGED] The default option for treating \fBpkgtools.conf\fR(5) is changed to \fB\-p\fR and \fB\-Q\fR is newly added.
1267 .PP
1268 [IMPROVED] Custom make environment variables and arguments are changed to be reflected in the stage of inspection of dependencies.
1269 .PP
1270 [IMPROVED] Command of show todo is now available before starting reinstallation.
1271 .PP
1272 [BUG FIX] Independence from \fBportupgrade\fR(1) was incomplete.
1273 .PP
1274 [BUG FIX] Error messages for show command when the temporary database does not exist are improved.
1275 .PP
1276 [BUG FIX] Ports with names contaning '+' were not correctly treated.
1277 .PP
1278 [BUG FIX] Save and load commands were broken.
1279 .PP
1280 [BUG FIX] Deletion of MOVED-back packages is now prevented.
1281 .RE
1282 .TP
1283 1.0.0 (14 March 2012)
1284 .RS
1285 [MISC] Explanations for \fB\-p\fR and \fB\-P\fR are revised because the previous ones were somewhat confusing.
1286 .PP
1287 [MISC] The output device of helps is changed from stderr to stdout.
1288 .PP
1289 [MISC] Messages for termination during deinstallation and reinstallation are improved by showing the target port/package names at that time.
1290 .PP
1291 [BUG FIX] Glob patterns for package/port names were not fully supported.
1292 .PP
1293 [BUG FIX] Values of MARG_* and MENV_* (MAKE_ARGS and MAKE_ENV in \fBpkgtools.conf\fR(5)) were not working.
1294 .PP
1295 [BUG FIX] Globs of obsolete packages were not detected, so especially HOLD_PKGS and IGNORE_MOVED in \fBpkgtools.conf\fR(5) and portsreinstall.conf had lost their functionalities.
1296 .PP
1297 [BUG FIX] Values of IGNORE_MOVED partially overwrote HOLD_PKGS in \fBpkgtools.conf\fR(5).
1298 .PP
1299 [BUG FIX] Typographic and grammatical errors in the main script and documents are revised.
1300 .RE
1301 .TP
1302 0.13.1 (29 October 2011)
1303 .RS
1304 [BUG FIX] Inspection of missing ports was incomplete.
1305 .PP
1306 [BUG FIX] Origin names with '+' were not correctly treated.
1307 .PP
1308 [IMPROVED] Inspection of dependencies of installed packages gets faster.
1309 .RE
1310 .TP
1311 0.13.0 (28 August 2011)
1312 .RS
1313 [IMPROVED] Phase of "Order the ports considering dependencies" is accelerated.
1314 .RE
1315 .TP
1316 0.12.0 (22 June 2011)
1317 .RS
1318 [NEW] \fB\-q\fR, \fB\-d\fR and \fB\-N\fR options are added.
1319 .PP
1320 [CHANGED] Settings for \fB\-x\fR and \fB\-s\fR options becomes to be transferred to restarted runs.
1321 .RE
1322 .TP
1323 0.11.0 (17 May 2011)
1324 .RS
1325 [NEW] Causes of errors are added to the report of failed ports.
1326 .PP
1327 [CHANGED] Functionality of \fB\-t\fR option is changed and partly splitted into \fB\-T\fR.
1328 .PP
1329 [IMPROVED] Refetch after fetch failure becomes smarter so as not to clean up distfiles.
1330 .PP
1331 [MISC] Terminology 'abort' is corrected to be 'terminate'.
1332 .RE
1333 .TP
1334 0.10.0 (11 Mar 2011)
1335 .RS
1336 [NEW] Version check for temporary database and portupgrade is added (as a template).
1337 .PP
1338 [BUG FIX] Old packages for ports whose package names was renamed were not deleted.
1339 .PP
1340 [BUG FIX] Duplicated cleans were executed after successful installation.
1341 .RE
1342 .TP
1343 0.9.8 (02 Mar 2011)
1344 .RS
1345 [MISC] Installation methods of non-executable files in Makefile are improved again.
1346 .RE
1347 .TP
1348 0.9.7 (02 Mar 2011)
1349 .RS
1350 [MISC] Installation methods of non-executable files in Makefile are improved.
1351 .RE
1352 .TP
1353 0.9.6 (01 Mar 2011)
1354 .RS
1355 [BUG FIX] Fix at version 0.9.5 was incomplete.
1356 .PP
1357 [BUG FIX] The release date of 0.9.5 was wrong in the manpage.
1358 .RE
1359 .TP
1360 0.9.5 (28 Feb 2011)
1361 .RS
1362 [BUG FIX] "install" target in Makefile installed non-executable files as executables.
1363 .RE
1364 .TP
1365 0.9.4 (17 Jan 2011)
1366 .RS
1367 [BUG FIX] "all" target in Makefile was missing.
1368 .RE
1369 .TP
1370 0.9.3 (16 Jan 2011)
1371 .RS
1372 [MISC] Makefile is modified to compress manpage in the build process.
1373 .RE
1374 .TP
1375 0.9.2 (10 Jan 2011)
1376 .RS
1377 [MISC] The 2-Clause BSD License is applied from this version.
1378 .PP
1379 [NEW] Manpage is created.
1380 .PP
1381 [NEW] Makefile for installation/uninstallation is added.
1382 .PP
1383 [BUG FIX] Recovery from distfile checksum error was broken.
1384 .RE
1385 .TP
1386 0.9.1 (27 Dec 2010)     
1387 .RS
1388 [BUG FIX] Wrong warning for \fB\-p\fR/\fB\-P\fR options in the first run.
1389 .PP
1390 [BUG FIX] Broken support of recursive chase of MOVED ports.
1391 .PP
1392 [BUG FIX] Option configuration menus were not accessable.
1393 .PP
1394 [BUG FIX] The mechanism of loading the configuration file was broken.
1395 .PP
1396 [BUG FIX] Optionally added taboo ports were not always effective in restart.
1397 .RE
1398 .TP
1399 0.9.0 (21 Nov 2010)
1400 .RS
1401 First version.
1402 .SH APPENDIX: Conditions determining the package system (general specification of FreeBSD Ports/Packages)
1403 The current package system is automatically detected according to the OS version whose serial number is obtained by
1404 .RS
1405 .B sysctl -n kern.osreldate
1406 .RE
1407 and the configuration of /etc/make.conf.
1408 Pkgng is supported for systems with serial numbers of 800505 (just before 8.1-RELEASE) or later.
1409 For systems of 1000017 (10-CURRENT) or later, Pkgng is the default.
1410 .PP
1411 In order to choose pkgng in systems from 800505 (just before 8.1-RELEASE) to just before 1000017 (10-CURRENT), put
1412 .RS
1413 .B WITH_PKGNG=yes
1414 .RE
1415 in /etc/make.conf.
1416 .PP
1417 In order to choose the legacy one in systems of 1000017 (10-CURRENT) or later, put
1418 .RS
1419 .B WITHOUT_PKGNG=yes
1420 .RE
1421 in /etc/make.conf.
1422 .SH "SEE ALSO"
1423 \fBpkg_add\fR(1),
1424 \fBpkg_create\fR(1),
1425 \fBpkg_delete\fR(1),
1426 \fBpkg_glob\fR(1),
1427 \fBportupgrade\fR(1),
1428 \fBportsdb\fR(1),
1429 \fBports_glob\fR(1),
1430 \fBpkgtools.conf\fR(5),
1431 \fBports\fR(7),
1432 \fBpkg-add\fR(8),
1433 \fBpkg-create\fR(8),
1434 \fBpkg-delete\fR(8),
1435 \fBportmaster\fR(8)
1436 .SH COPYRIGHT
1437 This software is distributed under the 2-Clause BSD License.
1438 .PP
1439 (C)\ 2010\-2014\ Mamoru\ Sakaue,\ MwGhennndo,\ All\ Rights\ Reserved.
1440 .PP
1441 Email:\ sakaue.mamoru@samurai.mwghennn.net
1442 .PP
1443 Homepage:\ http://www.mwghennndo.com/software/portsreinstall/