Hacker News new | ask | show | jobs
by Gelob 1960 days ago
+1. i like it but yes if i dont use it everyday and 2 weeks later go to brew install something, omg it has some gigantic update to do before i can brew install anything.
2 comments

That is frustrating, but fortunately `HOMEBREW_NO_AUTO_UPDATE=1` will take care of it. Then you have to remember to update every now and then yourself, though.
Would you happen to know how to disable upgrading unrelated packages?

I often do `brew upgrade X`. Brew indeed does what is necessary to upgrade package X + deps. But then goes on and starts upgrading unrelated packages.

Brew does not start randomly upgrading unrelated packages.

Packages have dependencies, and those dependencies have dependencies. Try `brew deps ---tree x` to see all the dependencies for you package.

Look at `brew pin` to pin packages you don't want brew to upgrade.

Many formula are versioned. For example if you install `postgresql` it will do major upgrades of postgres as they become available, but if you install `postgres@9.6` it will only install updates to 9.6.

so, you don't do a 'yum update' before installing software on your system (or 'apt-get update' or whatever)? Are you also the type of person that refuses to update system software because "it takes too long, and I'm too busy"?
No, I don’t like forced 5 minute stops to my work.

Yes, I’m the type of person who only updates on my schedule when notified, or when I need something.

These little tools installed by home brew aren’t just little tools, they’re dependencies for whatever else they’re used in. The fact that I need package “X” doesn’t mean I want package Y, something entirely unrelated, updated without my consent.

It’s MY fucking computer. Let ME decide what software gets installed on it and when.

Not GP, but I do it quite often, but not every single time. Also yum/apt/etc updates are way faster and much more responsive than brew.
I generally don't do an apt update before installing a package that I needed at that moment.

However I do full update / upgrades when it is convenient for me.

That's the point.

I have the same issue and for me there is a simple difference:

I probably use homebrew for a handfull of tools, in debian etc. my packagetmanager manages everything.

Its not a huge issue but the thought of 'ah shit i need to run update' comes with 'that will be slow'