Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understand homebrew and keg-only dependencies

Tags:

homebrew

People also ask

What does keg-only mean homebrew?

What does “keg-only” mean? It means the formula is installed only into the Cellar and is not linked into the default prefix. This means most tools will not find it. You can see why a formula was installed as keg-only, and instructions for including it in your PATH , by running brew info <formula> .

What does keg-only mean it was not Symlinked?

The packages for which the symlinking step is skipped are called keg-only. If you want to override Homebrew's decision not to symlink a package into /usr/local , you can modify your PATH variable as in the suggestion from brew that you've posted.

What is a homebrew formula?

Homebrew Formulae is an online package browser for Homebrew – the macOS (and Linux) package manager. For more information on how to install and use Homebrew see our homepage.


For a software to be "keg-only" means it is installed in /usr/local/Cellar but not linked into places like /usr/local/bin, /usr/local/lib, etc. That means other software that depends on it has to be compiled with specific instructions to use the files in /usr/local/Cellar. That's done automatically by brew install when a formula specifies keg-only dependencies.

Formulas that specify keg-only dependencies make sure that the equivalent system libraries are not used. Your installation of vips is linked against a specific version of pixman in /usr/local/Cellar/pixman/<version>, so it isn't affected by the system version of pixman or any other Homebrew versions of pixman you might install.