8 ms·
>apt-get was a revolution when it was released in 1998 and it is still the best way to manage software today. brew is a mediocre replacement. While apt still i
by smoldesu 6y ago
>apt-get was a revolution when it was released in 1998 and it is still the best way to manage software today. brew is a mediocre replacement.
While apt still isn't the best package manager (my heart belongs to pacman, no matter what the haters say), I completely agree that brew is a failed imitation. I wanted to use MacOS for the longest time, because I've been told that it's a real "Unix system". Brew has distilled my fears into a sobering reality. The "advantages" MacOS offers really comes down to eye-candy or slightly more consistent shortcut mapping, but none of this really matters to me when I can't use the software I want, and the OS is always second-guessing my authority. Maybe I've been spoiled by Linux, but I don't understand the hype. Not even on my M1 Macbook Air.
- xtian 6y agoWhat makes Homebrew a failure? I don’t generally have issues with it for my needs.
- chasd00 6y agoMy thoughts too, home brew works just fine for me.
- darkandbrooding 6y agoThere is one single feature of homebrew that regularly bites my coworkers. You can refer to software by name@version ("brew install postgresql@11" or "brew install postgresql@12") and there is no confusion about what you are installing; or you can refer to software by name only ("brew install postgresql") and the version number is calculated to be "most recently released." (v13 at the time this was written.) Hypothetically I have two machines that I want to build out and give to developers. One machine arrives on Monday. My script runs "brew install postgresql" (no version), because of when I ran that script postgresql@10 gets installed. Tests pass, I hand that machine off to a new developer. The second machine arrives on Wednesday. I run the same script, but because v11 of postgres was added to homebrew on Tuesday, the second machine receives postgresql@11 even though the first machine received @10. Same script, two days apart, different major version of postgresql. Yes, I can write my scripts carefully to avoid this. But consider this scenario: a new developer encounters a problem, tries to solve it themselves, finds a seemingly helpful blog, and ends up with postgresql@13 and node@15 when everyone else in their team is using postgresql@11 and node@12. Now tests are failing, but only for this one developer and only locally...
- na85 6y agoDoes apt solve that problem? If so, how?
- laurencerowe 6y agoHomebrew is like running Debian unstable, the world underneath you is currently changing. Mac OS itself doesn’t really have this problem since applications can bundle the exact version of their required frameworks, a bit like Ubuntu Snaps.
- rudedogg 6y agoThis doesn't really answer the question does it? It's been a while since I used apt, but if I remember correctly you'd have the same problem the parent described, right? ------------------- And regarding the 'name@version' criticism: If you want to stick to a version, how can you do it without specifying it?
- thayne 6y ago> It's been a while since I used apt, but if I remember correctly you'd have the same problem the parent described, right? Only if you are running Debian Sid or equivalent.
- tenken 6y agoFor example Ubuntu X.Y LTS always use a pinner version of Apache 2.xxx and it will remain that version throughout that LTS release, such as 18.04. what they do for you is apply security patches and bump Apache 2.xxx.Y where Y is the security release applied patch. Apache stays at 2.xxx for the duration of that LTS and is considered the Stable version. Want something newer like Apache 3.x install from a PPA or an all-in-one bundled Snap package...
- andreareina 6y agoExcept dpgk/apt is pretty good about keeping track of what libraries are being used. I've had homebrew upgrade readline to the next major version, uninstalling the version that all my other utilities were linked against. Admittedly, this was years ago and I don't know if that still happens; the experienced has soured me on homebrew and I actively avoid having to run the brew command and risking the same again.
- Fire-Dragon-DoL 6y agoOn top of my mind, I think of: Brew upgrade usually breaks stuff if it hasn't been updated in a couple of months, which is not the case for other package managers. Forced update on any command is really bad behavior.
- rz2k 6y agoPer gp, I haven't used Pacman in a long time, but when Arch was really popular I'd have a virtual machine, ignore it for a few months, then updates usually failed or rendered the machine inoperable. The Arch wiki was so good that it inevitably included the exact problem and resolution already, but since I didn't have any important running systems I also might as well have reinstalled the whole thing. In which case I'd run into installation problems that were also perfectly covered in the Arch wiki.
- pimeys 6y agoNowadays you can install Arch to a zfs or btrfs subvolume and have snapshots before every update, so a failed update requires you to just reboot to the previous snapshot and do a rollback. NixOS has a similar strategy.
- 1_player 6y agoI have never seen this personally, because the first thing to do if you haven't upgraded Arch in a long time is check archlinux.org where they list right in the front page any breaking update, which are quite rare and they provide the exact steps to proceed. Or just install informant from AUR, to force you to read the Archlinux package news before proceeding with any pacman operation.
- sneak 6y agoOne of the things that debian maintainers do is patch out the phone-home spyware nonsense in most apps installable via apt. Homebrew actually went the other direction and embedded non-consensual spyware directly into the package manager itself.
- laichzeit0 6y agoI find Docker to replace the parts that suck about using brew. E.g. I would never install something like Postgres using brew again. Small command line tools sure, but anything with complex dependencies and where you might need multiple versions it’s just better to use containers.
- zxexz 6y agoI do the same thing, but it sucks having to literally dedicate a couple cores and a few gigs of RAM to a virtual machine. It's worth using nix on macos - takes a few hoops to get running, but it's worlds better than brew. Albeit, a fair bit more complex than docker.
- x0x0 6y ago(maybe this is my incorrect usage?) I had packages installed by brew that used readline 7. This went on fine for a while. At some point, brew installed something (at my direction) and moved to readline 8. Unbeknownst to me, readline 7 disappeared from my system! Tada, a pile of tools require reinstallation. Oh, and I didn't notice until weeks later when psql stopped working. I'm not the only one, at least... https://news.ycombinator.com/item?id=19063175 https://news.ycombinator.com/item?id=19063175
- andreareina 6y agoYup, same exact problem. Bunch of stuff depending on readline 7, install something that wants readline 8, everything breaks. What a faff.
- dmitriid 6y agoMy personal gripes: - updating the package index on each operation. I just want to install stuff, dammit. I don't need you to run git pull to update the gazillion package definitions - `brew update` and `brew upgrade` dichotomy. 99.9999999999% of the time I need to update/upgrade a package, not brew. If I ever needed to upgrade brew, I could run `brew update --brew` or something
- strategia 6y agoYou may like MacPorts. It is descended from BSD-style package managers.
- smoldesu 6y agoI've given it a whirl, and while it's better than Brew, that's not a high bar to pass. Macports suffers from the same lack of software and strange idiosyncrasies that crop up in Brew, and it really doesn't justify it's place in my workflow.
- inDigiNeous 6y agoUsed to use MacPorts for many, many years. But grew tired of it breaking important packages or just failing to update when doing macOS major version updates. Also, MacPorts can many times just fail to install a package or fail to update a series of dependencies. Good luck then getting your operation important packages running .. Anyway, switched to Brew completely a while ago when updating to Big Sur, so have no idea if Brew will also do the same thing over time, but at least their system seems more simple, which might result in less breakage.
- akra 6y agoPeople state consistent shortcut mapping is an advantage of using Mac but after 2 years of being required to use a Macbook Pro I'm not really sure about that - often they are more complicated IMO. I still miss built in Linux and Windows key mappings. For example Windows + Left to move the window on the left side of screen for side by side apps on the same screen. Great for remote demo's and coding sessions. Ctrl + Shift + F4 to take a screen shot vs Linux PrtSc feels backwards at least to me. On the mouse pointer side with scroll direction most people I know also get a plugin to swap the scroll direction when they use their mouse and switch back to track pad. Another example - on VS Code very often the key bindings don't work on my Mac whereas on my Linux machine they work every time. My point is while I'm probably don't know all the tricks to learn since its not my platform of choice YMMV. I think the impression of "better key bindings" comes down to familiarity more than anything. Getting used to something else seems uncertain (it may never be as good despite learning investment) when you know on the other platform you can just "get things done fast".
- totesraunch 6y agoThere is a great app for your window move/resize issue called Moom. You can bind keys and mouse to window move/resize actions.
- smoldesu 6y agoThere's also great apps for rebinding window movement/resizing on Windows and Linux, but that's besides the point.
- Fire-Dragon-DoL 6y agoI used a macbook for 2 years and the key binding is definitely less consistent than windows or linux. If nothing something as important as word navigation and word selection (ctrl+arrows and ctrl+shift+ arrows on linux and windows), is located in different modifiers (can't remember which), something along the lines of: move with command+arrow and select with option+shift+arrows. Drives me crazy every time, given that command + backspace deletes a word (and command +del deletes a word in the other direction).
- guessbest 6y agoMacports is a system that installs in the /opt root folder to run along side your native applications without overwriting them, but it compiles each application as you install. Installations can be very slow. It seems like it was adopted from FreeBSD's ports system. Fink is more apt like but I haven't used it in years. All the packages are precompiled and the installations are much faster, but it seems out of date. For both packing systems all the code and installation packages are managed by volunteers so quality varies across packages.
- Wowfunhappy 6y ago> but it compiles each application as you install. No it doesn’t. Hasn’t been that way for years.
- guessbest 6y agoI use it and it clearly compiles each package. Please read the FAQ. https://trac.macports.org/wiki/FAQ https://trac.macports.org/wiki/FAQ > Is MacPorts Universal? MacPorts works on Apple Silicon as well as Intel- and PowerPC-based Macs, but, by default, the ports you install will be compiled only for the architecture you're currently running on. This means that if you migrate from, say, a PowerPC Mac to an Intel one and use Migration Assistant to copy your data to the new machine, you should reinstall all your ports on the new machine to rebuild them for Intel.
- Wowfunhappy 6y agoWhat they mean is that the downloaded binary will have been compiled for only the architecture you're running on. Take a look at all the binaries on http://packages.macports.org http://packages.macports.org. MacPorts downloads from here. If MacPorts is compiling from source, you're either using a non-default varient, on a very old version of OS X (MacPorts supports Tiger, but doesn't build binaries), or have some other unusual configuration option set.
- guessbest 6y ago
- bostonsre 6y agoYea, I think I've been through a similar thought process. Apple hardware is second to none and their machines do look awfully pretty. Macs have become the default engineering laptop in all the start ups I've been at in the past ~10 years but I never got to the point where I was really comfortable. I have grown to really love wsl 2 on windows in the past year that I've used it. To me it seems really elegant and has been a dream to work on. Most assume it's just a vm running on windows, but the integration it has between Linux and windows make it extremely powerful (eg from your Linux shell you can run windows executables, so you can do stuff like run powershell to write text to your windows clipboard or run 'code .' to open the windows vs code gui on your current working directory in wsl). I'm not sure if it would be best for everyone, but as an SRE it's great to have my Linux container have the same operating system my company uses in production so that I don't need to figure out how to do stuff on two different operating systems and I am just a lot more comfortable on centos.
- sildur 6y agoHonest question, what's the advantage of pacman over apt?
- zucker42 6y agoFor me, the ease of use of PKGBUILD files makes it easier to interface external or modifird software with the system (this has led to success of the AUR).
- pimeys 6y agoApt itself is great, but the PPA repos that make every dist upgrade more complex is kind of not nice. With pacman you have AUR and very simple package scripts, that lets you easily add whatever to your system that's not included in the distribution. With apt this is not that straightforward.
- mcovey 6y agoThere is "checkinstall" that creates an apt package by watching changes during a "make install" step. So you can install many programs that don't provide .deb packages or only provide source code that way. https://wiki.debian.org/CheckInstall https://wiki.debian.org/CheckInstall
- kaba0 6y agoImo, both are kind of sucky. (Just install a gnome group on each, then remove it and install plasma and see how many non-used service whatever continues to be installed). Nix is the correct solution to the dependency hell problem.
- rbanffy 6y ago> I completely agree that brew is a failed imitation I recommend MacPorts instead. Brew broke my computer more than once.
- ur-whale 6y ago> because I've been told that it's a real "Unix system". OSX certainly isn't a "real Unix system". OSX a huge hodgepodge of proprietary crap with a Unix component buried somewhere in the middle of the dung heap to get FOSS proponent to believe that Apple believes in openness.
- WesolyKubeczek 6y agoThey were even certified as of 10.5 as a true-to-god Unix system. They have been more unixy than Linux for a while! Unix, until Linux had made a breakthrough, was a proprietary system. The AT&T Unix, Xenix, AIX, SunOS, you name them. Openness of the source is not a defining characteristic.
- vlozko 6y agoYes, it is real UNIX: https://www.opengroup.org/openbrand/register/ https://www.opengroup.org/openbrand/register/ With the exception of 10.7, IIRC, it has been for over 15 years.
- SeanLuke 6y agoDEC, SunOS, AIX, HP-UX, etc. were all proprietary. So they weren't Unix either?
- kalleboo 6y ago> OSX a huge hodgepodge of proprietary crap Historically, that is exactly what "real Unix systems" were
- herbst 6y agoI was honestly hyped when i got a MBP beast as developer machine after so many years of hearing mac is basically a luxury unix. I was and still am heavily dissappointed. This was ~2018 it looked exactly as boring as imagined, a desktop as intiuitive as windows 7s. The terminal felt at best strange, many settings and confirmation dialogs are simply not available via terminal, only hidden somewhere in their UIs. The hardware run hot every day, always and you could not use an external screen without waste cycling your battery to death. Honestly not impressed. Both mac and windows are like stuck in time compared to modern desktop approaches like gnome shell or recent kdes. If you are a shell guy to some degree no other os will justice
- npteljes 6y ago>OS is always second-guessing my authority Very concise way to put it. I feel the same way. With FOSS I feel that I'm fighting with the software, and with proprietary stuff I feel like I'm fighting against the software.
- antihero 6y ago> The "advantages" MacOS offers really comes down to eye-candy or slightly more consistent shortcut mapping, I mean, not really, no.
- MrMan 6y agoI switched to all Linux in my house a few years ago, it is a simpler and better existence overall. My kids laptops are mint, my wife is the only holdout on Mac. Mac is not bad, but for me it doesn’t have a lot of advantages and has a lot of obvious disadvantages.
- sandgiant 6y agoCan you explain briefly what the issues are around brew? I've been a Mac user for the past decade and I still remember the days of macports, so brew still feels like magic to me.
- craftinator 6y ago> Maybe I've been spoiled by Linux, but I don't understand the hype. This type of sentiment is usually a sign. If you've been spoiled by something, that's because it's better. I had the same feeling trying to go back to windows, "Man, why am I always fighting damaging updates", "Why can't I change this very simple setting", "Where is the documentation for this file". The answer usually comes down to "because one thing is really good (not perfect), and the other thing is shitty (but tries to look perfect)."
- 1_player 6y agoI adopt a different attitude. If you have been spoiled by something, doesn't mean it's better, just that you are set in your ways. Which might be good, but sometimes it's better to broaden your horizon. I liked macOS, I had used Linux full time for 15 years, spoiled by it if you will, then I tried to set up a WSL environment just for me and let me tell you: you guys can keep your Macs and half arsed Linux distros, Windows these days is truly underrated. Being able to game, have a better Linux and Docker experience than macOS, and not stuck in the 90s like Linux actually feels great. Because the reality is that all software is actually crap. If you think one is better than another, you need to look harder.
- bobbylarrybobby 6y agoAgree about brew and highly recommend nix in its place. Failed updates can’t take down your system (it’s literally impossible, as changes are made atomically), different packages maintain separate versions of their dependencies so there’s no dependency hell, and it’s very speedy. Only downside is it’s not as Mac centric as brew, so AFAIK casks are a no go.