brew安装(需要 Ruby):
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew命令
brew –help —查看brew的帮助
brew install git —安装软件
brew uninstall git —卸载软件
brew search git —搜索软件
brew list —显示已经安装软件列表
brew update —更新brewhome本身以及所有软件,把所有的Formula目录更新,并且会对
本机已经安装并有更新的软件用*标明
brew upgrade git —更新某具体软件
brew outdated —查看那些已安装的程序需要更新
brew [info | home] [FORMULA…] —查看软件信息
brew cleanup git —清理不需要的某软件版本及其安装包缓存
brew cleanup —清理所有不需要的版本及其安装包缓存brew list —列出已安装的软件
brew update —更新Homebrew
brew home —用浏览器打开
brew deps — 显示包依赖
brew server —启动web服务器,可以通过浏览器访问http://localhost:4567/ 来同网页来管理包
brew cask全家桶
brew cask audit verifies installability of Casks
brew cask cat dump raw source of the given Cask to the standard output
brew cask create creates the given Cask and opens it in an editor
brew cask doctor checks for configuration issues
brew cask edit edits the given Cask
brew cask fetch downloads remote application files to local cache
brew cask home opens the homepage of the given Cask
brew cask info displays information about the given Cask
brew cask list with no args, lists installed Casks; given installed
Casks, lists staged files
brew cask outdated list the outdated installed Casks
brew cask style checks Cask style using RuboCop
brew cask uninstall uninstalls the given Cask
brew cask upgrade upgrades all outdated casks
brew cask zap zaps all files associated with the given Cask
brew cask install ––安装软件
brew cask reinstall ––重装软件,等同于升级brew upgrade
常用插件及app
$ brew install caskroom/cask/brew-cask
$ brew update && brew upgrade brew-cask && brew cleanup // 更新
# 预览插件
$ brew cask install qlcolorcode
$ brew cask install qlstephen
$ brew cask install qlmarkdown
$ brew cask install quicklook-json
$ brew cask install qlprettypatch
$ brew cask install quicklook-csv
$ brew cask install betterzipql
$ brew cask install webp-quicklook
$ brew cask install suspicious-package
# app
$ brew cask install alfred
$ brew cask install appcleaner
$ brew cask install cheatsheet
$ brew cask install dropbox
$ brew cask install google-chrome
$ brew cask install onepassword
$ brew cask install sublime-text
$ brew cask install totalfinder