Macbook M1 Homebrew



  1. Homebrew For Mac M1
  2. Macbook M1 Homebrew Software
  3. Apple M1 Homebrew Github

目前 Homebrew还没有完成对搭载Apple Silicon CPU的Mac机型完成适配,安装教程也比较混乱,所以我整理这篇文章,希望能帮到大家。关于进度的信息可以浏览 GitHub上的说明。本文简单介绍了 M1芯片Mac上安装Homebrew. Apr 06, 2021 Homebrew is an open-source package manager for macOS that offers an easy way to install software and tolls through the command line. If you are a coder, developer, Terminal lover, or more tech-savvy than an average Mac user, you can use Homebrew to simplify software installation on your Mac.

Docker, a popular multi-platform application used by software developers, has released a version that runs natively on Apple Silicon hardware, including Macs released with Apple's custom-designed M1 chip.

The M1 chip uses the ARM instruction set and cannot natively run software that was designed to run on the x86 architecture that the Intel processors in previously released Macs used. Though the previous version of Docker did work via Apple's Rosetta solution, the introduction of an M1-native version of Docker contributes to a closing gap for developers concerned about running their entire suite of tools in an optimal way.

It follows the release of M1 versions of Homebrew, Visual Studio Code, and other developer tools and applications. But some gaps remain—for example, Microsoft's Visual Studio 2019 IDE (which is distinct from the comparatively lightweight Visual Studio Code) has not been updated.

Docker achieved popularity among developers because it enabled relatively easy use of containers, wherein multiple applications could be developed and tested on a single machine, sharing the operating system's kernel without interfering with one another.

The public release of the Apple Silicon version of Docker Desktop for Mac was installed 45,000 times in a technical preview, and Docker's press release says that developers participating in that preview said the application ran 'faster and quieter' than it did before the M1 update. The press release included the following statement from Docker Captain Ajeet Singh Raina:

Advertisement

To the many developers eager to know if they can use the latest Macs as a dev machine with Docker, the wait is over... Docker Desktop for Mac [Apple Silicon] will let you do everything you’ve been able to do on a Mac already, and you’ll be able to do it faster and with less noise.

A blog post on the Docker website says that M1 support 'quickly became by far our most upvoted roadmap item ever' after it was first requested.

That said, Apple has only released a few Macs that include the M1, and all of them are lower-end machines with limitations like low maximum RAM configurations, support for only one external monitor at a time, and fewer Thunderbolt ports than high-end machines that still have Intel chips—meaning most of the Apple Silicon Macs that would be most suitable for developers have yet to be released.

When they are, they might not have the M1 but may instead feature related chips with performance or feature improvements over the M1. There's no reason to expect that the changes made to Docker and other M1-native software won't work just as well on that new chip, should it arrive.

The full release notes for Docker Desktop 3.3.1 with Apple Silicon support can be found at the Docker Docs website.

Homebrew

Homebrew For Mac M1

Every developer knows about the Homebrew package manager that makes it really easy to install, update applications, and utilities on a Mac. The installation of homebrew remains the same for the new macOS version BigSur, but we will explain how to it anyway in this article.

Note for ARM processors users

If your Mac uses the Apple Silicon (M1 Chip), you will have a problem with the installation till the date of publication of this article. You can read in this another article how to solve the issue of Homebrew that doesn't run on the M1 chip.

If your processor has an Intel-based processor, then you can follow the tutorial without any inconvenience (which is short anyway).

Installing Homebrew

Pro

Start by opening the Terminal and start the homebrew setup by simply downloading the installation script of homebrew with curl and then running it with bash. You can easily do this with a single command like this:

Macbook M1 Homebrew Software

The installation script does a variety of stuff as setting the installation directory and so on. After running the command, the terminal will probably prompt for your password if it's required. Then, the installation will take a while and once it finishes, you can easily verify if it works running the following instruction:

Apple M1 Homebrew Github

The command should generate the following output:

Happy coding ❤️!