brew 命令
brew 又叫 Homebrew,是 MacOS 上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件。
brew 类似 ubuntu 系统下的 apt-get 的功能。
brew 官方网站:http://brew.sh
安装:官网主页提供了非常方便的安装命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
命令使用
brew install telnet # 安装 telnet
brew uninstall telnet # 卸载 telnet
brew search telnet # 搜索telnet ;还可以使用正则表达式,表达式要包含在/ /之中
brew search /tel*/ # 使用正则表达式
brew list # 列出已安装的软件
brew update # 更新brew
brew info # 显示软件信息
brew deps # 显示依赖包