Skip to content

What is the difference between brew list --installed-on-request and brew leaves --installed-on-request? #5332

Closed Answered by ZhongRuoyu
nbro asked this question in Everyday usage
Discussion options

You must be logged in to vote

brew leaves shows the formulae that are not dependencies of any other formula or cask. So, if you installed package A on request, but A is also a dependency of some other package B, then A will not show up in the output of brew leaves --installed-on-request (but it should be in the output of brew list --installed-on-request).

I originally thought that to get the list of packages I explicitly asked brew to install I should use brew leaves --installed-on-request

brew list --installed-on-request should be what you want here.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nbro
Comment options

@ZhongRuoyu
Comment options

Answer selected by nbro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants