brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: brew analytics off stops Homebrew from sending usage data

Terminal
~/tips/tip-privacy-brew-analytics-off

brew analytics off

Turns off Homebrew's anonymous usage analytics and shows whether they are on.

Homebrew sends anonymous usage numbers by default, and on my MacBook Pro I would rather decide that myself. The page about it is short and clear, and opting out takes one command.

Check the current setting first, then turn it off:

brew analytics state
brew analytics off

The alternative is the environment variable, which is handy in a Dockerfile or a CI job, or in your shell profile on a Mac:

export HOMEBREW_NO_ANALYTICS=1

What does Homebrew send? Per its docs: install, upgrade and reinstall events with the package name, install options, CPU architecture, the OS name or major version and the Homebrew version. Command events include the command and option names after the option values are removed. The payload has no user identifier or IP address field, and events are kept for 365 days in InfluxDB. Homebrew shows a notice before analytics start, so you can opt out before the first event.

Want to see it for yourself? Set HOMEBREW_ANALYTICS_DEBUG=1 for a single command and Homebrew prints the analytics request and sends it synchronously.

The caveat: debug mode is not an opt-out. The docs say so, and it still sends the event. If a request must not go out, use brew analytics off or the variable. Also, the data helps the maintainers decide which packages to look after, so I do not see it as sinister. It is a choice, and the command is there for people who choose differently.

Further reading: Anonymous Analytics (Homebrew Documentation)

More Terminal tips ioreg -rn AppleSmartBattery | grep CycleCount Terminal can save your windows and tabs as a window group Export a Terminal profile to a .terminal file and import it on another Mac mc hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' All Terminal tips (116) All topics

Link