Skip to content

Instantly share code, notes, and snippets.

@MilkSjeik
Forked from nrubin29/homebrew_m1.sh
Created December 26, 2020 12:54
Show Gist options
  • Save MilkSjeik/379bd88fabb07cd98d4fad631a7c2aff to your computer and use it in GitHub Desktop.
Save MilkSjeik/379bd88fabb07cd98d4fad631a7c2aff to your computer and use it in GitHub Desktop.
Install Native Homebrew on Apple Silicon M1
# We'll be installing Homebrew in the /opt directory.
cd /opt
# Create a directory for Homebrew. This requires root permissions.
sudo mkdir homebrew
# Make us the owner of the directory so that we no longer require root permissions.
sudo chown -R $(whoami) /opt/homebrew
# Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation.
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
# Add the Homebrew bin directory to the PATH. If you don't use zsh, you'll need to do this yourself.
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment