How to tend installed packages?

I wanted to remove unnecessary packages and was using the brew leaves command to see which of the installed packages I don’t need anymore. That doesn’t work as expected however. I have youtube-dl installed for example, which is not listed with brew leaves. It is listed with brew list though. I’m pretty sure I installed it explicitly.

How can I see which of my installed packages has a dependency to youtube-dl?

Is my expectation correct that youtube-dl should be listed by brew leaves?

Is there something broken?

brew uses --installed --recursive youtube-dl

1 Like