1、安装Homebrew
将如下命令粘贴至终端运行:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
或者可以直接登录网站:https://brew.sh/index_zh-cn.html,会有提示如何安装。
2、基本使用
(1)安装软件
# brew install PKG_NAME brew install tmux
(2)搜索软件
# brew serarch PKG_NAME brew search wget wget wgetpaste
(3)查看软件信息
# brew info PKG_NAME brew info wget
(4)卸载软件
# brew uninstall PKG_NAME brew uninstall wget
3、更新Homebrew
brew update
4、卸载Homebrew
将如下命令粘贴至终端运行即可卸载Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
5、官方FAQ
Reference:
http://www.jianshu.com/p/d229ac7fe77d
时间: 2024-10-06 20:09:50