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.
2. Pre-upgrade/Old mac: Save MacPorts state
Save a list of all installed ports + whether they were specifically requested
port -qv installed | cut -d ‘ ‘ -f 3 | sort -u> myports.txt
port echo requested | cut -d ‘ ‘ -f 1 | sort -u> requested.txt
For more information, see this page.
3. Pre-upgrade: Uninstall old packages
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.