在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
方便不方便只有試了才知道