# Homebrew ###### tags: `Mac` `Homebrew` http://mt116.blogspot.com/2017/11/homebrew.html https://shockerli.net/post/macos-homebrew-manual/ ## 安裝brew,用macOS的ruby安裝brew ``` $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" //安裝brew $ brew update //更新電腦上全部的 Formulae $ brew upgrade //更新所有已安裝的套件 $ brew help $ brew -v $ brew cleanup //清除舊的package ``` ## package ``` $ brew install [套件名] $ brew uninstall [套件名] $ brew list $ brew search [套件名稱] $ brew info [套件名稱] $ brew upgrade //更新所有package $ brew upgrade [包名] //更新指定的package $ brew outdated //查詢可更新的包 ``` ## brew cask 安裝有GUI的套件 ``` $ brew cask install [套件名] $ brew cask uninstall [套件名] 已經改變了 // Calling brew cask list is deprecated! Use brew list --cask instead. $ brew list --cask // 也可以用 brew cask list ``` ## brew vs brew cask * brew cask是已經編譯好了的應用包(.dmg/.pkg) * brew 是從下載原始碼解壓然後./configure && make install,同時會包含相關依存庫。並自動配置好各種環境變數,而且易於解除安裝
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up