30-04-2021
Homebrew Apple M1
- I recently purchased a MacBook Pro 13' with the M1 chip and transferred all my data over using a Time Machine backup. Homebrew packages are currently installed in /usr/local/opt/ but it is my understanding that they should be under /opt/homebrew for Apple Silicon Macs. How can I: Get the list of packages I currently have installed.
- Popular Mac tool Homebrew has long been used by developers and others for package management on macOS, but as we lamented in our first M1 Mac review, it didn't support Apple Silicon when Apple's new Macs first launched late last year.
MacOS Homebrew running natively on M1/Apple Silicon/ARM has partial functionality. We recommend installing into /opt/homebrew and forbid installing into /usr/local (to avoid clashing with the macOS.
homebrew_m1.sh
# 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 |
commented Nov 24, 2020 •
Run this command on your terminal to use this script: |
commented Nov 29, 2020 •
Hi Noah I don't know how to fix it, would you please give some advices? |
commented Nov 29, 2020
Homebrew Macbook M1
commented Dec 25, 2020
Utility Homebrew Finally Apple M1 Support
Homebrew For Apple M1
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment