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
Copyright © 2024 Primzahl. All rights reserved.