Upgrading MacPorts when upgrading to a new version of Mac OS X or to a new Mac

This is a quick list of the steps necessary to make your MacPorts installation work when upgrading to a new version of Mac OS X.

1. Pre-upgrade/Old mac: Clean up old MacPorts installation

You may want first to do port selfupdate etc to upgrade to the newest version of MacPorts.

Also remove all unnecessary packages etc.

For more information, have a look at this page.

sudo port uninstall inactive

2. Pre-upgrade/Old mac: Save MacPorts state

Save a list of all installed ports + whether they were specifically requested

sudo port -qv installed | cut -d ' '  -f 3 | sort -u > myports.txt
sudo port echo requested | cut -d ' ' -f 1 | sort -u > requested.txt

For more information, see this page.

3. Pre-upgrade: Uninstall old packages

sudo port -f uninstall installed
sudo port clean all

For more information, see this page (same as Step 2).

4. Post-upgrade/New mac: Install stuff

Install Xcode, and then basically follow the remaining steps from this page.

SSHfs not working in Yosemite?

This is due to Yosemite requiring kernel modules to be signed. Run this command and restart:

sudo nvram boot-args="kext-dev-mode=1"

See this page for further information.

 

Skriv et svar

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>