Homebrew为Mac OS X提供了非常方便的软件安装方式,解决了包的依赖问题,不再需要烦人的sudo,一键式编译,无参数困扰。
由于Homebrew的安装方式可能变化,请到官方网站查看最新的方法和文档。
安装Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew doctor
brew update
brew list
brew search wget
brew install wget
brew outdated
brew upgrade
brew upgrade wget
brew uninstall wget --force
brew info wget
brew deps wget
brew update
brew doctor
通常OS X下二进制软件是通过App Store安装的,homebrew-cask是一个基于HomeBrew的软件安装程序,使用homebrew-cask可以在命令行下安装软件包,相对Mac App Store,还有一些优势:
homebrew-cask和Homebrew的区别:
brew tap phinze/cask
brew install brew-cask
列出所有可以被安装的软件:
brew cask search
brew cask search drop
brew cask info thunder
brew cask uninstall qq
brew cask list
brew update && brew upgrade brew-cask
brew cask uninstall APP && brew cask install APP
brew cask install alfred
brew cask install qq
brew cask install skype
brew cask install thunder
brew cask install mplayerx
brew cask install evernote
brew cask install skitch
brew cask install dropbox
brew cask install google-chrome
brew cask install mou
brew cask install iterm2
brew cask install sublime-text