Homebrew

Homebrew

homebrew,Mac software package manager,Domestic source installation

Visit Site →

Homebrew Official Website, Mac Software Package Manager, Install from Domestic Sources

What is Homebrew?

In short, it's an app store, similar to the software manager on Windows (not the security manager, which only manages software installation and deletion). The official definition is: a package manager for macOS that fills in the missing software packages.

Homebrew Official Website:https://brew.sh/

Homebrew Domestic Mirror

  • Tsinghua University Mirror
  • https://mirrors.tuna.tsinghua.edu.cn/help/homebrew
  • University of Science and Technology of China Mirror
  • http://mirrors.ustc.edu.cn/help/brew.git.html

Homebrew is a free and open-source package management system designed to simplify the software installation process on macOS and Linux systems. It offers many practical features such as installation, uninstallation, updates, viewing, and searching. With a simple command, you can manage packages, which is very convenient and fast.

HomebrewIt consists of mainly four parts:brew,homebrew-core,homebrew-bottles,homebrew-cask.

Name Description
brew Homebrew Source Code Repository
homebrew-core Homebrew Core Software Repository
homebrew-bottles Homebrew Precompiled Binary Software Packages
homebrew-cask Provide macOS Applications and Large Binary Files

HomeBrew Installation

/bin/zsh -c"$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Recommended: Chinese Academy of Sciences

Uninstall

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

HomeBrew Change Source

University of Science and Technology of China (Recommended)

git -C"$(brew --repo)"remoteset-url origin https://mirrors.ustc.edu.cn/brew.gitgit -C"$(brew --repo homebrew/core)"remoteset-url origin https://mirrors.ustc.edu.cn/homebrew-core.gitgit -C"$(brew --repo homebrew/cask)"remoteset-url origin https://mirrors.ustc.edu.cn/homebrew-cask.gitbrew update
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles' >>~/.bash_profilesource~/.bash_profile

Aliyun

cd "$(brew --repo)"git remoteset-url origin https://mirrors.aliyun.com/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remoteset-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.gitbrew update

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >>~/.bash_profilesource~/.bash_profile

Tsinghua University

git -C"$(brew --repo)"remoteset-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.gitgit -C"$(brew --repo homebrew/core)"remoteset-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.gitgit -C"$(brew --repo homebrew/cask)"remoteset-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.gitbrew update
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles' >>~/.bash_profilesource~/.bash_profile

Tencent

git -C"$(brew --repo)"remoteset-url origin https://mirrors.cloud.tencent.com/homebrew/brew.gitgit -C"$(brew --repo homebrew/core)"remoteset-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-core.gitgit -C"$(brew --repo homebrew/cask)"remoteset-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-cask.gitbrew update