MacBook安装Wget

筅森魡賤 提交于 2020-02-08 18:28:54

推荐方法: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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!