MacBook安装Wget

推荐方法:brew install wget

步骤

1、安装brew和brew-core

$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

$ git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

$ git clone git://mirrors.ustc.edu.cn/homebrew-cask.git//usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --depth=1

2、修改brew repo

$ cd "$(brew --repo)"

$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

$ brew update

3、安装wget

$ sudo chomd -R $(whoami) /usr/local

$ brew install wget

猜你喜欢

转载自www.cnblogs.com/teezzy/p/12284302.html