Mac使用Homebrew安装软件

1. homebrew

从下载源码解压然后./configure && make install,同时会包含相关依存库,并自动配置。

1.1 安装

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

1.2 常用命令

brew search
brew search wget
brew info wget

brew install wget
brew uninstall wget
brew upgrade wget

brew list                # 本机已装软件
brew update              # 更新brew软件自身
brew cleanup             # 清除下载的各种缓存

2. brew cask

已经编译好了的应用包(.dmg/.pkg),仅仅是下载解压,放在统一的目录中(/opt/homebrew-cask/Caskroom)

2.1 安装

brew tap phinze/homebrew-cast
brew install brew-cast

2.2 常用命令

brew cask search
brew cask search qq
brew cask info qq

brew cask install qq
brew cask uninstall qq

brew cask list   
brew cask cleanup       

3. 常用软件

brew install redis
brew install mangodb
brew install nginx

brew cask install rdm
brew cask install iterm2

你可能感兴趣的:(Mac使用Homebrew安装软件)