Apple M1版macOS安装brew

 1 sudo mkdir -p /opt/homebrew
 2 sudo chown -R $(whoami) /opt/homebrew
 3 cd /opt
 4 curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
 5 vim ~/.zshrc
 6 # 末尾追加
 7 export BREW_HOME=/opt/homebrew
 8 export PATH=$PATH:$BREW_HOME/bin
 9 source ~/.zshrc
10 # 安装软件 需要加-s 表示使用源码编译安装
11 brew install -s wget

 

posted @ 2021-07-20 13:03  JeromePowell  阅读(709)  评论(0编辑  收藏  举报