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/