Skip to content

Homebrew, a package manager for macOS

If you’re a regular Linux user, then you’re probably familiar with package managers like APT and RPM. Homebrew essentially brings a similar package manager to macOS. Once installed, Homebrew allows you to easily install various tools and applications from the command line – or, optionally, through a GUI application as of more recent releases. Whilst...

Neil Turner
Nov 27, 20263 min read

f you’re a regular Linux user, then you’re probably familiar with package managers like APT and RPM. Homebrew essentially brings a similar package manager to macOS.

Once installed, Homebrew allows you to easily install various tools and applications from the command line – or, optionally, through a GUI application as of more recent releases. Whilst most of the ‘casks’ (to use its terminology) that it installs are open source applications, proprietary software is also available. And, as well as using Homebrew to install software, you can also install updates as easily as you can on APT.

Whilst designed for macOS, Homebrew can also be installed on Linux, and on Windows 10 and 11 using the Windows Subsystem for Linux (WSL). However, as most Linux distros come with a package manager, and many of the ‘casks’ available to download are designed for macOS only, I imagine it’s mainly of use to macOS users.

Installing Homebrew

If you’re already comfortable using the Terminal, just open it and run this command:

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

You may want to stick ‘sudo‘ in front of that, but it’s not mandatory. This command should work on macOS, Linux and WSL. Alternatively, macOS users can download and install a package file that does the job without needing to use the command line.

Once set up, you can then just type ‘brew install [name of package]‘ to install software, and ‘brew update‘ to keep your software up-to-date.

The Homebrew GUI

As mentioned, more recent versions of HomeBrew also include a GUI application which appears as standard in your Applications folder, and in the macOS App launcher. Whilst essentially just a frontend for the command line interface, it does make installing and managing software through Homebrew easier.

It can easily show whether any of your software needs updating, and, if so, it’ll run the update commands. It can also allow you to browse software that is available to download and install.

Adopting existing software into Homebrew

If you have been a macOS user for some time before installing Homebrew, then you may have plenty of manually installed software. Even though I’ve only recently returned to the world of macOS, I still had a number of apps that I had downloaded and installed myself. If you wish, you can ‘adopt’ them into Homebrew; this means that Homebrew will handle updates for the app automatically.

This has to be done from the command line with the ‘brew adopt‘ command. There’s a bit more about it in the Tips & Tricks guide, and you can optionally install Brewmaster to audit your existing software and adopt them in bulk. By doing this, you’re less likely to be confronted with an ‘Update Available’ message when launching apps, as Homebrew can handle the updates in the background for you.

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions