安装
说明:修改源,步骤相同
1) ~/.zshrc
中添加以下内容
export HOMEBREW_BREW_GIT_REMOTE=https://mirrors.aliyun.com/homebrew/brew.git
export HOMEBREW_CORE_GIT_REMOTE=https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 阿里云常年不更新,故设置为中科院的源
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export PATH="/usr/local/sbin:$PATH"
2) 执行安装命令
source ~/.zshrc
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
3) 设置 cask 镜像地址
brew tap --custom-remote --force-auto-update homebrew/cask https://mirrors.aliyun.com/homebrew/homebrew-cask.git
本文链接:https://blog.xiaoyuyu.cn/post/homebrew-setup.html,参与评论 »
--EOF--
发表于 2022-04-07 13:59:00。
本站使用「署名 4.0 国际」创作共享协议,转载请注明作者及原网址。更多说明 »
提醒:本文最后更新于 1072 天前,文中所描述的信息可能已发生改变,请谨慎使用。
Comments