2 # ==============================================================================
3 # portsreinstall library script
5 # Copyright (C) 2013 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
6 # This software is distributed under the 2-Clause BSD License.
7 # ==============================================================================
9 # ============= Output a short help =============
12 fold -s -w `misc_get_console_column_size` << eof
13 USAGE: ${APPNAME} [OPTIONS] [--] [command]
16 <Group 1: Just show messages and exit without operation>
17 -H : Show a long help whose content is the same as the manual page.
18 -h : Show this short help.
19 -V : Show the current version.
20 <Group 2: Effective anytime>
21 -a : Suppress messages to be batch-friendly.
22 -i : Include new targets to the "needed" list.
23 -M : Reset group 4 option settings.
24 <Group 3: Effective only with redo command>
25 -L : Reload configuration files and reset group 6 option settings.
26 -N : Reset group 5 option settings.
27 <Group 4: Saved and transferred to restarted runs, renewable by -M option>
28 -A : Only non-interactive ports are (re)installed.
29 -B : Exclude run-time dependencies in evaluation of dependencies.
30 -b : Include build-time dependencies in evaluation of dependencies.
31 -C : Skip "make config" by applying default port options if unconfigured.
32 -c : Suppress cleaning the temporary database even if its obsolete.
33 -D : Suppress entire inspection of distinfo in the ports tree.
34 -d : Do not clean up obsolete or unused distfiles.
35 -G : Use prebuilt packages for ports with the default configurations.
36 -g : Keep ports-mgmt/pkg untouched.
37 -I : Only interactive ports are (re)installed.
38 -k : Keep ${APPNAME} itself untouched.
39 -l : Use legacy packages when prebuilt pkgng packages are missing.
40 -n : No operation is carried out (just for seeing what will be done).
41 -q : Only new ports and their run-time requirements are reinstalled.
42 -s : Build of vulnerable ports are avoided by triggering errors.
43 -X : Deselect all deinstallation candidates.
44 -Y : Select all deinstallation candidates.
45 <Group 5: Saved and transferred to restarted runs, renewable by -N option>
46 -O glob1[:glob2[:...]] : Reinstall only target ports themselves.
47 -o : Ignore ports which are outside of target scopes of -O, -T or -t options.
48 -T glob1[:glob2[:...]] : Reinstall only target ports and their requirements.
49 -t glob1[:glob2[:...]] : Reinstall only target ports and their dependents.
50 <Group 6: Saved and transferred to restarted runs, renewable by -L option>
51 -P : Import settings from pkgtools.conf(5) as the secondary if exists.
52 -p : Import settings from pkgtools.conf(5) as the primary if exists (default).
53 -Q : Ignore pkgtools.conf(5) even if it exists.
56 The configuration of options annotated as "saved and transferred to restarted runs" are saved in the temporary database by the first run after cleaning the database. In the following runs, the corresponding option settings are loaded from the saved configuration if executed with no option or exactly the same option set as the saved one. Otherwise, the option settings are renewed for possible ones and the others are loaded from the saved configuration. Then the saved configuration is updated with the renewed settings.
59 command: do [all] (default) | [do] prepare | redo [all] | redo prepare
60 | clean [normal] | clean force | reset [all] | reset keepopts
61 | ok add globs... | ok del globs...
62 | taboo add globs... | taboo del globs...
63 | noneed add globs... | noneed del globs...
64 | reselect leaves | reselect obsolete
65 | save [dir] | load path | glob globs... | options
66 | reconf globs... | forget globs...
67 | escape globs... | restore globs...
68 | pkgsanity [globs...]
69 | show todo | show done | show resolved | show failure | show redo
70 | show taboo | show need | show noneed | show restored | show deleted
71 | show conflict | show requirements glob... | show dependents glob...
72 | show initrequirements glob... | show initdependents glob...
76 This utility is an alternative to portupgrade(1) and portmaster(8), and designed to be suitable for reinstallation of all packages after major version upgrade of the system or very long absence of ports upgrade.
77 Usually, you can execute with no option nor argument. If portupgrade(1) is installed, compatibility with it is taken into account by importing pkgtools.conf(5) and rebuilding the package database.
81 # ============= Output a long help =============
84 zcat "`whereis -qm \"${APPNAME}\"`" | nroff -man