HomeBrew/brew cask常用操作

weixin_33890499發表於2017-03-22

title: HomeBrew/brew cask常用操作
date: 2017-03-20 16:11:21
tags: 命令


brew

又叫Homebrew,是Mac OSX上的軟體包管理工具, 只需要一個命令,就能在Mac中安裝或者解除安裝軟體。

Smiths-iMac:~ smithcool$ brew --help
Example usage:
  brew search [TEXT|/REGEX/]
  brew (info|home|options) [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...] //列出已知

Troubleshooting:
  brew config
  brew doctor
  brew install -vd FORMULA

Developers:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
  http://docs.brew.sh/Formula-Cookbook.html

Further help:
  man brew  //檢視詳情
  brew help [COMMAND] 檢視幫助命令
  brew home  //進入官方主頁

Brew cask:

The missing package manager for macOS
命令安裝MacOS上面的應用,基本上所有的市面上的軟體都可以通過它進行查詢安裝管理,brew cask 是已經編譯好了的應用包,使用方法與brew一致