Upgrading MacPorts with port reinstallation: Difference between revisions
From blinkenwiki
Blinkenjim (talk | contribs) Created page with "<ol> <li> Install Xcode 8 and command-line tools. To install command-line tools: <pre>code-select —install</pre> <li>Download and install the MacPorts installer for Sierra...." |
Blinkenjim (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<ol> | <ol> | ||
<li> Install Xcode 8 and command-line tools. To install command-line tools: | <li> Install Xcode 8 and command-line tools. To install command-line tools: | ||
<pre>code-select —install</pre> | <pre># code-select —install</pre> | ||
<li>Download and install the MacPorts installer for Sierra. | <li>Download and install the MacPorts installer for Sierra. | ||
<li>Get a list of the installed ports | <li>Get a list of the installed ports | ||
<pre> | <pre> | ||
port -qv installed > ports-2016.10.15.out | # port -qv installed > ports-2016.10.15.out | ||
</pre> | </pre> | ||
<li>Force a clean install (not necessary, according to the MacPorts migration page, but doing it anyway): | <li>Force a clean install (not necessary, according to the MacPorts migration page, but doing it anyway): | ||
<pre>sudo rm -rf /opt/localsudo rm -rf /Applications/MacPortsReinstall MacPorts packagesudo rm /Library/LaunchDaemons/org.macports.slapd.plist</pre> | <pre># sudo rm -rf /opt/localsudo rm -rf /Applications/MacPortsReinstall MacPorts packagesudo rm /Library/LaunchDaemons/org.macports.slapd.plist</pre> | ||
<li>Reinstall ports | <li>Reinstall ports | ||
<pre>chmod +x ./restore_ports.tclcurl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tclsudo ./restore_ports.tcl ports-2016.10.15.out</pre> | <pre># chmod +x ./restore_ports.tclcurl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tclsudo ./restore_ports.tcl ports-2016.10.15.out</pre> |
Revision as of 02:14, 13 June 2021
- Install Xcode 8 and command-line tools. To install command-line tools:
# code-select —install
- Download and install the MacPorts installer for Sierra.
- Get a list of the installed ports
# port -qv installed > ports-2016.10.15.out
- Force a clean install (not necessary, according to the MacPorts migration page, but doing it anyway):
# sudo rm -rf /opt/localsudo rm -rf /Applications/MacPortsReinstall MacPorts packagesudo rm /Library/LaunchDaemons/org.macports.slapd.plist
- Reinstall ports
# chmod +x ./restore_ports.tclcurl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tclsudo ./restore_ports.tcl ports-2016.10.15.out