51
submitted 1 year ago* (last edited 1 year ago) by alt@lemmy.ml to c/linux@lemmy.ml

I'm especially concerned about it being somehow broken, unwieldy, insecure or privacy-invasive.

Case in point; at times I have to rely on a Chromium-based browser if a website decides to misbehave on a Firefox-based browser. Out of the available options I gravitate towards Brave as it seems like the least bad out of the bunch.

Unfortunately, their RPM-package leaves a lot to be desired and has multiple times just been awful to deal with. So much so that I have been using another Chromium-based browser instead that's available directly from my distro's repos. But..., I would still switch to Brave in an instant if Brave was found in my distro's repos. A quick search on repology.org reveals that an up-to-date Brave is packaged in the AUR (unsurprisingly), Manjaro and Homebrew. I don't feel like changing distros for the sake of a single program, but adding Homebrew to my arsenal of universal package managers doesn't sound that bad. But, not all universal package managers are created equal, therefore I was interested to know how Homebrew fares compared to the others and if it handles the packaging of the browser without blemishing the capabilities of the browser's sandbox.


P.S. I expect people to recommend me Distrobox instead. Don't worry, I have been a staunch user of Distrobox for quite a while now. I have also run Brave through an Arch-distrobox in the past. But due to some concerns I've had, I chose to discontinue this. Btw, its Flatpak package ain't bad either. But unfortunately it's not official, so I choose to not make use of it for that reason.

top 50 comments
sorted by: hot top controversial new old
[-] sir_reginald@lemmy.world 52 points 1 year ago* (last edited 1 year ago)

I'd advise against using Brave, but that's a different topic.

Just use the Flatpak. Do not care if it's official, most packages in traditional package managers are not packaged officially, yet we use them all the time. Check the Flatpak repo instead to see if there's something wrong.

Maybe check ungoogled chromium too while you're at it.

load more comments (2 replies)
[-] woelkchen@lemmy.world 43 points 1 year ago

If you think that Brave is the best option, look up what a scumbag Brendan Eich is and the shady monetizing practices the company introduced.

[-] stella@lemm.ee 2 points 1 year ago

Fun fact: the scumbag Brendan Eich who made Brave is the same scumbag Brendan Eich who made Javascript!

Yay!

load more comments (3 replies)
[-] Presi300@lemmy.world 34 points 1 year ago* (last edited 1 year ago)

...why would you use homebrew on linux?

You already use an arch container that has access to the AUR, which has literally every package, available on linux.

Also, if anything, flatpaks are THE official (universal) packaging format for Linux, it's the most widely adopted and most well integrated of the universal packaging formats. I'm not saying that homebrew is bad, just why bother with it when you've got 100 other packaging formats that are all better...

load more comments (23 replies)
[-] Aux@lemmy.world 22 points 1 year ago* (last edited 1 year ago)

Brave is worse than Chrome. Affiliate link auto injection, unauthorised selling is copyrighted data, their own unblockable ad network, etc. Use Firefox.

[-] alt@lemmy.ml 6 points 1 year ago

Their business-practices sure do leave a lot to desire, which actually does hurt their trustworthiness; arguably their most valuable asset as a privacy-first browser. Hmm..., good food for thought, thank you!

Use Firefox.

I mostly do already 😅, from OP: "at times I have to rely on a Chromium-based browser if a website decides to misbehave on a Firefox-based browser".

[-] HumanPerson@sh.itjust.works 2 points 1 year ago

You can try ungoogled chromium. That is what I use when librewolf won't work.

load more comments (3 replies)
[-] agitated_judge@sh.itjust.works 17 points 1 year ago

Last time I checked, homebrew on Linux only included cli apps. GUI apps are only available on mac. So you couldn't use it to install a browser anyway.

load more comments (1 replies)
[-] Helix@feddit.de 14 points 1 year ago

What does Brave give you what the other Chromium based browser doesn't have? Maybe you can install add-ons instead?

load more comments (9 replies)
[-] tvcvt@lemmy.ml 11 points 1 year ago

My only experience with homebrew is on macOS and I’ve switched to MacPorts there. Homebrew did some weird permissions things I didn’t care for (chowned all of /usr/local to $USER, if I’m remembering right). It worked fine on a single user system, but seemed like a bad philosophy to me. This was years ago and I don’t know how it behaves on Linux.

I also prefer Firefox, but when I need a Chromium alternative for testing, I opt for the flatpak (or the snap) version personally.

[-] avidamoeba@lemmy.ca 6 points 1 year ago

Based on what I saw on macOS I wouldn't touch Homebrew with a 10 feet pole. We have proper packaging systems in the Linux world. The Chromium snap is supported by Canonical so that's a great candidate for anything that comes with snap or can use snap. If I couldn't use snap, I'd use the Chromium flatpak from Flathub.

load more comments (1 replies)
[-] otl@lemmy.sdf.org 4 points 1 year ago

MacPorts is so boring and underrated.

load more comments (1 replies)
[-] zwekihoyy@lemmy.ml 10 points 1 year ago
[-] alt@lemmy.ml 4 points 1 year ago

Nix is definitely cool and I already have it installed on my system. Unfortunately, even Nix has trouble with keeping Brave up-to-date at all times. It's still on 1.59.120, while Brave has had three releases since. It took about 3 days after the release of version 1.59.120 for them to release it on their repos. As you can see, it leaves a lot to desire.

[-] Acters@lemmy.world 6 points 1 year ago* (last edited 1 year ago)

It's a community maintained repo. The possibility of updating it yourself is possible. The master branch is updated to the 1.59.124, which came out a week ago. And was updated around the same time. 1.60.110 was just released 1 day ago. You can update it yourself. After all, it's supposed to give you a great default state to fall back to, not keep you on the bleeding edge of releases.

Edir: how to do it yourself and contribute to the community. https://nixos.wiki/wiki/Update_a_package

[-] alt@lemmy.ml 2 points 1 year ago

The master branch is updated to the 1.59.124

Brain fart on my side, thanks for correcting me so respectfully 😊!

Hmm.., maintaining it myself is an interesting thought. Perhaps I should take a look at that, thanks a lot for your input. Much appreciated!

[-] Atemu@lemmy.ml 2 points 1 year ago

Minor version bumps should be mostly trivial: Change version and hash, package that into commit+PR (ckeck guidelines on that!) and that's it most of the time.

The harder part is QA; ensuring it still works as expected. Therefore, even just testing update PRs as they come in would be a great help.
If the code change is trivial and a user of the package said it still works for them, a commiter coming along is likely convinced of the PR's quality and just merges it.

It's super easy to contribute to Nixpkgs in a meaningful manner :)

[-] yote_zip@pawb.social 10 points 1 year ago

I use a few packages from Homebrew and don't have any problems with it. By default it installs itself into /home/homebrew or something which I didn't like so I put it into ~/Applications/Homebrew instead using these steps. It warns that you may be forced to compile software if you do it this way but I'm down to clown so whatever.

The biggest problem I have with it is that you'll need to keep it updated alongside your regular packages, which I do by aliasing a simple upgrade command that runs all my package manager upgrades.

I would also recommend ungoogled-chromium as an alternative to Brave, which does have its own official Flatpak (not marked as such but it's linked to in the ungoogled-chromium project github).

[-] alt@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

By default it installs itself into /home/homebrew or something

I don't like that either. Thanks for that insight and thanks for sharing the link to change that!

[-] Krause@lemmygrad.ml 8 points 1 year ago* (last edited 1 year ago)

I tried Homebrew once in a VM and didn't like it, I felt it was too invasive.

  1. https://github.com/Homebrew/install/blob/85c5f4b57452dbd1c7ebc01a021548d2ceaf2b64/install.sh#L173

Why does it create another user and put files under /home/linuxbrew/? Answer:

The script installs Homebrew to its default, supported, best prefix (/opt/homebrew for Apple Silicon, /usr/local for macOS Intel and /home/linuxbrew/.linuxbrew for Linux) so that you don’t need sudo after Homebrew’s initial installation when you brew install.

Where's the logic in that? Why not just install to the user's home directory so that you don't even need root access in the first place?

  1. https://github.com/Homebrew/install/blob/85c5f4b57452dbd1c7ebc01a021548d2ceaf2b64/install.sh#L222

Why is sudo hard-coded? Answer: it's to prevent people from using doas and other sudo alternatives.

  1. https://docs.brew.sh/Installation#untar-anywhere-unsupported

Why is installing from the tarball unsupported and so frowned upon? FFS isn't this just supposed to be a package manager? Why is everything so complicated and opinionated when compared to pip, cargo, Flatpak, etc? Compare this mess to Golang's install and uninstall process where you literally just need to tar -xzf a file or rm -rf a directory.

load more comments (1 replies)
[-] j0rge@kbin.social 7 points 1 year ago

I use homebrew on linux, you're not going to get GUI apps that way though, the linux binaries are almost exclusively cli apps and libraries, etc.

[-] al1r4d@social.radhitya.id 3 points 1 year ago

@j0rge @alt What motivation do you use to do this?

load more comments (4 replies)
load more comments (1 replies)
[-] vhstape@lemmy.sdf.org 7 points 1 year ago

I've been using Homebrew on Linux for several years and never had an issue. As others have said, it will not be able to provide GUI applications (in most cases) as on macOS, but it is a great way to get system and indie software alike

load more comments (1 replies)
[-] mufasio@lemmygrad.ml 5 points 1 year ago* (last edited 1 year ago)

Once x86 macOS became stable around snow leopard I switched from Linux to macOS full time on my mobile machines. For years home brew was a shining light to get a decent tool chain installed to be able to do development. But somewhere around the time they changed to naming macOS releases after places in California, both home brew and macOS started changing in ways that made it harder to maintain a stable development environment. Why and when did it start deciding to upgrade every package I have installed when I try to install a new package? It regularly broke both mine and our developers’ machines and I finally had enough of both. Stay away from home brew if you want your working development environment to continue working 6 months later. It WILL break when you need it most and cost you hours if not days of work to fix. I’ve never ran home brew on Linux but it’s honestly not anything I would ever consider even when it worked well.

load more comments (5 replies)
[-] stella@lemm.ee 4 points 1 year ago

Not sure why you would want to.

Linux package managers are state of the art.

load more comments (1 replies)
[-] jackpot@lemmy.ml 3 points 1 year ago
[-] alt@lemmy.ml 3 points 1 year ago

I feel a bit lazy at the moment, but Brodie does IMO an excellent job at explaining what a package manager is within the context of Linux. I'd recommend you to watch that instead over here; it's already set to play at the correct time*.

[-] stella@lemm.ee 2 points 1 year ago

Utilities that manage packages on your system.

Graphical ones include Pamac and Synaptic.

The command-line ones are more known: apt (debian), pacman (arch), rpm (fedora), and yum (suse)

[-] coolmojo@lemmy.world 3 points 1 year ago

You can also use AppImages. The appman and am script is handy way download and update apps. Have a look at the following website for details:

https://portable-linux-apps.github.io/

It has up-to-date brave.

load more comments (1 replies)
[-] kzhe@lemm.ee 2 points 1 year ago

Brave homophobic though

It is the best Chromium based browser, in a sense, unfortunately....

[-] alt@lemmy.ml 4 points 1 year ago

Brave homophobic though

Its CEO; yes.

It is the best Chromium based browser, in a sense, unfortunately…

Agreed.

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 03 Nov 2023
51 points (83.1% liked)

Linux

48317 readers
750 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS