7,192
edits
No edit summary |
No edit summary |
||
過去にインストールした ports すべての再インストール (泣)
()portmaster の man page から
<syntaxhighlight lang="bash" enclose="div">
cd /usr/ports/ports-mgmt/portmaster
make install clean
portmaster --list-origins > ~/
cd /usr/ports
portmaster `cat ~/list-installed`▼
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.
</syntaxhighlight>
|