LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

brew-deps

Show dependencies of Homebrew formulae and casks

TLDR

Show the dependencies of a formula
$ brew deps [formula]
copy
Show only direct dependencies
$ brew deps --direct [formula]
copy
Show dependencies as a tree
$ brew deps --tree [formula]
copy
Show dependencies shared by several formulae
$ brew deps [formula1] [formula2]
copy
Show dependencies of any of several formulae
$ brew deps --union [formula1] [formula2]
copy
Include build dependencies and mark them
$ brew deps --include-build --annotate [formula]
copy
Show dependencies of every installed formula
$ brew deps --installed
copy

SYNOPSIS

brew deps [options] [formula|cask...]

DESCRIPTION

brew deps prints the dependency graph of one or more Homebrew formulae or casks. With several names and no --union, the list is the dependencies they have in common. brew leaves is the other direction: installed formulae that nothing else depends on.The command is a subcommand of brew.

PARAMETERS

-1, --direct

List only dependencies declared directly by the formula.
--tree
Print dependencies as a tree.
--union
With several formulae, list a dependency if any of them needs it. The default is the intersection: a dependency listed only when every formula needs it.
--include-build
Include build-time dependencies.
--annotate
Mark dependencies that are build, optional, or test-only.
--installed
List dependencies of all installed formulae.
-h, --help
Show help and exit.

SEE ALSO

RESOURCES

Copied to clipboard
Kai