Live data from Hacker News

Ask HN: Best Alternative to Homebrew in 2021?

news.ycombinator.com

31–40 of 314 posts

Re: Ask HN: Best Alternative to Homebrew in 2021?

#33
post #31

I started using nix. It’s difficult and search results are not often helpful.

Your honesty is refreshing.

I've seen countless people trying a new technology/tool, and overselling it as 'amazing' and super easy.

Seeing a post like yours helps to keep the discussion grounded in reality, with tools that looks nice on paper but have practical downsides as well.

Re: Ask HN: Best Alternative to Homebrew in 2021?

#35

My experience is that both (Macports, Homebrew) are comically unreliable and frustrating to use. That said, with my insistence to install under $HOME, Macports seems to work slightly better. But truly, I got the best results from downloading and compiling every single flipping dependency myself.

> But truly, I got the best results from downloading and compiling every single flipping dependency myself.

My experience has been that very, very rarely is any installation as straightforward as "curl && ./configure && make PREFIX=whatever install", partially due to everyone in the known universe thinking they need some awesome new build system, partially due to unknown dependencies and their versions, partially due to it usually needing some patches because they only build on the author's machine, and all of that is just noise when I just want to have something running

The value of Homebrew to me are the constantly bumped formulae descriptors, definitely, 100% NOT the "brew" frontend for it. So, I've found a nice middle-ground by switching Homebrew into developer mode and neutering its bottle system and using "--build-from-source"

This isn't necessarily to lobby you, as much as "for your consideration" and to raise awareness for others that one need not throw the baby out with the bathwater just because the brew frontend is user-hostle

Re: Ask HN: Best Alternative to Homebrew in 2021?

#36
post #20

Earlier quoted context omitted.

Yeah, macports still works fine. It has an equivalent to the OpenBSD flavors and does versioning fine. The only pain point is OS upgrades.

And the fact that it "needs" Xcode installed.

If my pre-coffee memory is correct, Macports only needs command-line tools for XCode.

    xcode-select --install
That said, MacPorts is often opinionated, e.g. they package certain versions of some software and not others.

Re: Ask HN: Best Alternative to Homebrew in 2021?

#37
post #12

The fact that homebrew is awful is one of the huge reasons I don’t use MacOS for development like all my co-workers. Instead I use Windows with WSL because the company won’t allow me a Linux laptop. If I had to use a Mac my solutions would be to alway use Docker, a virtual machine, or a remote dev environment of some kind.

Funny, I use Windows with WSL and the first thing I do when I set up a new WSL instance is get homebrew (linuxbrew) and install everything else through that if available.

apt/dpkg and any other package manager that scatters files all over the filesystem is just an absolute disaster that--if you do a lot of R&D tinkering--eventually renders a computer unusable after a few years. That's what happened to my first WSL instance; no apt command would work anymore because it had broken its own dependencies.

Re: Ask HN: Best Alternative to Homebrew in 2021?

#38
post #12

The fact that homebrew is awful is one of the huge reasons I don’t use MacOS for development like all my co-workers. Instead I use Windows with WSL because the company won’t allow me a Linux laptop. If I had to use a Mac my solutions would be to alway use Docker, a virtual machine, or a remote dev environment of some kind.

I hate that you are forced to sign up for an Apple account just to install XCode which is required for Homebrew which pretty much makes the machine useless.

Re: Ask HN: Best Alternative to Homebrew in 2021?

#40
post #30

A while ago there was a post on HN about pkgsrc [1][2][3], which works on Mac, among other platforms. I haven't tried it, but it may be worth a shot. [1]: https://rubenerd.com/using-netbsds-pkgsrc-everywhere-i-can/ > [2]: https://news.ycombinator.com/item?id=27293108 > [3]: http://www.pkgsrc.org/ >

I checked and it appears to suffer from the same problem as MacPorts in only making the ancient version of awscli available: http://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/net/py-awscl...

I wasn't able to immediately find any issue tracker for pkgsrc packages, and it seems they're a "mailing list and IRC" type setup, which if true means it definitely isn't for me

Post reply on HN