Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've removed Macports because of library conflicts and use Homebrew now. And I'm having issues with Openssl and in my opt/local/bin folder, there's openssl, oldOpenssl and oldOpenssl2 which I'd like to remove, but I've read that the opt/local/bin is my macports directory. What bad things would happen if I just remove it?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

You can just remove it.

/opt doesn't exist on a clean installation of OS X. If you want to completely uninstall MacPorts, you should anyway just have uninstalled the ports first. You can later install most applications again, through Homebrew, which also has OpenSSL.

To remove all currently installed ports – which you probably can't do because you already uninstalled MacPorts:

sudo port -fp uninstall --follow-dependents installed

This would also remove the binaries in /opt/local/bin. The rest is cleanup of additional directories, including /opt/local, which is just the MacPorts prefix. It's unlikely anything else would write files there.

This is all explained in the official uninstall instructions as well. Full removal includes removing some other directories as well, like:

/Applications/DarwinPorts
/Applications/MacPorts
/Library/LaunchDaemons/org.macports.*
/Library/Receipts/DarwinPorts*.pkg
/Library/Receipts/MacPorts*.pkg
/Library/StartupItems/DarwinPortsStartup
/Library/Tcl/darwinports1.0
/Library/Tcl/macports1.0
~/.macports
share|improve this answer

/opt is optional, there are no system components at all.... OpenSSL is included in base system, so you need to install system headers Aka SDK in addition to Xcode to succeed in compiling. Another choice if you really want to compile a lot of GNU world you can use Fink.

share|improve this answer

Your Answer

 
discard

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.