How to remove ALL ports?
Bengt Nilsson
bengt.nilsson11 at spray.se
Tue Sep 26 03:25:47 PDT 2006
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:
Yes, I have some other stuff on /opt/local. I thought this was the
MacOSX (and Linux?) standard for non-system add-ons, and not
dedicated to macports only.
Whenever I have installed opensource I have directed it to /opt/local
rather than /usr/local.
>
> sudo rm -rf /opt/local
>
>
> If you've got a slow connection and enough disk space, you might
> want to preserve one directory containing the original source code
> for packages that have already been downloaded:
>
> sudo mv /opt/local/var/db/dports/distfiles /opt/distfiles
> sudo rm -rf /opt/local
> [... reinstall MacPorts, but don't install any packages yet ...]
> sudo mv /opt/distfiles/* /opt/local/var/db/dports/distfiles/
> sudo rmdir /opt/distfiles
>
> This should not hurt even if some of those files are corrupt, since
> the freshly installed port system will check their signatures
> before using them. It might waste some disk space, though.
>
> Regards,
> Marc
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
More information about the macports-users
mailing list