Previously I have installed Homebrew rosetta version on MacOs M1, now I see HomeBrew has native version, So how do I remove HomeBrew on rosetta and install the native version. Please help me with this problem, Thanks
Asked
Active
Viewed 1.1k times
1 Answers
19
Uninstall Rosetta version of Homebrew
Run in rosetta mode inside terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Then install natively inside the terminal (without rosetta):
(with help of https://www.youtube.com/watch?v=nv2ylxro7rM)
cd /opt
sudo mkdir homebrew
sudo chown -R $(whoami) /opt/homebrew
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 are using zsh)
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
-
2Do I need to remove a path for the Rosetta one? – SeanMC Apr 17 '21 at 14:30
-
1You will not need to change the path as it will replace you automatically – Thang Apr 18 '21 at 03:35
-
1thanks, when uninstalling, at the end I get the message `The following possible Homebrew files were not deleted` ... Do I need to delete any of those? If I'm just switching to M1 version. stuff like `/usr/local/Frameworks/`, or `/usr/local/Homebrew/`, `/usr/local/bin/`, and a few others – SeanMC Apr 18 '21 at 15:36
-
I don't think _all_ these steps are necessary anymore. In particular, I was able to install Homebrew on an M1 Mac using only the install script on the Homebrew homepage. Uninstalling the Intel version first (if you have one) is still a good idea. – Sagar May 16 '21 at 06:38
-
1How to remove Intel brew when I've installed the M1 one? – ospider Dec 02 '21 at 07:25