No user or group to remove on macOS Catalina

Ryan Schmidt ryandesign at macports.org
Fri Nov 26 17:12:25 UTC 2021


On Nov 26, 2021, at 07:16, Masoud Ghaderi 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

You're right, it's best to pick one package manager and uninstall the other, to avoid them conflicting with one another. If you have any feedback about ways that MacPorts could improve, please let us know.


On my Catalina system:


$ /usr/bin/dscl . -search /Users name macports
macports		dsAttrTypeNative:name = (
    macports
)


If you don't get that result, then I guess you don't have the macports user, so you can skip the step of deleting it.



More information about the macports-users mailing list