Homebrew is a package manager—software that automates the download, installation, and updates of programs on your computer. If you use a Mac or Linux system, Homebrew simplifies what would otherwise be a manual, technical process. This guide walks you through the installation itself and explains what happens once Homebrew is on your system.
Homebrew lets you install, update, and remove software from the command line—a text-based interface on your computer. Instead of hunting for download links, managing versions, or manually tracking updates, you type a single command. For example, installing a programming tool or utility that isn't in your system's app store becomes straightforward.
This is most useful if you:
If you rarely use the terminal or prefer graphical app stores, Homebrew may not be necessary for your workflow.
For Mac:
For Linux:
You'll also need the command line open—the Terminal app on Mac or a terminal emulator on Linux. If you've never opened Terminal before, search for it in your Applications folder (Mac) or application menu (Linux).
Locate Terminal in your Applications > Utilities folder, or press Command + Space, type "terminal," and press Enter.
On the official Homebrew website (brew.sh), you'll find a single command. Copy it exactly—it's a long line that starts with /bin/bash -c. Paste it into Terminal and press Enter.
The script will:
Installation takes a few minutes. When it completes, Terminal will display a success message. To confirm Homebrew is working, type brew --version and press Enter. You should see a version number.
Use your system's application menu or press Ctrl + Alt + T (varies by distribution).
The Homebrew website provides a single-line command. Paste it into Terminal and press Enter. On Linux, you may be prompted for your password.
The process is similar to Mac—Homebrew installs itself and sets up the necessary folders.
After completion, type brew --version to verify it worked.
Once installed, you can install software. For example:
Homebrew will handle downloading, installation, and setup automatically.
To update everything you've installed, use brew upgrade. To remove software, use brew uninstall [name].
| Factor | What It Means for You |
|---|---|
| Internet speed | Larger programs may take longer to download |
| Available disk space | Homebrew and programs require space; check before installing multiple applications |
| Administrator access | You'll need it to complete installation and system-wide software setup |
| Mac version or Linux distribution | Some packages work only on certain versions; Homebrew will warn you if incompatible |
| Command-line comfort | New users may need more time to familiarize themselves with terminal syntax |
"Command not found" after installation: Your system may not recognize Homebrew's location yet. Close Terminal completely and open a new window—this usually refreshes the system's path.
Installation stalls or shows an error: Network interruptions or missing prerequisites (like Xcode Command Line Tools on Mac) can cause this. Running the installation command again often resolves it.
Permissions errors during package installation: Some packages require administrator approval. Use sudo brew install [package] (with your password) if prompted, though this isn't necessary for most installations.
Installing Homebrew is straightforward, but whether it's right for you depends on:
The installation itself takes 5–10 minutes. You can always uninstall it later if you find it unnecessary for your workflow. The real evaluation is whether the programs you want to use require or benefit from Homebrew management.
