Homebrew basics: install Mac software with one command

What Homebrew is and how to install it, the commands you’ll use most, installing apps as a standard user, running software in the background, and some cautions.

Updated Dec 2, 2026

Homebrew basics: install Mac software with one command

01What Homebrew is

Homebrew is the most widely used software manager on the Mac. To install something, you do not hunt for an installer online and click Next over and over; you type one command in Terminal and it is installed. Updating and uninstalling are one command each too. Common developer tools (Git, Node, Python, tmux and so on) and many everyday apps can be installed with it.

02How to install it

On your own Mac, open Terminal and run this command from the official website:

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

  • On a Mac with Apple silicon it installs to /opt/homebrew. Homebrew currently requires Apple silicon and macOS 15 or later.
  • When it finishes, follow the last instructions on screen to add it to your terminal’s path, then run brew --version to check.

Homebrew is already installed on a NexMini Mac. Your account can install software with brew install right away, without sudo and without asking us.

03The most common commands

Based on the official Homebrew documentation. Replace NAME with the software name, for example tmux.
CommandWhat it does
brew search NAMECheck whether the software is available
brew install NAMEInstall a command-line tool
brew install --cask NAMEInstall an app with a graphical interface
brew listSee what is installed
brew upgradeUpdate everything you installed to the latest version
brew uninstall NAMEUninstall
brew cleanupRemove old versions and the download cache to free up space
brew doctorCheck Homebrew for problems

04Installing apps with a graphical interface

Apps installed with --cask go into the system Applications folder by default, which needs administrator rights. With a standard account, add --appdir to install into your own Applications folder:

brew install --cask --appdir="$HOME/Applications" NAME

A few apps need administrator rights to install no matter what (for example, ones that come as a .pkg installer). If you run into one on a NexMini Mac, contact us and we will install it for you.

05Keeping software running in the background

Software that needs to stay on, such as a database, can be managed with brew services. Without sudo, it starts automatically after you log in:

brew services start NAME

To stop it, use brew services stop NAME. To check the status, use brew services list.

06A few things to keep in mind

  • Do not put sudo in front of brew. The official docs say this lets Homebrew run any code with the highest privileges, which is not safe.
  • Homebrew is designed to be managed by one account. If a Mac has several accounts, run brew commands from only one of them.
  • Run brew upgrade and brew cleanup every so often. Your software stays up to date, and old versions do not fill up the disk.