Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to solve the problem of slow installation of brew in domestic Mac

Shulou Source: shulou.com Published: 2022-06-02 07:42:18 10月04日 Update

This article introduces the relevant knowledge of "how to solve the problem of slow installation of brew in domestic Mac". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, get the install file

Take down the script given by the official website.

Curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install > > brew_install

Second, change the resource link in the script

Here I replace it with the mirror image of Tsinghua University, and modify the following two sentences:

BREW_REPO = "https://github.com/Homebrew/brew".freeze

CORE_TAP_REPO = "https://github.com/Homebrew/homebrew-core".freeze

Change it to these two sentences

BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze

CORE_TAP_REPO = "https://mirrors.ustc.edu.cn/homebrew-core.git".freeze

It can also be exchanged for someone else.

Run the script

/ usr/bin/ruby brew_install

This is the end of the content of "how to solve the problem of slow installation of brew in domestic Mac". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Scripts speed questions content more knowledge practicality success next dilemma university reality situation documents articles cases editing websites industries resources Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Apple MySQL Linux