494
you are viewing a single comment's thread
view the rest of the comments
[-] sederx@programming.dev 116 points 1 year ago

But new users don't even know what snaps are. They don't care. We care because we are crazy bastards

[-] ivanafterall@kbin.social 41 points 1 year ago
[-] 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
[-] 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.

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

An AppImage can be sandboxed.

[-] AFLYINTOASTER@lemmy.world 27 points 1 year ago

Here friend, I also didn't know

Snap is a software packaging and deployment system developed by Canonical for operating systems that use the Linux kernel and the systemd init system. The packages, called snaps, and the tool for using them, snapd, work across a range of Linux distributions[3] and allow upstream software developers to distribute their applications directly to users. Snaps are self-contained applications running in a sandbox with mediated access to the host system. Snap was originally released for cloud applications[4] but was later ported to also work for Internet of Things devices[5][6] and desktop[7][8] applications.

[-] Mio@feddit.nu 1 points 1 year ago* (last edited 1 year ago)

You must have a container to be able to run a different library version?

Why not run like Android API version level?

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

So (having tried various distro for almost 2 decades now, but always reverting to windows) the two useful things as I read that are 1) not having to know thst some bullshit distro doesn't use apt and you need to figure out wtf the package manager is because this distro is a special snowflake and they wanted to show the world by being a bitch and not using apt; and 2) direct from devs, which is nice and imo preferred.

But like... native packages mostly handled this? I've been watching from the sidelines for a few years as this happened and I'm still like 'this is a solution looking for a problem, and adding complexity in the name of simplicity'.

Can I get a tl;dr on flatpak? I think it's basically snaps but again 'we can make this standard better! by creating another fragment to the available standards!' which is just, ugh.

That kinda is (one of) the big issues with Linux, in my eyes - everyone thinks their shitty implementation is best, and this happens for everything, and so instead of having one standard for everything you have 53 and none of them get the proper dev time and so 'I can do this better' and now you have 54 standards and [...]. Like, it's cool to be able to patchwork together the special sauce of 18 distros manually, but like... There could be consolidation and then 1 would have the special sauce of 18 in a user-friendly iso instead of taking 35 hours to get working. As a user, I want shit to just fucking work, or be moderately easy to get. Adding more fragmentation to the space is doing a disservice to the whole community.

My thoughts.

[-] Magister@lemmy.world 4 points 1 year ago

I'm using Linux for almost 30 years and never use snap or flatpak. I install native apps with apt or pacman or whatever.

[-] LainOfTheWired@lemy.lol 2 points 1 year ago

I'm not completely sure but don't flatpaks offer good sandboxing. If they do it could be a good idea for people who use/need proprietary software like steam and zoom so when you run those programs at least it can't read through your files and stuff

[-] cley_faye@lemmy.world 2 points 1 year ago

You don't need to break everything that exists, cause maintenance issues and incur that much overhead to have sandboxing. The security features that allows sandboxing in the first place are also available for regular binaries not installed in some weird ways, with all their advantages and flaws.

Snap is just Canonical's way of getting more control over things. The only upside of Snap was "easier distribution", which turned out to not be that true. The downsides, however, especially regarding maintenances and software updates, are very real.

[-] fraydabson@sopuli.xyz 14 points 1 year ago

The problem is they don’t care until it becomes an issue which by then becomes harder to fix. I also just really hate snap lol

[-] jimbo@lemmy.world 2 points 1 year ago

When would it become an issue?

[-] Jumuta@sh.itjust.works 8 points 1 year ago

I think they would care if they knew the benefits of not having snaps.

There's little to no advantage in having them, so why have them?

[-] RmDebArc_5@lemmy.ml 5 points 1 year ago

Snaps just create additional confusion

Do they really cause confusion? Or do they make software "just work" which is much more important to a new user?

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

It’s confusing if there are more than one version of an app and the fact that the command to install one installs the other doesn’t make it better

There's already more than one version without snap, it's already a confusing mess. Not all distros are compatible with the exact same binaries. And people probably don't want to compile everything form source.

Snap could potentially unify things, and remove all of that confusion.

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

And then Canonical would control Linux apps, sounds like a good idea

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

well the first one definitely to a new user, the secod one it "just works" in the same way Fallout 76 did.

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

it was confusing for me when apt install Firefox installed the snap version

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

Flatpaks are just as easy to use without the drawbacks of snaps. There's no reason to use snaps excet for Canonical pushing them on end users.

And frankly snaps frequently don't work well, that's the entire reason people hate them.

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