Install the Homebrew package manager. This will allow you to install almost any app from the command line.
Run this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On Apple Silicon machines, there’s one more step. Homebrew files are installed into the /opt/homebrew
folder. But the folder is not part of the default $PATH
. Follow Homebrew's advice and create a ~/.zprofile
file which contains a command which sets up Homebrew.
Homebrew shows instructions at the end of the installation process:
# add homebrew to your PATH in ~/.zprofile:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
After you’ve installed Homebrew, check that Homebrew is installed properly.
brew doctor
You should see:
Your system is ready to brew.
Make sure everything is up to date.
brew update