How to Uninstall MacPorts

Tadashi Shigeoka ·  Sun, September 11, 2011

I researched how to uninstall MacPorts, a package management tool available on Mac, so here’s a memo.

$ sudo port -fp uninstall --follow-dependents installed
$ 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

【References】

2.5. Uninstall

satomacoto: How to Remove/Uninstall MacPorts

That’s all from the Gemba.