And in general it does everything as user not su for a few years now. (Actually a good idea if using it before M1 to brew dump, remove installs and brew, then reinstall from the dumped brew file.)
The issue is that by default on install Homebrew uses Google Analytics.
> And in general it does everything as user not su for a few years now.
Homebrew always did everything as the admin user and not as root, and that was always the problem. It mungs permissions of /usr/local; all files, not just directories. And it's not so much of a package manager as it is a needless frontend for git. MacPorts, alternatively, respects default file system ownership, is a full-featured package management system, and like pkgsrc, is based on the FreeBSD ports system.
And when uninstalled, MacPorts doesn't leave a mess. With these 3 commands, it leaves no trace (with the exception of the /opt directory in the event it is used for something else):
sudo port -vfp uninstall --follow-dependencies installed
sudo port -vfp uninstall all
sudo rm -rf /opt/local /Library/Tcl/macports*
If the day ever comes, good luck uninstalling Homebrew.[1][2]
https://sparanoid.blog/749577