when someone abandons you,it is him that gets loss because he lost someone who truly loves him but you just lost one who doesn’t love you.
在 mac 上学习使用 docker 时的一个小插曲
第一步,安装 docker,因为是在 mac 上,所以能用 brew 管理软件就想着尽量都用它进行管理,方便后续升级等等,在这个找安装资料的过程中,发现了 brew cask,并且很多资料都用了它,好巧不巧,直接 brew install docker 以后竟然无法运行 docker,这个问题后面找到方法了再解决
那么 brew 和 brew cask 有什么区别呢?
引用 Homebrew Cask github 库上 readme 中第一段话:
“To install, drag this icon…” no more!
Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Atom and Google Chrome.
We do this by providing a friendly CLI workflow for the administration of macOS applications distributed as binaries.
从上面这段话中不难看出,brew cask 是安装带界面的程序的,是已经编译好了的应用包(.dmg/.pkg),仅仅是下载解压,省掉了自己去下载、解压、拖拽(安装)等步骤,同样,卸载相当容易与干净,且包含很多在 AppStore 里没有的常用软件。
而 brew 是从下载源码解压然后 ./configure && make install ,同时会包含相关依存库。并自动配置好各种环境变量,而且易于卸载,就好比是 debian 上终端里的 apt,负责的是 command line tool
be slow to promise and quick to perform.