Live data from Hacker News

Linuxbrew – A fork of Homebrew for Linux

brew.sh

21–30 of 68 posts

Re: Linuxbrew – A fork of Homebrew for Linux

#21
post #5

Honest question. Homebrew is the missing package manager for OS X. Linux has package managers, so why a fork? Packages just available through homebrew?

I personally have always hoped for a unified package manager across distros.

Not very likely that they adopt one, but pkgsrc works across OSX, Linux, the BSDs, Solaris and more.

Re: Linuxbrew – A fork of Homebrew for Linux

#22
post #5

Honest question. Homebrew is the missing package manager for OS X. Linux has package managers, so why a fork? Packages just available through homebrew?

Homebrew (mostly?) uses glue code around installing dependencies and doing the ./configure && make && make install dance with sane settings for your environment. It's one-liner, low-hassle installation from source. You're not relying on anyone to be timely/trustworthy about packaging binaries for you.

Re: Linuxbrew – A fork of Homebrew for Linux

#23
post #14

Finally! It looks like a lot of commenters here are confused, but there are a lot of situations where the default package Linux package managers don't cut it. After getting used to the (update) speed, flexibility, and reliability of Homebrew, it's shocking and frustrating to go back to Linux, where package managers were born, and have to settle for a less robust ecosystem.

Honest question, in what way is brew faster, more flexible, or more reliable than apt-get or yum? I've had far more problems with it than I have its Linux brethren.

Re: Linuxbrew – A fork of Homebrew for Linux

#24
post #9

Homebrew was created to add the package manager experience of Linux to Mac OS X, so what gap does this fill? Mac users already experience issues relating to having multiple non-default package managers (i.e. Homebrew and MacPorts) - what conflicts will having a default and non-default package manager arise? The problem it is trying to solve would be better approached hosting Debian, RHEL etc repositories which mirror…

Installing to a users home. I.e. no sudo needed for package management. For example I currently install all my python, R and Haskell stuff in my home using each languages' own package management rather than system wide and it would be nice to use the same package manager for all this.

Up to date versions of packages.

Some packages conflict in the repos e.g. ffmpeg and libav on Debian derivatives and keeping both is annoying.

I would rather something like Nix or Guix over this (and as you say standardisation between package managers would be massive).

In short linux package management is great but it could be so much better and this might be a kick in the right direction?

Re: Linuxbrew – A fork of Homebrew for Linux

#25

Earlier quoted context omitted.

installing the latest versions from source

There are much better package managers for that. Try Nix or GNU Guix.

Can I get one of these to manage packages installed to /home in Ubuntu?

Re: Linuxbrew – A fork of Homebrew for Linux

#26
This is totally silly. Homebrew isn't a very good package manager. When I used it at a previous job (the only time I've used OS X), it was quite unreliable. It would try to build most things from source (which sometimes failed), but then download pre-built binaries for others. IIRC, installing the MySQL package just downloaded a binary from Oracle, it wasn't even a binary pre-built and verified with Homebrew! I have zero confidence in Homebrew to provide any security.

Now, I see that people are saying that it fills a niche of having the latest and greatest builds of things. Other GNU/Linux distros already have similar things. Arch Linux's core repo is quite fresh and there's also the AUR for bleeding edge stuff. Debian testing isn't as fresh, but it has most new software fairly quickly. I don't know much about Gentoo, but it's overlay system gives users easy access to custom repos with bleeding edge software. Hell, even Ubuntu seems to have PPA for everything if the software in the release isn't new enough. Then there's some less known options like Nix and GNU Guix that provide very up-to-date packages and have far more features than Homebrew.

In short, we need better system package managers for our distros, not additional package managers to slap on top of the distro we use.

Re: Linuxbrew – A fork of Homebrew for Linux

#27
post #20
post #9

Homebrew was created to add the package manager experience of Linux to Mac OS X, so what gap does this fill? Mac users already experience issues relating to having multiple non-default package managers (i.e. Homebrew and MacPorts) - what conflicts will having a default and non-default package manager arise? The problem it is trying to solve would be better approached hosting Debian, RHEL etc repositories which mirror…

> The problem it is trying to solve would be better approached hosting Debian, RHEL etc repositories which mirror each other in their structure. I disagree, and I think Linuxbrew fills a different niche. When you install something from your distro's package manager, you are actually installing another program that happens to come with the operating system. This has two implications: - It's usually fixed at a particul…

Building from source and installing packages aren't mutually exclusive. Particularly because of the buildroot stuff for GNU autoconf apps, you can just grab '/' in the build root and get everything installed by the build, then update the %files from that (removing common dirs, so your package doesn't own /usr just because it made buildroot/usr).

OTOH if someone said RPM spec format was archaic I'd certainly agree.

Re: Linuxbrew – A fork of Homebrew for Linux

#28
Best feature of homebrew for me is the possibility to package a software with a pull request.

On the other hand, Homebrew packaging _maintenance_ is done by homebrew maintainers.

Sooner or later, when they achieve the thousands-of-packages mark, they'll need packaging guidelines, and then packaging rules, and then a packaging team (maybe with their own email domain [@debian ;)].

When (if) this happen to linuxbrew, you'll have another linux distribution.

Re: Linuxbrew – A fork of Homebrew for Linux

#29

Earlier quoted context omitted.

There are much better package managers for that. Try Nix or GNU Guix.

Can I get one of these to manage packages installed to /home in Ubuntu?

Yes: https://nixos.org/wiki/How_to_install_nix_in_home_%28on_anot...

Re: Linuxbrew – A fork of Homebrew for Linux

#30
post #5

Honest question. Homebrew is the missing package manager for OS X. Linux has package managers, so why a fork? Packages just available through homebrew?

Honestly I thought the most apparent (to me) advantage to Homebrew over deb/apt/yum is that it's Git based, so incredibly easy to contribute to. I've never contributed an apt package but I have created a number of homebrew packages for different projects it's incredibly easy.

That said, I don't think yet another package manager is necessarily the right solution unless linuxbrew can find dependencies installed by apt/yum so it's not a "one or the other" scenario.

Post reply on HN