HomeBrew & HomeBrew Cask

1.安装

依赖xcode或Command Line Tools for Xcode

xcode-select --install

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

在线查看package:http://braumeister.org/

2.常用命令

brew install pkg-name

brew search pkg-name

brew uninstall pkg-name

brew list           列出已安装的软件

brew update

brew home           用浏览器打开brew的官方网站

brew info           显示软件信息

brew deps           显示包依赖

brew search         显示所有可安装的包

文件安装目录:/usr/local/Cellar

3.安装Homebrew cask (“To install, drag this icon…” no more!)https://caskroom.github.io/

brew install caskroom/cask/brew-cask

brew cask search name

brew cask install name

brew cask uninstall name

brew cask search

文档:https://github.com/caskroom/h…

    原文作者:Zhuxy
    原文地址: https://segmentfault.com/a/1190000006868047
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞