What does linking/unlinking with Homebrew mean?

馋奶兔 提交于 2020-01-01 04:04:47

问题


What does it mean to link/unlink something with Homebrew?


回答1:


It symlinks the installed package (located in /usr/local/Cellar) to /usr/local.

So when you type for example:

$ <name-of-binary>

in your terminal (ex. $ rvm), then the package installed via brew is run.




回答2:


It creates a symlink from packages installed in Cellar (regular packages installed with homebrew will already be linked).

What this also does is allow the symlinked installation from Cellar to serve as a dependency for other homebrew installations (if it's required). This is explained in another post.

Also with all homebrew commands you get a description of the formulae with the --help option (e.g. brew link --help).



来源:https://stackoverflow.com/questions/21175235/what-does-linking-unlinking-with-homebrew-mean

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!