this post was submitted on 12 Jan 2025
669 points (93.7% liked)

linuxmemes

21801 readers
896 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, <loves/tolerates/hates> systemd, 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
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] Shortstack@reddthat.com 2 points 2 days ago (1 children)

    Thank you for explaining that. I'm new to Linux and really didn't understand that snap thing I heard about

    [–] luciferofastora@lemmy.zip 3 points 1 day ago

    In that case, let me add a few more details:

    Deb packages have dependencies on other packages. To install and run a given application, you will have to install other packages (typically libraries the app depends on) too. In the case of using apt, you may see it show a list of packages to install, even when you asked for just one - those other packages are things the one you asked for requires.

    These packages are shared across apps. If I install one app that requires a specific graphics library, then later install another that requires the same library, it won't have to install it again. On the other hand, if some library introduces changes that break something, updating that shared library because one app requires a newer version may break a different app which required the old version and isn't compatible with the new one.

    Snaps on the other hand are self-contained: All the dependencies are included with the snap, frozen into whatever version the snap author chose. You can have multiple different versions of the same snap installed in parallel, and each will have their dependencies isolated from each other and the rest of the system. Additionally, they come with certain security measures like restricting the app's access to the filesystem, network, display etc.

    As a downside, snaps can be larger (but don't have to be, as they can be stored compressed because the dependencies don't need to be available elsewhere) and take a little longer to start (though this has apparently been much improved).

    So they're not generally a bad thing, all in all. I understand their advantages, I respect that they can be a comfortable solution for devs, I like the idea behind the security measures.

    For my personal experience:

    I recall that the Firefox snap had issues as opposed to the deb (among other things, the startup time was atrocious for me), which was how my issues with it started, because it took some effort to figure out how to get a deb version again and make sure I kept getting deb versions. Some other app - I don't recall which one - also had persistent lag issues which were apparently due to some permissions problem, where security evidently hamstrung usability.

    Accordingly, I was somewhat disgruntled with having my working app ripped out from under me and replaced with a worse one and no comfortable way to get back. I had issues with my Firefox profile too, which turned out to be user error on my part, but obviously still annoyed me in absence of an easy migration mechanism between the two.

    Again, these issues may be fixed now, and they might not be issues for everyone in the first place: if you start out with the snap, migration won't be an issue, and if it runs well, it may well be a better solution for you. I personally resent the philosophy of "Here, let me assume you want a different thing and just swap it out for you", but you don't need to share that resentment.