Easy way to have a homebrew list of all package dependencies

Is there anyway that the command brewdisplays all installed or additional dependencies for any given package? It would also be useful to know which of the installation packages themselves are dependencies of other packages.

+7
source share
3 answers

You can use the info command, for example.

brew info ffmpeg

It will show you information and formula dependencies. In addition, it shows whether this package is installed by tick after its name.

+4
source

I found that the switch is brew deps --treealso very useful for rendering dependencies only on the command line. From the official doc:

brew deps --tree [--1] [filters] [--annotate] (formulae|--installed):
Show dependencies as a tree. When given multiple formula arguments, output
individual trees for every formula.

Example1:

brew deps --tree fontconfig

Output1:

fontconfig
└── freetype
    └── libpng

Example2:

brew deps --tree --1 fontconfig

Output2:

fontconfig
└── freetype

and there are more switches explained:

brew help deps
+3
source

Source: https://habr.com/ru/post/1663184/


All Articles