{"id":1164,"date":"2020-05-24T16:57:34","date_gmt":"2020-05-25T00:57:34","guid":{"rendered":"https:\/\/accretiondisc.com\/blog\/?p=1164"},"modified":"2020-05-25T08:27:43","modified_gmt":"2020-05-25T16:27:43","slug":"macports-cheatsheet","status":"publish","type":"post","link":"https:\/\/accretiondisc.com\/blog\/2020\/05\/24\/macports-cheatsheet\/","title":{"rendered":"Macports Cheatsheet"},"content":{"rendered":"\n<p>I used to use <a href=\"https:\/\/brew.sh\/\">homebrew<\/a>, but before that I used <a href=\"https:\/\/www.macports.org\/\">MacPorts<\/a>. (And long, long, before that, <a href=\"http:\/\/www.finkproject.org\/\">fink<\/a>.) The past year or two I&#8217;ve come back to MacPorts. But I forget what the commands are. (Honestly, I get them confused with <a href=\"http:\/\/manpages.ubuntu.com\/manpages\/focal\/man8\/apt.8.html\">apt<\/a>, but that&#8217;s a separate problem.)<\/p>\n\n\n\n<p>The usual thing to do is to search and then install:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>port search <em>whatever<\/em><\/li><li>port info <em>whatever<\/em><\/li><li>port variants <em>whatever<\/em><\/li><li>port install <em>whatever<\/em> +<em>somevariant<\/em><\/li><\/ul>\n\n\n\n<p>The other thing is to update the stuff you&#8217;ve already installed<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>port -d selfupdate<\/li><li>port list outdated<\/li><li>port upgrade outdated <\/li><\/ul>\n\n\n\n<p>And sometimes get rid of the old stuff<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>port list inactive<\/li><li>port uninstall inactive<\/li><\/ul>\n\n\n\n<p><strong>Update<\/strong>: I left out two important commands:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>port list installed # what got installed<\/li><li>port list leaves # what you installed<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I used to use homebrew, but before that I used MacPorts. (And long, long, before that, fink.) The past year or two I&#8217;ve come back to MacPorts. But I forget what the commands are. (Honestly, I get them confused with apt, but that&#8217;s a separate problem.) The usual thing to do is to search and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[52],"tags":[1080,1081,1082,150,170],"class_list":["post-1164","post","type-post","status-publish","format-standard","hentry","category-technology","tag-cheatsheet","tag-documentation","tag-guide","tag-howto","tag-macports"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRqpr-iM","_links":{"self":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/comments?post=1164"}],"version-history":[{"count":0,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1164\/revisions"}],"wp:attachment":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/media?parent=1164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/categories?post=1164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/tags?post=1164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}