Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Is there a [blazing fast] alternative to homebrew for macOS yet?
10 points by chanana on Nov 16, 2024 | hide | past | favorite | 18 comments
Is anyone out there working on it?


I wouldn't call Nix 'blazing fast'; I wish Nix evaluation were 10x as fast as it is. But for many things it's much faster than Homebrew and has a lot of nice properties besides.

Pkgsrc is more conventional, and its package set is smaller. But the binary distribution of it from Joyent is is consistently quite fast, and the package quality in Pkgsrc is high. It's a fast, well-behaved package manager, and probably the closest thing to what you're looking for unless your main concern is macOS GUI applications.


For someone whose needs are generally met with homebrew, what are its major issues (aside from speed)?


- Doesn't allow installing multiple versions of packages at the same time

- In practice, requires being installed to /usr/local

- Hard to uninstall in practice, leaves files scattered behind


It allows multiple versions, but only one can be linked. Never needed anything from homebrew in /usr/local, why do you need it? I don’t know if it leaves anything after uninstall, maybe config files in the home directory?


99% of the time I spend running “brew” is downloading time, so I honestly don’t get this question. What kind of Internet connection do you have?

Brew is just fine as it is, unless you’re running an older version of macOS and it has to build packages from source.


When I used to use brew, most of the time was brew doing housekeeping. You could see the title bar change processes twenty times a second, often ruby, as it did whatever it was doing, even for simple commands like search or before upgrade confirmation is approved.


You can disable that; I agree it’s annoying but it keeps from having to deal with accumulated updates at some random inconvenient future time.

export HOMEBREW_NO_INSTALL_CLEANUP=1


I have been using pksrc on my macs for years. Also works on Apple Silicon.

https://pkgsrc.smartos.org/install-on-macos/


I switched to devbox about a month ago after reading some comments on here about it, so far I couldn't be happier with it. It's certainly blazing fast, but also manages versions better, supports multiple users on the same machine, installs stuff to a sane location etc. https://www.jetify.com/devbox


Macports might be worth considering

https://www.macports.org/


Nix


+1, installation time of all kinds of software is much faster on nix for me. Over the years I've also been quite annoyed with homebrew for breaking all kinds of things, like the CLI interface or features like being able to easily install a pinned version of a brew

(used to be that you could just `brew install https://link/to/git/commit` which they disabled for "security reasons", the replacement is that you need to make your own tap which is quite a bit more effort)


This, save a few very specific Mac things (MacVim install works better with home brew for me) using Nix and home manager on Mac has been a dream setup


I see two people mentioning speed - is Homebrew doing something inefficient?


What’s wrong with home brew?


Bulky and slow


Sorry if this is obvious, but when I do `brew install sassafras`, the bulk of the time between hitting enter and being able to run sassafras is downloading and installing. The overhead of Homebrew seems very minimal. Is the slowness coming from a side of Homebrew that maybe I don't see very often?


uv




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: