I didn’t think brew upgrade d packages automatically? Just update d the index? Am I missing something here?
Ask HN: Best Alternative to Homebrew in 2021?
21–30 of 314 posts
Re: Ask HN: Best Alternative to Homebrew in 2021?
#22Re: Ask HN: Best Alternative to Homebrew in 2021?
#23I didn’t think brew upgrade d packages automatically? Just update d the index? Am I missing something here?
HOMEBREW_NO_INSTALL_UPGRADE
If set, brew install will not automatically upgrade installed but outdated formulae
https://docs.brew.sh/Manpage#HOMEBREW_NO_INSTALL_UPGRADE (that's a fake hyperlink cause they don't put named anchors on their for some reason)updated with an actual hyperlink: https://github.com/Homebrew/brew/blob/3.3.2/docs/Manpage.md?...
Re: Ask HN: Best Alternative to Homebrew in 2021?
#24 python -m venv /my/directory
I’ve never had any problem with homebrew in over a decade’s usage. But yes, don’t use it for python development tooling: use pyenv and python -m venv and pip for that.Re: Ask HN: Best Alternative to Homebrew in 2021?
#25It's confusing, but we'll get there. You'll need/want:
- nix, the tool/build system.
- nixpkgs, the world's most up-to-date and underfunded package repository.
- nix-darwin, bringing a NixOS experience to Darwin. Not perfect, but pretty damn great.
And optionally,
- home-manager, a nix-based opinionated tool to manage dotfiles and other stuff in your home directory.
And finally, some things to avoid and experimental features to use:
- do not ever use `nix env -i` to install things ala homebrew, apt, etc. This is a trap. You don't want this.
- use nix flakes. Sure, it's experimental, but it's what you _do_ want. Reproducible, version-pinned builds.
- if you use direnv, or are familiar with it, check out nix-direnv, which is like direnv on crack. Instead of managing your packages globally, manage them per workspace or project.
Re: Ask HN: Best Alternative to Homebrew in 2021?
#26I just reached the same breaking point -- and normally I am pretty sympathetic to software jank, but the maintainer of homebrew is so actively hostile and rude that my degree of empathy is significantly less -- and switched to Nix, which is quite good, conditional on three gotchas: 1. Nix has very limited support for GUI applications of the kind that you'd find in `brew cask`. Not no support, some of them are there,…
Re: Ask HN: Best Alternative to Homebrew in 2021?
#27The 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.
Re: Ask HN: Best Alternative to Homebrew in 2021?
#28sorry OP by this is a clickbait rant from someone who just did not made his homework and ended loosing time and data. - Homebrew is rolling - always was and never claimed otherwise. - OTOH for key packages (say databases) it has available versioned bottles. for postgresql one have: - postgresql@10 - postgresql@12 - postgresql@9.4 - postgresql@9.6 - postgresql (points to latest) - postgresql@11 - postgresql@13 - postg…
Re: Ask HN: Best Alternative to Homebrew in 2021?
#29My 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.
Re: Ask HN: Best Alternative to Homebrew in 2021?
#30[1]: https://rubenerd.com/using-netbsds-pkgsrc-everywhere-i-can/>
[2]: https://news.ycombinator.com/item?id=27293108>
[3]: http://www.pkgsrc.org/>