How do I remove MacPorts on an “unsupported OS” i.e. El Capitan Public beta?

女生的网名这么多〃 提交于 2019-11-30 05:02:17
Michel Soares Pintor

This solution worked for me, without remove it:

Source

Ajay

I just went ahead and manually removed the files (using rm):

sudo rm -rf /opt/local \
    /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

It didn't seem to leave any leftovers or break anything.

One thing to note however is that mactex seems to have been installed in the same directory so that got removed as well. I didn't realize that I had that in the same directory. If you're going to repeat the same steps, keep this in mind.

What I did successfully on my El Capitan:

  1. xcode-select --install
  2. xcodebuild -license
  3. Reinstall MacPorts by using the correct *.pkg matching your OSX from https://www.macports.org/install.php
  4. done.

wget is fetching a bz2 file but unzip instructions are for gz. Try the following instead

tar xjvf MacPorts-2.3.3.tar.bz2

The rest worked fine on El Capitan.

Thanks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!