初识homebrew

homebrew是MAC上的一个包管理工具,用于软件安装,非常方便。

homebrew安装:

命令行执行:

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

brew doctor ——检查是否成功安装

常用命令如下:

brew install software安装

brew search software搜索

brew uninstall卸载

brew update更新所有软件

brew upgrade software更新具体软件

brew list显示已经安装软件

brew info/home software查看软件信息

brew outdated查看哪些需要更新

brew deps software显示依赖包

openssl安装-例子

➜ ~ openssl version

OpenSSL 0.9.8zh 14 Jan 2016

➜ ~ which openssl

~/usr/bin/openssl

➜ ~brew install openssl

➜ ~ln -s /usr/local/Cellar/openssl/1.0.2l/bin/openssl /usr/local/bin/openss

enSSL 1.0.2l 25 May 2017

➜ ~ openssl version

OpenSSL 1.0.2l 25 May 2017

➜ ~ which openssl

/usr/local/bin/openssl

参考:

openssl安装:http://www.liuchungui.com/blog/2016/05/10/mac10-dot-11sheng-ji-an-zhuang-openssl/

相关推荐