<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">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:</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"></div><div dir="ltr">sudo port -vfp uninstall --follow-dependencies installed  </div><div dir="ltr"><br></div><div dir="ltr">sudo port -vfp uninstall all</div><div dir="ltr"><br></div><div dir="ltr">sudo rm -rf   /opt/local   /Library/Tcl/macports*</div><div><br></div></div><div dir="ltr"><br><blockquote type="cite">On Nov 26, 2021, at 08:16, Masoud Ghaderi <masoudshao@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello,<div>I am following the steps from <a href="https://guide.macports.org/chunked/installing.macports.uninstalling.html" target="_blank">https://guide.macports.org/chunked/installing.macports.uninstalling.html</a> 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).</div><div>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)</div><div><pre style="white-space:pre-wrap;font-size:13px;margin-top:0px;padding:12px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:1.30769;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">/usr/bin/dscl . -search /Users name macports</code></pre></div><div>returns nothing. Also, running step 3 with -v flag did not return anything. Executing </div><div>where port</div><div>returned</div><div>/opt/local/bin/port<br></div><div><br></div><div>Any help regarding the proper uninstallation of macports would be appreciated.</div><div><br></div><div>Regards,</div><div>Masoud</div></div>
</div></blockquote></body></html>