21 0

Mac utility Homebrew finally gets native Apple Silicon and M1 support

It made me so proud to own a Canon product, because they released this tool quickly in the absence of webcams – if you remember, there was a shortage due to work from home restrictions. But Canon has long forgotten about this useful utility, despite the outpouring of requests from users. Let’s try to limit this to only one Intel-based application – OBS. One of the most popular macOS utilities has been updated with Apple Silicon support today.

Now, the package manager is natively supported — though the team notes that it doesn’t yet provide bottles for all packages. Popular macOS package management utility Homebrew has officially added support for Apple Silicon in its latest release. Predicating on processor architecture (e.g. to fence off formulae code for arch-specific behavior) was already present. While the code for universal binaries did get removed, this arch-selection functionality was mostly kept. Homebrew already officially supports x86_64 Linux (and unofficially, aarch64/ppc64 Linux) so I guess it made sense to keep that. Homebrew’s internals haven’t changed too much for this; internally, Apple Silicon running Big Sur is as distinct from Intel running Big Sur as much as Catalina is from Mojave .

First, enable Rosetta on Terminal, install the ffi gem as documented above, then you can disable Rosetta. After installation, enter speedtest-cli in the Terminal to run this command. Now that you have installed Homebrew, let’s see how to use it. Once you satisfy the above requirements, see how to install Homebrew on macOS.

Since this was initially a migration from an x86_64-based model to the new M1, I simply used my old system to restore my previous environment and applications to the new MacBook Pro. This was great with a few exceptions (some which I wouldn’t quite realize until later). I just like to mention that the Eclipse IDE has been provided a version for this architecture since December 2021. The performance of the laptop is excellent, and a huge productivity boost as my Java builds, and tests run faster compared to an x64 Mac. I still keep my old Ubuntu desktop PC around as there are occasionally tasks where I need a good old x64 machine. To further verify the compatibility and optimization for various other tools for Apple’s M1, checkout out isapplesiliconready.

For our example, we were using fabric8/java-alpine-openjdk11-jre as the base image. Unfortunately, this image only supports linux/amd64 (i.e. x64) and hence we had to replace it with a JRE base image that supports all platforms we want to build our image for. Homebrew is a popular is jon jones in mortal kombat movie utility for package management on macOS. It allows users to simply install open source software and packages to the Mac operating system using the Terminal. The Homebrew team added support for M1 and future Apple Silicon chips in version 3.0.0, which they announced on Friday.

Finally, to check a Docker container, you can run the uname -m command to determine the hardware architecture for the container’s operating system. The command will return aarch64 for ARM64 or x86_64. Thenamefield you can be anyname you prefer (I named it with my name ‘Henry’, we will need to use this name later). In theIdentity Type andUser Certificatefields, selectLeafandCode Signingfrom the options respectively. Also, check theLet me override defaultsbox just below. By default, your newly installed MySQL server is using default settings, but if you prefer a fast database, you can fine-tune it and change the parameters.

Thus, the next step is to install Homebrew on your Mac, which will then allow you to easily install QEMU. The VHDX extension stands for Virtual Hard Disk v2. VHDX is a disk image format that’s capable of storing the contents of a hard disk drive. VMware Fusion cannot natively read VHDX files so it will need to be converted to a Virtual Machine Disk, or VMDK. The good news is that converting a VHDX to VMDK can be done easily using QEMU. Interestingly enough, the VMware Fusion Technical Preview also works on Intel Macs, but you’ll of course need to download the x86_64 version of Windows in order to do that.

That’s the largest consumer-facing ARM Linux effort out there, on top of distros that run on Raspberry Pi and smaller developer boards. Along similar lines XQuartz had it’s first release in ~5 years very recently and now supports the M1 in the beta’s for v2.8. Now just need option for more RAM, which is the other big thing holding me back. The new HOMEBREW_BOOTSNAP environment variable allows the use of the Bootsnap gem to speed up repeated brew calls.