How to remove ALL ports?

Piet van Oostrum piet at
Fri Sep 29 06:17:44 PDT 2006

>>>>> Bengt Nilsson <bengt.nilsson11 at> (BN) wrote:

>BN> 26 sep 2006 kl. 12.11 skrev Marc André Selig:

>>> On 26.09.2006, at 08:56, Bengt Nilsson wrote:
>>>> My port system seems to be genuinely corrupt on all levels.
>>>> Is there any simple way to remove ALL ports, including port  itself, and
>>>> do it all over?
>>> Unless you've been manually installing things into /opt:

>BN> Yes, I have some other stuff on /opt/local. I thought this was the  MacOSX
>BN> (and Linux?) standard for non-system add-ons, and not  dedicated to
>BN> macports only.
>BN> Whenever I have installed opensource I have directed it to /opt/local
>BN> rather than /usr/local.

I think you should uninstall all installed ports, clean them all
completely, and then check what is left in /opt/local. Then reinstall all
things that are left in /opt/local (and that you can identify as your
additional installs and reinstall them in /usr/local. (To prevent unwanted
references to leftovers in /opt/local you should rename /opt/local to
something else before.) After installing all the other stuff you can remove
the /opt/local stuff completely and start a fresh install.
Piet van Oostrum <piet at>
URL: [PGP 8DAE142BE17999C4]
Private email: piet at

More information about the macports-users mailing list