Remove Intel brew on macOS Monterey (macOS 12) #2408
-
On Macbook Pro 2020 with Apple M1, I have a copy of Intel homebrew migrated from my old Macbook, so I followed the official instruction at the time to install a separate copy of M1 homebrew, and alias the Intel copy to I updated to macOS Monterey last week, and today I've found out that
The reason is simple enough: my Intel copy of homebrew is never updated, and it cannot handle the new version number. I am not sure if I can still update it. I have moved to use the M1 brew mostly, and my Intel brew has caused some linking errors, so I want to remove it completely, but without running it I don't know how to remove it. How may I remove my Intel homebrew now? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
You can use the uninstall script at https://github.com/Homebrew/install#uninstall-homebrew. You don't want to run the snippet shown there (that will likely uninstall your |
Beta Was this translation helpful? Give feedback.
-
(But updating is not necessary if you are planning to uninstall.)
It will show what paths it is removing (it should be the ones under |
Beta Was this translation helpful? Give feedback.
You can use the uninstall script at https://github.com/Homebrew/install#uninstall-homebrew. You don't want to run the snippet shown there (that will likely uninstall your
/opt/homebrew
installation). Instead, you want to download the script, make it executable, then run it with the flag--path=/usr/local
. You may need to run it withsudo
.