What does linking/unlinking with Homebrew mean?

前端 未结 2 2036
情话喂你
情话喂你 2021-02-07 01:01

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

相关标签:
2条回答
  • 2021-02-07 01:55

    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.

    0 讨论(0)
  • 2021-02-07 01:59

    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).

    0 讨论(0)
提交回复
热议问题