Skip to content

Mac - Installing Homebrew

To install Homebrew on a Mac:

  1. Ensure you have administrative access on your computer.

  2. From the terminal, run the following command:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  3. Run the following command to add Homebrew to your PATH and source the rc file:

    if [[ "$SHELL" == *zsh ]]; then SDE_SHELL_PROFILE=$HOME/.zshrc; else export SDE_SHELL_PROFILE=$HOME/.bash_profile; fi
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)" # Set PATH, MANPATH, etc., for Homebrew.' >> $SDE_SHELL_PROFILE
    eval "$(/opt/homebrew/bin/brew shellenv)"
    

Additional resources

Homebrew documentation