197
submitted 8 months ago by tet@lemm.ee to c/linux@lemmy.ml

How does it stack up against traditional package management and others like AUR and Nix?

top 50 comments
sorted by: hot top controversial new old
[-] sirico@feddit.uk 85 points 8 months ago

Best of the three major agnostic package formats. If it brings more focus to Linux development, I don't see how it can be a bad thing. A bit more space needed but for most setups this is a non-issue

[-] BananaTrifleViolin@lemmy.world 6 points 8 months ago* (last edited 8 months ago)

Yeah duplication of running libraries is also a RAM/CPU resource issue but for modern well resourced machines probably not noticable. It is an issue when scaling down to low powered / old devices though. Like, running a web browser which runs in it's own sandbox with duplicate libraries running is going to have noticable performance differences compared to a non-sandboxed program running native libraries on a low RAM or low CPU system.

That's not to say Flatpak isn't a good solution; and all the agnostic package formats have the same issue compared to non-sandboxed apps. Plus the added security issues and stability on bleeding edge systems is good.

[-] jollyrogue@lemmy.ml 6 points 8 months ago

Plus, being able to sandbox user space applications, which previously had free reign, is nice.

Sandboxing isn’t 100% there yet, but it’s come along way.

[-] turkishdelight@lemmy.ml 47 points 8 months ago

I love flatpak. It makes it easier for Linux to become mainstream.

[-] Liz@midwest.social 43 points 8 months ago

As a non-technical user: fucking love it.

load more comments (1 replies)
[-] Vincent@feddit.nl 35 points 8 months ago

It's fantastic, for two reasons:

  • There's so much great software available through it, and I can always get the latest version regardless of my distro - or an older version if it hasn't kept up with its dependencies.
  • It's part of the tooling that allows me to update my operating system without risk of it breaking (i.e. I can use an atomic distro because of it).
[-] Hapbt@mastodon.social 35 points 8 months ago

@tet its great because you can listen to people whine about it now instead of systemd

[-] kingmongoose7877@lemmy.ml 18 points 8 months ago

The two whines are not mutually exclusive. ¯\_(ツ)_/¯

load more comments (11 replies)
load more comments (3 replies)
[-] Kusimulkku@lemm.ee 28 points 8 months ago

I really like the idea of a universal app format and flatpak seems the best for it. And flathub has been great as a repo.

The idea of separate system layer (with traditional packages) and user app layer with flatpaks seems like the way to go. Perhaps even immutable system layer.

[-] savvywolf@pawb.social 25 points 8 months ago

I think it's a good way for people to release software for Linux without having to deal with specific distro stuff (which historically has pretty much been "just provide a .deb for Ubuntu and a .tar.gz for other people to figure out").

I'm hoping that it pushes for more people porting stuff to Linux because it's a single target that gives you access to Steam Decks, Chromebooks and desktops.

I don't think it makes sense for things that aren't desktop applications such as servers or libraries, just because those tend to be open source, don't need to be that up to date and benefit from tighter system integration. I see it as something that sits on top of other package managers rather than replacing them.

For Flathub? Eh, if they turn out to be bad we can just all move to another server, we're not snap. :P I'm willing to bet that someone has already made a flatpak repo for Citra and Yuzu.

[-] mudle@lemmy.ml 23 points 8 months ago

I personally prefer to use Flatpaks over traditional packages because of the added security, sandboxing, and overall convenience of not having to deal with dependency hell. It's especially nice being able to have proprietary applications sandboxed from the rest of my system without worrying that Steam is snooping on my 'super-important-tax-documents'.

Flatpaks are also very useful for having up-to-date packages on distros like Debian, and it's derivatives. People can still use their preferred distro without having to worry about not getting a certain update, feature, bug fix, etc, for their applications.

Being able to restrict what applications have access to is a game-changer for me. A lot of times Flatpaks, by default, have very lenient permissions, and with the use of Flatseal I can restrict it to my liking. Worried about Audacity's telemetry?? Turn network permissions off. Now, not all applications will work well (or at all) without internet connectivity, but for applications like Audacity, it works great!! Flatpaks can also be very useful for developers.

That's not to say that Flatpaks are without their fair share of issues. Are they bloated?? Yeah, and although it's not an issue for me, it may be for some people. Desktop integration is, meh. Themes, and fonts don't always integrate the best. (A while back there were issues with Flatpak's sandbox, but I won't touch on that because I need to refresh my mind on it, and it was actively being developed to fix those issues so it possibly isn't even an issue anymore.)

Overall I think Flatpaks are absolutely wonderful.

[-] OsrsNeedsF2P@lemmy.ml 22 points 8 months ago

People need to realize that before Flatpak, distributing a small-time Linux app was a nightmare. Appimages were your best option if you wanted to avoid distro specific builds, PPAs and AUR, etc. Ever since packaging 2009scape on Flathub I haven't looked back. It auto updates. People can find it from software centers. It works on all distros. It connects straight to upstream's CICD. It even forced us to adopt XDG compliance so we could sandbox it better.

Yes, Flatpak has downsides like the download size (on disk it doesn't matter because it gets compressed and the runtimes are shared, same as literally any other package manager). But overall, I hugely welcome it over the options we had before. Much love to the Flatpak and Flathub devs!

load more comments (6 replies)
[-] haui_lemmy@lemmy.giftedmc.com 21 points 8 months ago

As a generalist I have to learn many concepts and dont have time to delve into any one that deep. Flatpak works and isnt proprietary like snap so I enjoy that. My recent debian+kde installation works well with if. Open discover and install flatpaks as much as you wish.

load more comments (6 replies)
[-] kerneltux@lemmy.world 18 points 8 months ago

I definitely prefer it over Snaps or appimages. Straight-forward to update, and Flatseal provides a nice GUI to control permissions (if needed). Themes may not work properly, but whatever, not a big deal for me.

The distro's repo is always my go-to. If it's not available there, then flatpak, and I'll use appimage under duress. If that doesn't work, I'll figure out a different solution.

[-] CrabAndBroom@lemmy.ml 10 points 8 months ago

Yeah I'm not a huge fan of Appimages because I don't like that to update it you usually have to go find and download the file again, instead of just getting it from a repository. They feel too Windows-y to me in that way.

[-] kby@feddit.de 18 points 8 months ago

Better than snaps and AppImages. Do I want every package on my system to be replaced by a Flatpak? No. Am I glad that I can ex. install Zotero as a Flatpak instead of having to build it myself? Yes.

[-] D_Air1@lemmy.ml 17 points 8 months ago* (last edited 8 months ago)

I use them for some things and I think they are fine. Mostly apps that are kinda messy and I want to keep them and their atrocious dependency tree away from my base system. I also like to use them for proprietary apps or apps where I actually want to use the sandbox. Other than that I prefer native packages 99% of the time.

Flatpak is slower to update than pacman, the cli interface just doesn't feel good to use. There is the weird naming, no real way to get a dependency tree, can't hide those annoying eol messages even for apps that I specifically don't want to update. Another thing is that not every app was made to run in a sandbox or it is just more difficult to use sometimes. A lot of people tend to cite ide's, but in my case I was having issues with the steam flatpak. Running games with steam was fine, but anytime I wanted to hook up something third party eg: mods, cheat engine, etc. Doing so in the flatpak either required some tinkering around the sandbox or straight up didn't work.

I feel like that last sentence sums up the whole experience. If you just need to point and click and have it work. Flatpak does that amazingly. If you need any kind of integration with other things, expect problems.

Edit: just wanted to add that, the whole point and click and work is fine for 99% of people which is why I and many others choose to use it.

[-] ProtonBadger@lemmy.ca 8 points 8 months ago

Yeah, I also had apps like Steam native break once or twice due to library updates (such as Mesa) - the downside to rolling distros. However, the Flatpak version continued to work so now I only use that. I don't use mods though.

I'm now gravitating towards treating my rolling distro a bit like an immutable; more Flatpaks, avoid user repositories.

[-] jkozaka@lemm.ee 16 points 8 months ago* (last edited 8 months ago)

While I don't think flatpak shouldn't replace traditional packages, I still like it.

Flatpak apps just work most of the time, they work without issues and are often very up to date. The sandboxing does have benefits because no apps interfere with it, the problem is that it doesn't work super well with other apps, sometimes the theming is off, and it doesn't work well with other apps, installing apps takes much longer, and it isn't as easily started from the command line.

Edit: typo

load more comments (1 replies)
[-] turkalino@lemmy.yachts 16 points 8 months ago

Flatpak is fantastic for end-user GUI applications

Flathub is also great, but the fact that it's really the only repo that flatpak maintainers are using concerns me. I know I'm dreaming, but I would love to see some sort of federated or P2P hosting

[-] Shimitar@feddit.it 14 points 8 months ago

Its a solution to one of the typical Linux issues. Its a step toward overcaming the fragmentation of Linux package managers.

I don't personally like it too much, I prefer the distro package stuff, but I understand the app developers cannot manage a plethora of different package formats.

Distro maintainters should, but its clearly more and more a massive task for different distros to keep up with the amount of apps out there.

Also, npm, pip and the various "packaging" ways existing add to the chaos.

I see distro package managers converge toward providing basic packages for the general system and some other solution like flatpack to provide additional stuff.

I think it would be wrong for flatpack/containers to replace package managers as well, it's not their scope.

load more comments (1 replies)
[-] WalnutLum@lemmy.ml 13 points 8 months ago

As a guix/nix user

Please, no more copies of the same dependencies 10 times over. My hard drive is tired.

load more comments (1 replies)
[-] tsugu@slrpnk.net 13 points 8 months ago

I use it as the primary way of installing apps on my Steam Deck, as well as my Ubuntu PC (I also use Snap over there). The apps installed via Flatpak just work, so I have nothing to complain about.

[-] captain_aggravated@sh.itjust.works 13 points 8 months ago

Some of the under-the-hood implementation of Flatpak irritates me, like why the hell are we installing software in /var? Using it with the terminal is a pain because of the org.something.SomeThing shit it does, and I think Flatpak gives you all the drawbacks of app sandboxing with none of the benefits. It likes to not see the whole file structure; for instance I found the Flatpak version of Steam to be unusable because it wouldn't see anywhere I wanted to put my games library. That needs to be fixed.

That said, I think it's the better of the three all-distro package managers, it's got a central repository and package manager unlike Appimage so it's a place to publish and get stuff, and it's not tied to Canonical so it's obviously better than Snap.

load more comments (6 replies)
[-] erwan@lemmy.ml 13 points 8 months ago

I love them. They make the immutable distributions possible.

We need to stop with the idea of shared libraries, it's nice on the paper but in practice you only save a bit of disk space and it's a pain for developers to package for different distributions.

Distribution packages are great for core components of the system, or utilities everyone needs, but for end users applications something like flatpak makes more sense. This way it can be packaged by the upstream developer for all distributions, and sandboxing adds a layer of security. You wouldn't install an app that have all permissions on mobile, why do it on desktop?

[-] OR3X@lemm.ee 11 points 8 months ago

They have their uses. In particular they're useful for easily getting applications your system repositories don't have or getting more up to date version of applications. Downsides are certainly the space all the redundant dependencies take up and the sandboxing can be a PITA especially if you have an application that needs to run another application. Overall I think they're the best "third party" package system available but they're not great.

[-] Tekkip20@lemmy.world 11 points 8 months ago

I prefer Flatpaks because it's a nice easy way of getting software without the chance of broken or missing dependencies for a program.

Much better than Snaps, snaps is flatpaks but MUCH worse and slower.

[-] darkphotonstudio@beehaw.org 11 points 8 months ago

very cool and awesome

[-] Flaky@iusearchlinux.fyi 10 points 8 months ago* (last edited 8 months ago)

I got sick and tired of the AUR for the simple packages so I started using it for most things I would use the AUR for, and I'm very happy with it. I think some packages have issues with default permissions - I was wondering why 86Box would forget my hard drive images but then I realised the permissions on my home folder weren't set properly - but that can be sorted anyway.

[-] fruitycoder@sh.itjust.works 9 points 8 months ago

Great to me. My personal favorite piece is the portals system built to make permission access easier but transparent to the user. It also helps more pieces of the desktop space interoperate (for example use the system defined file picker instead of needing to ship your own).

[-] Shareni@programming.dev 9 points 8 months ago

How does it stack up against traditional package management and others like AUR and Nix?

I only used AUR for a few packages (<5 at a time). It's to be avoided and only used if the other options are a massive pain (unless it's an official package).

Then I left Arch and eventually landed on MX. During that time Nix with home-manager has slowly replaced flatpak, and I don't even have it installed anymore. Nix is better in every way, except for ease of use.

Flatpak has great gui integration (for gui tools). You can click through everything, and the updates are unified. It usually works perfectly fine if you just need to install a few programs.

With nix, there's a lot more setup, but there are many benefits. You end up with a list of packages, and that's really useful because you can take a fresh install, install nix and home manager, and then run a single line to reinstall everything. You can rollback updates, pin specific versions, install packages from a repo (if it has a flake.nix with outputs), and also configure them. I'm using the unstable branch, and it's giving me bleeding edge packages on Debian. And there's no risk of outdated system libraries, like with flatpak, because it provides everything.

load more comments (6 replies)
[-] rotopenguin@infosec.pub 9 points 8 months ago

My main problem with Flatpak is that it hands temporary /var/run/1000 file links to programs instead of real filenames. That would almost be bearable, if Flatpak also took responsibility for keeping those links from breaking sometime after your next reboot.

If I say "here is a path that an app is allowed to use", flatpak should just allow an open() in there to work. It should not lie about the name of files in there. An app should be able to open a file there, remember that name, and count on being able to access it again in the future.

Other than that, Flatpaks are the bees knees. I love finding something I want to do, finding a solution in the flatpak store, and click-click I'm already doing shit. Finding Windows software is absolute garbage next to this.

load more comments (1 replies)
[-] TheCheddarCheese@lemmy.world 8 points 8 months ago

good enough, still prefer the system package manager for most things though

[-] hperrin@lemmy.world 8 points 8 months ago

Flatpak is very nice. Flathub is very nice. Flathub’s developer documentation is shit covered shit.

[-] corsicanguppy@lemmy.ca 8 points 8 months ago

Banned at both my jobs; one for security and the other for breaking consistency.

load more comments (1 replies)
[-] alfredb@discuss.tchncs.de 7 points 8 months ago

Don't like it, I try to avoid it wherever I can.

[-] zephr_c@lemm.ee 7 points 8 months ago

I still prefer traditional packages, but I get why devs of complicated graphical apps with lots of dependencies hate them. As for Flatpak specifically, I'm not super impressed. It's just going to get more annoying over time having more old versions of all their libraries and more and more apps that aren't updating to the latest version so they eat up a ton of drive space and give constant notices to harass the devs, but out of all the major distro agnostic options they suck the least and they're getting better the fastest, which is why I think they've pretty much won at this point. I'm not currently using them, but it's pretty much inevitable that I'll have to at some point, and overall that's probably more good than bad. I think AppImages could have been better if the lead dev wasn't a walking, talking collection of weird hills to die on, but I'm afraid that ship has already sailed.

load more comments (7 replies)
[-] Montagge@lemmy.zip 7 points 8 months ago

I use it but I hate how much space it uses and I hate when I update flatpaks I have no idea how much is going to download.

load more comments (1 replies)
[-] lagomorph@rabbitea.rs 7 points 8 months ago

@tet @linux Fundamentally, I'm just not interested in containerizing applications on my host computer. If I needed to do that, I'd use docker, so Flatpaks and such feel redundant.

I also don't like that distros like Ubuntu increasingly force snaps via apt, because it results in an unknown factor in case I ever need to troubleshoot.

AUR works for me best in cases when something isn't in the package manager. it's easier to make a custom aur package as opposed to a .deb

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 08 Mar 2024
197 points (94.6% liked)

Linux

48052 readers
673 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