Hacker News new | past | comments | ask | show | jobs | submit login

    brew analytics off
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.)

https://sparanoid.blog/749577




> brew analytics off

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]

[1] https://github.com/Homebrew/legacy-homebrew/issues/48792

[2] https://stackoverflow.com/questions/32895800/cant-reinstall-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: