LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

brew-leaves

List top-level installed packages that are not dependencies

TLDR

List top-level packages (not dependencies)
$ brew leaves
copy
List only manually installed leaves
$ brew leaves -r
copy
List only dependency-installed leaves
$ brew leaves -p
copy
Show dependency tree of leaves
$ brew deps --tree $(brew leaves)
copy

SYNOPSIS

brew leaves [options]

DESCRIPTION

brew leaves lists installed formulae that are not dependencies of any other installed formula or cask. These are your "top-level" packages that you explicitly installed.This command shows the leaves of Homebrew's dependency graph - packages that can be safely uninstalled without breaking other packages.

PARAMETERS

-r, --installed-on-request

Only list leaves that were manually installed by the user
-p, --installed-as-dependency
Only list leaves that were installed as dependencies of another formula

CAVEATS

Not the same as "manually installed" - shows packages with no dependents. A manually installed package might have dependents and won't appear. Use -r flag for truly manual installations.

SEE ALSO

Copied to clipboard
Kai