Homebrew

Homebrew is a package manager for macOS (and Linux) that simplifies the installation of software.

Install

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

Update

Update normally.

brew update

If necessary, fetch taps and update.

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow && \
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow && \
brew update

Troubleshooting

Installation

When installing, you may see the message, "Warning: A newer Command Line Tools release is available."

Update them from Software Update in System Preferences, or run this command:

softwareupdate --all --install --force

If that doesn't show you any updates, run this:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Logging

Homebrew applications write logs here:

/opt/homebrew/var/log
Homebrew
Interactive graph
On this page
Install
Update
Troubleshooting
Installation
Logging