hw-1

brew ghcr.io/v2 404

brew ghcr.io/v2 404

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

# 1.执行安装脚本
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
# 2.安装完成后设置
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/' >> ~/.bash_profile
source ~/~/.bash_profile

cd $(brew --repo); git fetch; git reset --hard origin/master
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"; git pull https://github.com/Homebrew/homebrew-core
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"; git pull https://github.com/Homebrew/homebrew-cask

brew update-reset