5 ms·
The case against using homebrew mounts daily. Their poor decisions (regarding all of engineering, community/social, and privacy) are numerous enough for a non-
by sneak 6y ago
The case against using homebrew mounts daily. Their poor decisions (regarding all of engineering, community/social, and privacy) are numerous enough for a non-listicle blog post at this point.
I switched to using Nix on macOS to manage packages, and it's fantastic. The nix concept in general is wonderful, and there's a lot of work put in to making it work well on the mac. I haven't missed `brew` at all.
- b0afc375b5 6y agoThanks for mentioning nix. I didn't know it had a macOS variant. I've been meaning to learn the whole nix ecosystem but hadn't found the energy yet.
- sheenobu 6y agoNix pills might be a good start if you want to understand how all the pieces fit together. https://nixos.org/guides/nix-pills https://nixos.org/guides/nix-pills. There is nix, the language/package manager which can be used standalone; nixpkgs, the ports or homebrew like repo of packages that can be built/run on many systems including macOS; and nixos, the Linux+Nix distro that puts it all together.
- b0afc375b5 6y agoThanks. I've already installed nix/nix-darwin and tried installing wireshark, but it isn't working for some reason. I have some reading to do.
- sheenobu 6y agoI thought of Nix while reading this thread and I'm wondering what makes it unique here? As a daily NixOS user I get that it is better but I don't know the specifics. the nixpkgs rpeo is superficially similar to homebrew (lots of people submitting packages, running on github, automation around commits). What are the differences wrt to security? 1. It's language, Nix, is limited in scope? 2. No automated PR merge workflows (yet)? 3. Better community/engineering/security?
- sneak 6y agoWell, a very simple answer is that homebrew embeds nonconsensual spyware into the brew tool itself, and nix does not. For me, "doesn't exfiltrate my private data to Google in the default config" is an important security benefit of nix over homebrew. The longer answer is about the inherent benefits of the nix way of doing things; it is a horse of a different color compared to all other package managers I've seen or heard about. It is a different installation paradigm, and the nix documentation (and many blog posts) do a better job of describing its main differences than I can here. Deterministic builds as a first class feature is probably the shortest summary. Being able to reference an entire and exact hash tree of deps is hugely valuable.
- meroje 6y agoIt does warn about it before sending anything though https://github.com/Homebrew/brew/blob/3e0f14083aa983c136a37574e8f73eddb035987a/Library/Homebrew/cmd/update-report.rb#L52-L59 https://github.com/Homebrew/brew/blob/3e0f14083aa983c136a375...
- myolxid1 6y agoAnalytics are an invaluable resource for a volunteer-run project. To their credit, they issue a noticeable warning with the command to turn it off. It seems to me your issue is more about using Google Analytics - if there's a better alternative that is sustainable (read: free and doesn't require much effort to maintain) that should be suggested.
- sneak 6y agoMy issue is that the data is exfiltrated without consent. It literally does not matter where it goes if private data is transmitted without consent. With consent, it's fine to send it anywhere they like. Their analytics are also unauthenticated. I sort of want to make the first letter of each package in the top packages ranking spell out something funny.
- myolxid1 6y ago
- tgv 6y agoNot at all? I just tried to install mongodb through nix, and it begins by downloading the C++ compiler, because it has to compile I don't know how many files. Homebrew was a lot quicker and lighter in that respect.
- xrisk 6y agoNix doesn’t even install on my Mac; for reasons I don’t understand. > Creating a Nix Store volume... error: refusing to create Nix store volume because the boot volume is FileVault encrypted, but encryption-at-rest is not available. Manually create a volume for the store and re-run this script. See https://nixos.org/nix/manual/#sect-macos-installation https://nixos.org/nix/manual/#sect-macos-installation The provided link doesn’t really tell me what to do...? Why are there so many (complicated) ways to install this thing, and why can’t it do it automatically?
- tgv 6y agoI managed to get it running, but what it does is create an extra volume and mount entry for it. If your boot volume can't be altered by the script, you have to do it by hand, and that probably requires booting in maintenance mode. The reason behind that is that they chose /nix as their store, and it's apparently hard-coded all over the place, and macOS 11 has locked /, so you can't have a simply directory anymore. They do explain why they chose this option, and provide you with others (each with its own disadvantages). Nix seems to be the arch of package managers.
- csqta 6y agoRandom user on the Internet: Homebrew bad. Should not use. Fortune 500 Companies: Use Homebrew in production. I wonder who's right...
- ztcfegzgf 6y agobased on the Nix documentation the macOS situation does not look as positive as described by this comment: - if you have an M1 mac, it does not work (https://github.com/NixOS/nixpkgs/issues/95903 https://github.com/NixOS/nixpkgs/issues/95903) - if you have an intel mac, when you install it, you have to add the "--darwin-use-unencrypted-nix-store-volume" switch to the installer, otherwise it does not work (https://nixos.org/manual/nix/stable/#sect-macos-installation https://nixos.org/manual/nix/stable/#sect-macos-installation). i do not want unencrypted things on may computer. (and yes, there is a long section of the documentation about other approaches with other tradeoffs, and if you have a T2 chip then maybe it is ok (but why isn't the installer detecting this automatically?)... the point is, with homebrew there is no such problem)