Homebrew gathers anonymous analytics about its users. The Homebrew maintainers explain that they use the anonymous data to help the project, but you might want to disable this for two reasons:
- You don't want any of your data being shared at all.
- You want to avoid an unnecessary analytics network request.
You can disable Homebrew's analytics in one of two ways:
With a command:
brew analytics off
Or with an environment variable:
You can set this in your shell startup (your
.bashrc, for example).
To see whether Homebrew is gathering data, you can run this command to print whether it's enabled: