When I install or reinstall a formula, homebrew automatically update itself before installing the formula.
When working on a slow connection, this is annoying. How can I cancel this automatic update?
HOMEBREW_NO_AUTO_UPDATE=1 brew install <formula>
This will stop the homebrew update for this command. If you want to prevent auto update for your shell session, use:
to set it permanently, add it to your