在mac经常需要安装一些软件,你可以通过app store下载,或者可以通过浏览袭搜索下载。这里介绍通过homebrew安装一些软件,它会自动为你下载一些软件的相关依赖,免去安装的烦恼。
首先我们需要安装brew,复制如下内容,在terminal中执行,等待安装完成
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装成功提示,部分截取
==> Downloading and installing Homebrew...
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
homebrew链接 http://brew.sh.
之后我们就可以用brew install xx 来安装软件了。 比如:
brew install git
brew install wget
brew install zsh
方便不方便只有试了才知道