Homebrew 配置

安装

说明:修改源,步骤相同

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

本文链接:参与评论 »

--EOF--

提醒:本文最后更新于 768 天前,文中所描述的信息可能已发生改变,请谨慎使用。

Comments