Uninstall MacPorts

19,509
sudo port -f uninstall installed

will uninstall all ports.

Then read the guide for cleaning up the leftover bits.

https://guide.macports.org/chunked/installing.macports.uninstalling.html

Share:
19,509

Related videos on Youtube

thibmaek
Author by

thibmaek

Student at Devine in the university college of Howest. Here I combine both design & development to make the most kickass websites, apps, designs, installations. I can’t stop learning new stuff. Docker, Redux, AWS Lambda, RollupJS, CSS4, it all interests me! Making and doing things with code is my long time passion aside from digging trough record crates trying to find some nice records for my ever growing collection. Javascript is my goto language but that doesn’t scare me off from experimenting with Python or Haskell. I have a humongous appetite for anything devops related (looking at you Docker!) and IoT. I own 5 Raspberry Pi’s with whom I’ve gone trough a difficult, yet loving relationship with. Oh and I check my Github like 20 times a day.

Updated on June 04, 2022

Comments

  • thibmaek
    thibmaek 7 months

    I want to switch to Homebrew instead of MacPorts because Homebrew told me to (http://cl.ly/image/1b0M0q2x1C3K) and it seems better. I'm a bit weary about how to uninstall MacPorts since it's installed trough Terminal and not trough .app as a regular OS X program.

    How do I uninstall?

  • ptamzz
    ptamzz almost 9 years
    I got this error Error: No ports matched the given expression when used sudo port -fp uninstall installed. What might be the possible reason?
  • Kirk Roybal
    Kirk Roybal almost 9 years
    @ptamzz Did you install any port packages? This doesn't remove macports, it removes all of the packages installed by macports. See the guide link in the answer to uninstall macports.
  • nindalf
    nindalf over 7 years
    Sometimes homebrew throws up this error: Warning: It appears you have MacPorts or Fink installed. Software installed with other package managers causes known problems for Homebrew. So no, I don't think they're compatible
  • JacksonIsaac
    JacksonIsaac about 7 years
    It is just a warning message though. There might be a problem when you have packages installed by different package managers. But as I said it depends which package you want to install / is installed. There are some packages available in Homebrew that are not yet available in MacPorts. In that case you can use them both as both are using different prefix to install the packages (as long as you are careful).

Related