Chandler Thompson

Installing and Using Homebrew on macOS

So, you’ve got your shiny Mac running macOS, and you’re ready to turn it into a developer’s paradise. Enter Homebrew—the package manager that makes managing software on macOS a breeze. This guide will walk you through why you should use Homebrew, how to install it, and some tips and tricks to get the most out of it.


Why Use Homebrew on macOS?

Homebrew is a free and open-source package manager designed to simplify the installation of software on macOS (and Linux). Think of it as an App Store for the command line, where you can install apps and developer tools with a single command.

Pros and Cons

Pros

Cons


Installing Homebrew

Special Note: Homebrew requires the Xcode Command Line Tools (CLT) to work properly. Historically, these were installed using the command xcode-select --install. However, Homebrew will now automatically install Xcode CLT during its setup process (if they are not already installed). I prefer to install with Homebrew, but if you prefer to manage this manually, you can still run xcode-select --install before installing Homebrew.

Getting Homebrew set up is as easy as following the instructions on the Homebrew website.

  1. Open your terminal (Cmd + Space, type “Terminal”).

  2. Paste the following command to install Homebrew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  3. Follow the on-screen instructions to complete the installation.

💡 Pro Tip: After installation, run brew doctor to ensure everything is configured correctly.


Common Commands

Homebrew’s commands are designed to be straightforward. Here are the essentials:


Here’s where things get fun! Below are some of the most popular and useful packages you can install with Homebrew:

Developer Tools

Productivity Boosters

Fun and Quirky

Essential Utilities


Wrapping Up

Homebrew is one of the best tools to add to your macOS developer toolkit. Whether you’re setting up your machine for web development, data science, or just want to impress your friends with ASCII cows, Homebrew has something for everyone.

Got a favorite brew or tip? Drop a comment below and share the love! Until next time, happy brewing! 🍻