/ mac

The unofficial way to uninstall DarwinPorts / MacPorts

Fed up and done with the whole mess of DarwinPorts (now known as MacPorts)? Ready to move to ArchOSX? Fire up ye terminal!

% port installed | awk '{print $1}' | xargs -n 1 sudo port uninstall --follow-dependents

--->  Deactivating fop-0.20 @0.20.5_0
--->  Uninstalling fop-0.20 @0.20.5_0
--->  Deactivating imlib2 @1.4.1_1
--->  Uninstalling imlib2 @1.4.1_1
--->  Deactivating freetype @2.3.9_0+macosx
--->  Uninstalling freetype @2.3.9_0+macosx
--->  Deactivating gperf @3.0.4_0
--->  Uninstalling gperf @3.0.4_0
Error: port uninstall failed: Registry error: imlib2 not registered as installed.
--->  Deactivating jpeg @6b_3
% sudo rm -rf /opt/local

Embrace your newfound freedom and replace this junk with a real package manager.