7,166
edits
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
過去にインストールした ports すべての再インストール (泣) | 過去にインストールした ports すべての再インストール (泣) | ||
()portmaster の man page から | |||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
cd /usr/ports/ports-mgmt/portmaster | cd /usr/ports/ports-mgmt/portmaster | ||
make install clean | make install clean | ||
portmaster --list-origins > ~/list-installed | portmaster --list-origins > ~/installed-port-list | ||
portmaster `cat ~/list | cd /usr/ports | ||
git pull | |||
portmaster -ty --clean-distfiles | |||
portmaster -Faf | |||
pkg delete -afy | |||
rm -rf /usr/local/lib/compat/pkg | |||
# Back up any files in /usr/local you wish to save, | |||
# such as configuration files in /usr/local/etc | |||
# Manually check /usr/local and /var/db/pkg | |||
# to make sure that they are really empty | |||
# Install ports-mgmt/pkg and then ports-mgmt/portmaster. | |||
# Remove both from ~/installed-port-list. | |||
portmaster --no-confirm `cat ~/installed-port-list` | |||
</syntaxhighlight> | </syntaxhighlight> | ||