Hacker News new | ask | show | jobs
by ryandrake 618 days ago
Dependencies are totally out of control, in much of OSS, not just Homebrew. I probably have 5-6 leaf node packages that I actually installed with brew install, but brew list shows close to 100 little dependencies. Same with apt on my Ubuntu/Debian systems. I physically installed a handful of applications but my system has hundreds of packages installed. At least it’s not DLL Hell: the dependency management tools are great and uninstallation is clean, but wow what an explosion of quantity of dependencies!

I don’t use node but I understand it’s a mess there too.

3 comments

There’s command to see your leaf dependencies:

https://docs.brew.sh/Manpage#leaves---installed-on-request--...

Yep I use that a lot. I like to make sure I only have installed what I need to survive, and uninstall everything else.
But it's nice to reuse code
Isn't it nice to reuse code so you dont have to write it twice?

It doesn't mean we can't run it twice.

You might be able to a nice graph with this command: brew deps --installed --graph