当前位置:网站首页>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
边栏推荐
- RHEL7 切换字符编码为GBK
- Oppo reno6 turned sour by "inner roll"
- Run Skynet for the first time
- js点击太阳月亮切换白天黑夜js特效
- 给孩子的国学经典
- 618 coming! Can oppo reno6, which is sold through all channels with high price and low configuration, win?
- Database design specification
- Using minted to insert highlighted code in texstudio in latex environment
- Makefile |
- The dependent version number in the dependencymanagement in the POM project parent in the idea is red
猜你喜欢

OpenGL Chapter 11 multiple light sources
![[elt.zip] openharmony paper Club - electronic device software update compression](/img/d8/0a6beafc9b986f6fc61411ba09c4a2.png)
[elt.zip] openharmony paper Club - electronic device software update compression

基于SSM框架的连锁超市购物零售后台管理系统

OpenGL错误指南

Course classification tree structure display

Iqoo 8 measured hands-on experience: return of the king, never high profile

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

基于SSM的考试项目管理系统

thinkphp3.2.3反序列化利用链分析

Lvgl Chinese font production
随机推荐
If there is no separation ----- > > log interpretation (3)
TweenMax五彩小球弹跳动画
【ELT.ZIP】OpenHarmony啃论文俱乐部——数据高通量无损压缩方案
Canvas rotation drawing H5 animation JS effect
C. Jump and treat (DP + monotonic queue optimization)
SSL interaction process
If the source code of the home page module is not separated ----- > nanny level source code analysis (1)
WEB上传文件预览
难忘时刻
/The world of 10 recommended websites for learning programming has entered the era of the Internet. According to a recently released Internet trends 2016 report, China has become a leader in the Inter
Jscpcp L. collecting diamonds (thinking)
three.js炫酷科技感背景h5动画
Opencv实现纵横比保持的图像缩放
联易融一面(已过)
OpenGL Chapter 9 lighting map
The tide play power is really firepower! The first big screen cinema for young people? Cool open TV Max 86 "sudden attack
What has TCL done right to break through the technological strength of Chinese brand innovation?
Image scaling with aspect ratio preserving by opencv
Database design specification
Log4j use