Table of Contents
If you use a Mac and want access to powerful developer tools, open-source software, and command-line utilities, Homebrew is one of the best additions you can make to your system. Often described as “the missing package manager for macOS,” Homebrew allows you to install, update, and manage software directly from the Terminal—quickly and efficiently.
TLDR: Homebrew is a free macOS package manager that makes installing software simple using the Terminal. To install it, you just need to run a single command provided on the official Homebrew website. After installation, you can use commands like brew install, brew update, and brew upgrade to manage software. The setup takes only a few minutes and opens up a powerful ecosystem of developer tools and applications.
Homebrew is a package manager for macOS (and Linux). In simple terms, it’s a tool that helps you download, install, and manage applications from the command line. Instead of manually downloading files from websites and dragging apps into your Applications folder, you can install tools with a single command.
For example:
Homebrew handles dependencies automatically, ensures compatibility with your macOS version, and makes updating software incredibly simple.
Before you begin, make sure your Mac meets the following requirements:
You’ll also need Apple’s Command Line Tools. Don’t worry—if they’re not installed, the Homebrew installer will prompt you automatically.
Homebrew is installed via the Terminal app.
To open Terminal:
Alternatively, you can find it under:
Applications → Utilities → Terminal
Visit the official Homebrew website:
https://brew.sh
You’ll see a command that looks similar to this:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Important: Always copy the installation command directly from the official website to ensure you’re using the latest and safest version.
Paste the copied command into Terminal and press Enter.
What happens next:
During installation, you might see messages about:
This process usually takes 5–15 minutes, depending on your internet speed.
After installation, you may see additional instructions in the Terminal window. For example:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)" This step ensures your Mac knows where to find the brew command.
Simply copy and paste the provided commands into Terminal if prompted.
If you’re using:
To confirm Homebrew is installed correctly, type:
brew --version If installed successfully, you’ll see output like:
Homebrew 4.x.x You can also run:
brew doctor This command checks your system for potential issues and provides recommendations.
Now that Homebrew is installed, here are the most useful commands you should know:
brew install package-name Example:
brew install wget brew update This updates Homebrew itself and its package list.
brew upgrade Updates all installed software to the latest version.
brew search package-name brew uninstall package-name Homebrew installs two main types of software:
To install a graphical application, use:
brew install --cask google-chrome Here’s a comparison of commonly installed tools:
| Tool | Type | Main Purpose | Install Command |
|---|---|---|---|
| Git | Formula | Version control | brew install git |
| Node.js | Formula | JavaScript runtime | brew install node |
| Python | Formula | Programming language | brew install python |
| Visual Studio Code | Cask | Code editor | brew install –cask visual-studio-code |
| Google Chrome | Cask | Web browser | brew install –cask google-chrome |
This usually means Homebrew is not added to your PATH. Run the shell configuration commands suggested at the end of installation.
Make sure you’re using an administrator account. Avoid manually changing directory permissions unless specifically instructed.
Install them manually with:
xcode-select --install To ensure system stability and security, regularly run:
brew update
brew upgrade
brew cleanup Running these once every couple of weeks is usually sufficient.
If you ever decide to remove Homebrew, run the official uninstall script from the Homebrew repository. Always copy the latest command from the official documentation to ensure safe removal.
The uninstallation process removes:
Installing Homebrew transforms your Mac into a more powerful development environment. Instead of manually hunting down installers, managing versions, and tracking updates, you centralize everything in one simple command-line tool.
Benefits include:
Even if you’re not a professional developer, Homebrew is incredibly useful for installing utilities, browsers, productivity apps, and programming languages quickly and safely.
Installing Homebrew on macOS is one of the smartest setup steps you can take. The process is straightforward: open Terminal, paste one command, follow simple prompts, and verify your installation. Within minutes, you gain access to a vast ecosystem of software—all manageable through clean, simple commands.
Whether you’re coding, automating tasks, or just want better control over your Mac’s software environment, Homebrew makes it fast, clean, and efficient. Once you start using it, you’ll likely wonder how you ever managed your Mac without it.
Serverless architecture has transformed how developers build and scale modern applications. Among the most popular…
For Nintendo Switch homebrew enthusiasts, adding mGBA directly to the Home screen creates a smoother…
In the rapidly evolving digital landscape, platforms that prioritize security, personalization, and seamless interaction are…
Entrepreneurial burnout has become an increasingly common challenge in today’s fast-paced business landscape. Founders often…
The internet moves fast. Users expect websites to load in a blink. That is where…
Affordable object storage has become a cornerstone of modern development. From hosting static websites and…