How do I uninstall Macports from OS X Yosemite?

2.3k Views Asked by At

I installed Macports on OS X Mavericks and then I switched to Homebrew. Now I upgraded to OS X Yosemite and suddenly remembered to uninstall macports so that home-brew doesn't have any build problems. But when I try to uninstall I get a platform mismatch error which is obvious as I upgraded my OS X. As I am very new at this, can anyone help with step by step instructions to completely remove macports from system.

2

There are 2 best solutions below

1
On BEST ANSWER

sudo port -v -f uninstall active will not work while you haven't upgraded your MacPorts installation. You can use the MacPorts installer for Yosemite from the website to get a working MacPorts again. Once you did that, follow the official uninstall instructions.

0
On

Something like this should do (assuming you used /opt/local):

sudo port -v -f uninstall active
sudo rm -rf /opt/local