News for hackers. Stuff that matters.
Re:Ask HN: Best Alternative to Homebrew in 2021? by fredsted on Tuesday November 02, 2021 @11:24AM (#29082625)
On Debian-based systems, I get a preview of what's going to be installed/updated when I do something with `apt`.

With homebrew, I never know how many packages will be updated and how long it will take, so sometimes when I just need a small utility, suddenly it'll update a bunch of packages and it takes 45 minutes.

It's a UI problem.

Re:Ask HN: Best Alternative to Homebrew in 2021? by kristjansson on Tuesday November 02, 2021 @12:20PM (#29083423)
An apt-style 'hey here's what you going to do, confirm/deny' would be _great_ in homebrew
Re:Ask HN: Best Alternative to Homebrew in 2021? by mikemcquaid on Wednesday November 03, 2021 @02:51AM (#29091774)
Not sure how to add that prompt by default without breaking existing scripts. Making it non-default seems like it wouldn’t help (given comments here).
Re:Ask HN: Best Alternative to Homebrew in 2021? by Fire-Dragon-DoL on Wednesday November 03, 2021 @08:46AM (#29093818)
The prompt should appear only in interactive mode, so it shouldn't break existing scripts
Re:Ask HN: Best Alternative to Homebrew in 2021? by kristjansson on Wednesday November 03, 2021 @11:44AM (#29096246)
Fair enough. Like the sibling says, checking the moral equivalent of [ -t 0 ] probably distinguishes enough interactive vs non-interactive use to add an interactive-only default.

I'd add that script-y usage of brew already can block on user input (e.g. if a cask asks for sudo), so adding a go/no-go check probably only breaks the most determined automators, while the benefits accrue to a wide swath of users (both new and fat-fingered).

Regardless, thanks for all the work you (and the community!) do on Homebrew! I wouldn't like macOS half as much (or have bought half as many) without it.

Re:Ask HN: Best Alternative to Homebrew in 2021? by mikemcquaid on Friday November 05, 2021 @03:11AM (#29116241)
Yeh, that’s the interactive check we’ve used in the past and unfortunately it still has given false positives and false negatives enough I’m hesitant to make a change this big due to it.
Re:Ask HN: Best Alternative to Homebrew in 2021? by Isthatablackgsd on Tuesday November 02, 2021 @02:32PM (#29085500)
Did you use brew outdated after performing brew update?

brew outdated will list outdated app/dependencies that need to be updated. If you want to know the app's dependencies, use the info argument. For example brew info ffmpeg will list the information about FFmpeg and list the dependencies that it uses along with status indication if the dependencies is installed or not.

Am I missing something here? I am not sure if it is a UI problem since Homebrew have those functions with a few arguments here and there. Look like you are using a utility that have so much dependencies that it needs or you have habit of using brew upgrade which will prompt to upgrade everything expect pinned apps/dependencies.

Re:Ask HN: Best Alternative to Homebrew in 2021? by tuatoru on Tuesday November 02, 2021 @06:26PM (#29088323)
> Am I missing something here?

Yes. The principle of least astonishment.