Appendix A — Homebrew

What Problem Does Homebrew Solve?

When you need a new app on your phone, you open the App Store, search for what you want, and tap “Install.” The App Store handles everything behind the scenes: downloading the app, putting it in the right place, and making sure it works with your device. You never think about where the app lives on your phone or how it got there.

Now imagine you need to install a programming tool that doesn’t exist in the App Store. Without a package manager, you’d have to visit a website, find the correct download link for your specific computer, extract compressed files, figure out where to put them, and manually configure your system to recognize the new tool. If that tool depends on other tools to work, you’d need to track those down and install them first. It’s tedious, error-prone, and frustrating.

Homebrew is essentially the App Store for command-line tools and developer software. It gives your Mac the same convenient installation experience that Linux users have enjoyed for decades. You tell Homebrew what you want, and it handles the rest: downloading, installing, resolving dependencies, and configuring paths.

Why This Matters for Your Workflow

Throughout this book, you’ll need various tools installed on your computer: version control systems, programming language runtimes, database utilities, and more. Without Homebrew, each installation becomes its own adventure of Googling instructions and hoping nothing breaks. With Homebrew, installing new tools becomes predictable and consistent.

Homebrew also makes your setup reproducible. If you get a new computer or need to help a colleague configure their machine, you can simply share a list of packages rather than walking through dozens of manual installation steps.

Installation Instructions

Open the Terminal application on your Mac. You can find it by pressing Cmd + Space to open Spotlight Search, then typing “Terminal” and pressing Enter.

Once Terminal is open, copy and paste the following command, then press Enter:

terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

The installer will explain what it plans to do and ask for your password (the same password you use to log into your Mac). As you type your password, you won’t see any characters appear on screen, this is normal security behavior. Just type your password and press Enter.

The installation takes a few minutes. When it finishes, read the output carefully. Homebrew will print instructions telling you to run one or two additional commands to complete the setup. These commands add Homebrew to your system’s PATH, which is how your computer knows where to find programs. Copy and run those commands exactly as shown.

To verify everything worked, close your Terminal window, open a fresh one, and type brew --version. If you see a version number, you’re all set.

What Happens Next

Once Homebrew is installed, you’ll have access to thousands of tools through simple commands. We’ll introduce specific commands as we need them throughout the book. For now, just know that Homebrew is the foundation that makes installing everything else straightforward.

If you’re curious, Homebrew’s website at brew.sh has documentation and a searchable list of available packages. But don’t feel pressured to explore on your own yet, we’ll guide you through each tool as it becomes relevant to your work.

Resources