1
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)
1
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)
3
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/
/Library/LaunchDaemons/org.macports.*
org.macports.OpenSSH.plist
)./Library/Receipts/MacPorts*.pkg
~/.macports
port
command.1
If you installed from source or SVN, then your installation might be using a directory other than /opt/local/
.
4
They're all under /opt
.
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 – 2011-05-18T06:37:35.140