Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Homebrew run on Apple ARM processors?

I ordered a MacBook Pro equipped with an M1 ARM processor. Will I be able to run Homebrew and install dev tools like Python, Node etc..?

like image 877
Licx Avatar asked Nov 11 '20 17:11

Licx


People also ask

Does Homebrew run on Apple silicon?

One of the reasons Homebrew has become so popular is that it just works right out of the box, and installing in /usr/local/bin is at least part of the reason why. But if you install Homebrew on an M1 Mac running Apple Silicon, then Homebrew gets installed in /opt/homebrew/bin .

Does Apple support Homebrew?

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's operating system, macOS, as well as Linux.

Does Apple use ARM processor?

Since 2020, Apple has been working to transition away from Intel chips, instead using its own Apple silicon chips. Apple's custom chips are Arm-based and are similar to the A-series chips used in iPhones and iPads, and Apple unveiled the first Apple silicon Macs in November 2020.

Is Apple a ARM or x86?

Essentially, ARM (which the M1, iPhone, iPad, and Apple Watch chips use) and x86 (used by Intel) are two different kinds of processor architectures. If that sounds complicated, it's because it is – so don't worry!


3 Answers

As said here, They will do more support on ARM CPU's

But, as said here and more specifically here:

Homebrew can run on 32-bit ARM (Raspberry Pi and others) and 64-bit ARM (AArch64), but no binary packages (bottles) are available. Support for ARM is on a best-effort basis. Pull requests are welcome to improve the experience on ARM platforms.

You may need to install your own Ruby using your system package manager, a PPA, or rbenv/ruby-build as we no longer distribute a Homebrew Portable Ruby for ARM.

like image 142
William Brochensque junior Avatar answered Sep 20 '22 21:09

William Brochensque junior


Yes. Now Homebrew fully supports Apple Silicon https://brew.sh/2021/02/05/homebrew-3.0.0/

like image 35
Licx Avatar answered Sep 16 '22 21:09

Licx


Yes, it's supported but using Rosetta. Just put this prefix before the install homebrew command

arch -x86_64

the final command should look like this (from https://brew.sh)

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

And every time you use brew you would have to use it with the prefix above.

Option 2: There is an alternative, opening your terminal using Rosetta. I have not tried it but should give the same results without using the prefix.

enter image description here

like image 36
Pablo Johnson Avatar answered Sep 17 '22 21:09

Pablo Johnson