在 mac 上利用 homebrew 安裝軟件


在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

方便不方便只有試了才知道

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM