Skip auto updates for brew install/upgrade/tap
I think we've all been there. You're right in the middle of something, you need to brew install a formula, you go to install the formula, and then all of a sudden you're greeted with:
Running `brew update --auto-update`...
and so now you have to wait for all of your formulae to update, just so you can use the one that you need.
Well, if you're in a rush or on a slow internet connection, you can skip the auto update by setting the env var HOMEBREW_NO_AUTO_UPDATE
to 1
.
HOMEBREW_NO_AUTO_UPDATE=1 brew install <formula>
You might find it helpful to throw this into an alias so that you can brew install without updates when you're in a rush, without needing to remember the name of the env var.
From the official docs:
TweetHOMEBREW_NO_AUTO_UPDATE:
If set, Homebrew will not auto-update before runningbrew install
,brew upgrade
orbrew tap
.