当前位置:网站首页>Brew source change
Brew source change
2022-06-11 03:41:00 【PostTruth】
Brew Source change
brief introduction
Homebrew Is a free and open source software package management system , To simplify macOS and linux The software installation process on the system . It has an installation 、 uninstall 、 to update 、 see 、 Search and many other practical functions , With a simple command , Package management can be realized , It's very convenient .
Homebrew There are mainly four parts : brew、homebrew-core 、homebrew-bottles、homebrew-cask.
name explain
brew Homebrew Source code warehouse
homebrew-core Homebrew Core software warehouse
homebrew-bottles Homebrew Pre compiled binary packages
homebrew-cask Provide macOS Applications and large binary files
Replace with aliyuan
# see brew.git Current source
$ cd "$(brew --repo)" && git remote -v
origin https://github.com/Homebrew/brew.git (fetch)
origin https://github.com/Homebrew/brew.git (push)
# see homebrew-core.git Current source
$ cd "$(brew --repo homebrew/core)" && git remote -v
origin https://github.com/Homebrew/homebrew-core.git (fetch)
origin https://github.com/Homebrew/homebrew-core.git (push)
# modify brew.git For aliyuan
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# modify homebrew-core.git For aliyuan
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# zsh Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc
# bash Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
# Refresh source
$ brew update
Replace with Tsinghua source
# Replace each source
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
# zsh Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc
# bash Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
# Refresh source
$ brew update
Replace with the source of China Science and Technology University
# Replace each source
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# zsh Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc
# bash Replace brew bintray Mirror image
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
# Refresh source
$ brew update
Reset to official source
# Reset brew.git Official source
$ git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
# Reset homebrew-core.git Official source
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
# Reset homebrew-cask.git Official source
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask
# zsh Comment out HOMEBREW_BOTTLE_DOMAIN To configure
$ vi ~/.zshrc
# export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx
# bash Comment out HOMEBREW_BOTTLE_DOMAIN To configure
$ vi ~/.bash_profile
# export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx
# Refresh source
$ brew update
边栏推荐
猜你喜欢

canvas+svg线条粒子动画网页背景

has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present on the requested

【ELT.ZIP】OpenHarmony啃论文俱乐部——数据高通量无损压缩方案

Pthread in the multithreaded Trilogy

The tide play power is really firepower! The first big screen cinema for young people? Cool open TV Max 86 "sudden attack

If not, use the code generator to generate a set of addition, deletion, modification and query (2)

【ELT.ZIP】OpenHarmony啃论文俱乐部——多层存储分级数据压缩

Solution to the problem of gd32f4 serial port DMA reception

Nsthread of the multithreaded Trilogy

Student online education and teaching course management system based on SSM framework
随机推荐
[elt.zip] openharmony paper Club - multi tier storage hierarchical data compression
SSL interaction process
Promise use
SQL | some indicators of the game industry
Right click PowerShell here function add
多线程四部曲之NSThread
postgresql 函数的参数为自定义类型时传参格式
实现发布订阅模式-----手撕js系列
Thinkphp3.2.3 deserialization using chain analysis
js点击太阳月亮切换白天黑夜js特效
Jscpcp L. collecting diamonds (thinking)
【ELT.ZIP】OpenHarmony啃论文俱乐部——快速随机访问字符串压缩
Benefits of declaring variables
js最常用的排序---手撕js系列
RequestContextHolder
Rhel7 switch character encoding to GBK
Understand single chip microcomputer drive 8080lcd
CheckBox美化按钮选中样式
Canvas+svg line particle animation web page background
Mavros controls UAV to conduct binocular slam in gazebo environment