Installing Homebrew
One installer for every developer tool you’ll ever need.
Homebrew is the app store for developer tools, minus the store: one command installs almost anything. You'll use it constantly, so set it up once now. (It needs Xcode Command Line Tools in place first, which was the last chapter.)
- 1
Open your terminal and paste this in:
Terminal/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - 2
Press Enter. It asks for your Mac login password, so type it and press Enter. (Nothing appears as you type. That's a terminal security habit, not a broken keyboard.)
- 3
It asks you to confirm with Enter one more time, then runs for a few minutes.
- 4
At the end it prints “Next steps” with a command or two. These teach your terminal the
brewcommand, so copy them from your own terminal output and run them. They'll look like:Terminaleval "$(/opt/homebrew/bin/brew shellenv zsh)" - 5
Sanity check time. Paste this:
Terminalbrew --version - 6
Press Enter. A version number means it worked.
What success looks likeHomebrew 4.x.x
Homebrew's in. From here, installs are one-liners.
