{"id":143,"date":"2014-10-29T23:03:58","date_gmt":"2014-10-29T22:03:58","guid":{"rendered":"http:\/\/svalgaard.net\/jens\/blog\/?p=143"},"modified":"2018-10-04T09:11:59","modified_gmt":"2018-10-04T07:11:59","slug":"upgrading-macports-when-upgrading-to-new-version-of-mac-os-x-or-to-a-new-mac","status":"publish","type":"post","link":"https:\/\/svalgaard.net\/jens\/blog\/2014\/10\/upgrading-macports-when-upgrading-to-new-version-of-mac-os-x-or-to-a-new-mac\/","title":{"rendered":"Upgrading MacPorts when upgrading to a new version of Mac OS X or to a new Mac"},"content":{"rendered":"<p>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.<\/p>\n<h3>1. Pre-upgrade\/Old mac: Clean up old MacPorts installation<\/h3>\n<p>You may want first to do\u00a0port selfupdate etc to upgrade to the newest version of MacPorts.<\/p>\n<p>Also remove all unnecessary packages etc.<\/p>\n<p>For more information, have a look at <a href=\"https:\/\/guide.macports.org\/chunked\/using.common-tasks.html\">this page<\/a>.<\/p>\n<pre>sudo port uninstall inactive<\/pre>\n<h3>2. Pre-upgrade\/Old mac: Save\u00a0MacPorts state<\/h3>\n<p>Save a list of all installed ports + whether they were specifically requested<\/p>\n<pre>sudo port -qv installed | cut -d ' ' \u00a0-f 3 | sort -u &gt; myports.txt\r\nsudo port echo requested | cut -d ' ' -f 1 | sort -u &gt; requested.txt<\/pre>\n<p>For more information, see <a href=\"https:\/\/trac.macports.org\/wiki\/Migration\">this page<\/a>.<\/p>\n<h3>3. Pre-upgrade: Uninstall old packages<\/h3>\n<pre>sudo port -f uninstall installed\r\nsudo port clean all<\/pre>\n<p>For more information, see <a href=\"https:\/\/trac.macports.org\/wiki\/Migration\">this page<\/a>\u00a0(same as Step 2).<\/p>\n<h3>4. Post-upgrade\/New mac: Install stuff<\/h3>\n<p>Install Xcode, and then basically follow the remaining steps from <a href=\"https:\/\/trac.macports.org\/wiki\/Migration\">this page<\/a>.<\/p>\n<h2><strong>SSHfs not working in Yosemite?<\/strong><\/h2>\n<p>This is due to Yosemite requiring kernel modules to be signed. Run this command and restart:<\/p>\n<pre><code>sudo nvram boot-args=\"kext-dev-mode=1\"<\/code><\/pre>\n<p>See <a href=\"http:\/\/superuser.com\/questions\/827775\/mounting-with-sshfs-doesnt-work-after-yosemite-upgrade\">this page<\/a> for further information.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0port selfupdate etc to upgrade to the newest version of MacPorts. Also remove all unnecessary packages etc. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":7,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}