Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two 'Homebrew' on my mac; one in opt and one in local. How do I delete one?

I bought a new Mac Studio to replace my old (2013) Mac Pro. I used Homebrew for programming for school; I'm over 75 but I'm going to school (ece) for fun. Thinking it would be a good idea to install a Homebrew for the Apple chipset, I installed Homebrew. But instead of overwriting my old version, it installed a new version in /opt . The old was in /usr/local/bin . How do I delete the old install? Somehow I think having two 'brew's is not a god idea.

I've tried nothing so far. I don't think rmdir -pv on /usr/local/bin/brew would be sufficient. Especially as I don't know where Homebrew store everything and I might end up deleting something I need and don't know I need it.

like image 648
LarryS Avatar asked Oct 18 '25 13:10

LarryS


1 Answers

The Homebrew installation under /usr/local is for Intel and the installation under /opt/homebrew is for M1.

If you want to remove the Intel installation, you can download the official uninstall script. Make it executable with:

chmod +x uninstall.sh

and run it on the Intel installation with:

./uninstall.sh --path=/usr/local
like image 78
Ortomala Lokni Avatar answered Oct 22 '25 06:10

Ortomala Lokni