Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am planning to migrate from MacPorts to homebrew. Where are all the MacPorts files located (mostly what it installs) so I can back them up? (I do have a regular backup, of course)

share|improve this question
If you can change your vote, give @Chris Johnson the nod. I'd bet my quick-and-dirty answer of "/opt" is probably true for the majority of MacPorts installations out there, but it's true that there are some packages you can install via MacPorts that can put things outside of /opt, as Chris documented. – Spiff May 18 '11 at 6:37
up vote 3 down vote accepted

The vast portion of a MacPorts installation is usually1 under /opt/local/, but there are some extra locations that often hold a few other files. See the Uninstall section of the MacPorts Guide.

Here are the highlights:

  • /Applications/MacPorts/
    I usually end up with some GUI applications that come with Python in here.
  • /Library/LaunchDaemons/org.macports.*
    Servers ports may drop a file here (e.g. org.macports.OpenSSH.plist).
  • /Library/Receipts/MacPorts*.pkg
    You will have one of these if you used the binary installer (most people probably do).
  • ~/.macports
    Might contain some history or settings for the port command.

1 If you installed from source or SVN, then your installation might be using a directory other than /opt/local/.

share|improve this answer

They're all under /opt.  

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.