494
you are viewing a single comment's thread
view the rest of the comments
[-] IHeartBadCode@kbin.social 82 points 1 year ago

I am so sorry this got so long. I'm absolutely horrible at brevity.

Applications use things called libraries to provide particular functions rather than implement those functions themselves. So like "handle HTTP request" as an example, you can just use a HTTP library to handle it for you so you can focus on developing your application.

As time progresses, libraries change and release new versions. Most of the time one version is compatible with the other. Sometimes, especially when there is a major version change, the two version are incompatible. If an application relied on that library and a major incompatible change was made, the application also needs to be changed for the new version of the library.

A Linux distro usually selects the version of each library that they are going to ship with their release and maintain it via updates. However, your distro provider and some neat program you might use are usually two different people. So the neat program you use might have change their application to be compatible with a library that might not make it into your distro until next release.

At that point you have one of two options. Wait until your distro provides the updated library or the go it alone route of you updating your own library (which libraries can depend on other libraries, which means you could be opening a whole Pandora's box here). The go it alone route also means that you have to turn off your distro's updates because they'll just overwrite everything you've done library wise.

This is where snaps, flatpaks, and appimages come into play. In a very basic sense, they provide a means for a program to include all the libraries it'll need to run, without those libraries conflicting with your current setup from the distro. You might hear them as "containerized programs", however, they're not exactly the Docker style "container", but from an isolating perspective, that's mostly correct. So your neat application that relies on the newest libraries, they can be put into a snap, flatpak, or appimage and you can run that program with those new libraries no need for your distro to provide them or for you to go it alone.

I won't bore you on the technical difference between the formats, but just mostly focus on what I usually hear is the objectionable issue with snaps. Snaps is a format that is developed by Canonical. All of these formats have a means of distribution, that is how do you get the program to install and how it is updated. Because you know, getting regular updates of your program is still really important. With snaps, Canonical uses a cryptographic signature to indicate that the distribution of the program has come from their "Snaps Store". And that's the main issue folks have taken with snaps.

So unlike the other kinds of formats, snaps are only really useful when they are acquired from the Canonical Snaps Store. You can bypass the checking of the cryptographic signature via the command line, but Ubuntu will not automatically check for updates on software installed via that method, you must check for updates manually. In contrast, anyone can build and maintain their own flatpak "store" or central repository. Only Canonical can distribute snaps and provide all of the nice features of distribution like automatic updates.

So that's the main gripe, there's technical issues as well between the formats which I won't get into. But the main high level argument is the conflicting ideas of "open and free to all" that is usually associated with the Linux group (and FOSS [Free and open-source software] in general) and the "only Canonical can distribute" that comes with snaps. So as @sederx indicated, if that's not an argument that resonates with you, the debate is pretty moot.

There's some user level difference like some snaps can run a bit slower than a native program, but Canonical has updated things with snaps to address some of that. Flatpak sandboxing can make it difficult to access files on your system, but flatpak permissions can be edited with things like Flatseal. Etc. It's what I would file into the "papercut" box of problems. But for some, those papercuts matter and ultimately turn people off from the whole Linux thing. So there's arguments that come from that as well, but that's so universal "just different in how the papercut happens" that I just file that as a debate between container and native applications, rather a debate about formats.

[-] Agent641@lemmy.world 18 points 1 year ago
[-] DerisionConsulting@lemmy.ca 10 points 1 year ago* (last edited 1 year ago)

Take that person's post, comparing it to cooking.

Sometimes you use a ~~Library~~ pre-made sauce or spice blend as part of a recipe, so you don't need to waste time remaking something that is commonly used.

Every so often, a company will tweak the recipe for the things you are using, but it still basically tastes the same. Sometimes they just decide that now it's salty instead of sweet, so it would complete ruin the dish you would like to make.

The recipe you are using assumes you live in Australia where the new version of the sauce/spice blend is more common, but where you live still only sells the old version.

So now you can either wait for the store to sell the new sauce/spice blend, import it from Australia, or try to make it yourself. But you might have another recipe that still needs/uses the old sauce/spice blend. Needing to have both can lead to issues where you use the wrong one, ruining the food you are trying to make.

This is where ~~snaps, flatpaks, and appimages~~ those dish-in-a-box kits come into play. They'll have the correct version of the spices/sauces you want, so it doesn't really matter which version you have in your kitchen.

Snaps branded dish-in-a-box kits are developed by Canonical, and they can be kinda weird. You need to check ~~for updates~~ if you need to re-buy them manually, and you can only get them from the "Snaps Store". Other dish-in-a-box kits allow you to get them from whichever store you want, and will automatically re-order when needed.

And that’s the main issue folks have taken with snaps. If you ~~have 50+ programs~~ are making a meal with 50+ dishes, and you need to constantly check if you need to rebuy them one by one, it gets old quickly.


Also, Snaps takes up a lot of room, and generally just kinda suck compared to installing things normally or through flatpack.

[-] Lmaydev@programming.dev 17 points 1 year ago

Sounds like docker with a load of extra steps.

[-] LordOfTheChia@lemmy.world 18 points 1 year ago

I think of snap and flatpack as docker containers but for GUI apps.

There's more differences of course, but I take that as the gist.

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

My first introduction to them was "hey why does startup take so long now? This machine used to be so much faster." and realizing it was snapd that was eating up the time. It's also not exactly efficient at using storage compared to native installs of dependencies.

For a desktop these may not be noticable but for low power embedded systems it's a nightmare. It should be an option but really isn't ready to be default. And when appimages are already a thing that work well I don't really see the point.

[-] ichbinjasokreativ@lemmy.world 1 points 1 year ago
[-] smpl@discuss.tchncs.de 1 points 1 year ago

An AppImage can be sandboxed.

[-] COASTER1921@lemmy.ml 1 points 1 year ago

I'm not suggesting appimages are better, just that I've had fewer problems with them relative to snaps. Ultimately I'd argue all attempts to remove dependencies are not ready to replace typical packages for low powered systems. For desktop Linux the performance difference is negligible anyway.

this post was submitted on 17 Nov 2023
494 points (89.8% liked)

linuxmemes

21280 readers
1080 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 2 years ago
    MODERATORS