How to remove ALL ports?

Michael Thon mrt5 at mac.com
Tue Sep 26 07:18:53 PDT 2006


On Sep 26, 2006, at 5:11 AM, Marc André Selig wrote:

> 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:
>
> sudo rm -rf /opt/local
>
>
Note that some ports such as xorg install files outside of /opt/ 
local.  You can run into trouble reinstalling X11 if you rm /opt/ 
local before you uninstall the xorg port.  Other ports that I know  
install files outside of /opt/local are the ones in the Aqua category.
cheers
Mike



> 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