To uninstall macports entirely, I use the three commands below in a script 
(which I assume I got from the manual, but it's been awhile, I do not recall), 
but they work just as well one at a time:

sudo port -vfp uninstall --follow-dependencies installed  

sudo port -vfp uninstall all

sudo rm -rf   /opt/local   /Library/Tcl/macports*


> On Nov 26, 2021, at 08:16, Masoud Ghaderi <[email protected]> wrote:
> 
> 
> Hello,
> I am following the steps from 
> https://guide.macports.org/chunked/installing.macports.uninstalling.html to 
> remove mac ports from my machine (it is currently functioning but I want to 
> migrate to homebrew and I've heard they do not coexist).
> The second step states that I need to remove the user or group that has been 
> created by macports. However, looking for the user (as suggested in SO)
> /usr/bin/dscl . -search /Users name macports
> returns nothing. Also, running step 3 with -v flag did not return anything. 
> Executing 
> where port
> returned
> /opt/local/bin/port
> 
> Any help regarding the proper uninstallation of macports would be appreciated.
> 
> Regards,
> Masoud

Reply via email to