19

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?

31

According to this github issue and to the man page, the environment variable HOMEBREW_NO_AUTO_UPDATE can be set to 1.

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:

export HOMEBREW_NO_AUTO_UPDATE=1

to set it permanently, add it to your ~/.bash_profile.

  • Now I'm wondering how could homebrew possibly have new updates so often? – Samy Bencherif Jan 15 at 15:37
  • 2
    because of a lot of packages and a lot of contributors... – Ortomala Lokni Jan 15 at 17:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .