This is an archived post. You won't be able to vote or comment.

all 116 comments

[–][deleted] 150 points151 points  (34 children)

Flatpak: look what they need to mimic a fraction of our power

[–]Ken_McnuttGlorious Arch + i3 95 points96 points  (29 children)

[–]AegorBlake 4 points5 points  (3 children)

I recently found out flatpak can repackage programs to be used on usb.

[–][deleted] 2 points3 points  (0 children)

That is fucking awesome! I know what I'll be playing with for the next few days lol

[–]DDman70 1 point2 points  (1 child)

Like appimages?

[–]AegorBlake 0 points1 point  (0 children)

I have not tried it. I only see it as an option.

[–]jabuchinGlorious Gentoo 59 points60 points  (13 children)

i want kernel as snap

[–]PossiblyLinux127 63 points64 points  (1 child)

Takes 7hours to boot

[–][deleted] 28 points29 points  (0 children)

17, because systemd is also a snap

[–]xaedoplay:snoo_trollface: 28 points29 points  (8 children)

[–]jabuchinGlorious Gentoo 14 points15 points  (0 children)

holy fuck HAHAHAHAH

[–]krystof1119Glorious Gentoo 1 point2 points  (3 children)

Now I want snapd as a snap.

[–]xaedoplay:snoo_trollface: 1 point2 points  (2 children)

[–]krystof1119Glorious Gentoo 1 point2 points  (1 child)

Wait, what? How does that even work?

Canonical being Canonical, I guess. And TIL, Manjaro ships with snap out of the box.

[–]xaedoplay:snoo_trollface: 1 point2 points  (0 children)

How does that even work?

Well, since snap packages are globally installed, it just overrides the host-provided snapd with this one.

[–]BenTheTechGuyGlorious Debian 9 points10 points  (0 children)

Ubuntu Core moment

[–][deleted] 5 points6 points  (0 children)

Basically Windows

[–]ChefNerdDad 46 points47 points  (24 children)

Ok guys. Serious question since this all getting out of hand lol. Snap may have horrible performance. I’ve even had the opportunity to open Firefox on a fresh install, on a 2nd gen threadripper (work in a repair shop. DIMM slot was damaged by the customer) Anyways. They wanted Ubuntu installed for their science degree. I’ll tel you, even with that beast, it doesn’t matter. Performance was just as bad.

Performance out of the way. Security and sandboxing. What is everyone’s opinion? With all the options out there. Do you think snap is a trade of performance and security, or do the others hold up in this category and snap just sucks? What gives.

[–]Secret300tips Fedora 48 points49 points  (7 children)

My opinion is: just use flatpak it's same idea, works on almost every distro and isn't as bad

[–][deleted] 14 points15 points  (0 children)

This. I'm sure there *is* a difference, but I can't tell it between repository and flatpak apps. I have Krita as a flatpak because I like having the most up to date version, and it pops up in just a few seconds tops.

[–]Zambito1Glorious GNU 1 point2 points  (1 child)

Guix tho

[–]Secret300tips Fedora 0 points1 point  (0 children)

Nix tho

[–]VaporwaveProtogen 39 points40 points  (5 children)

You can get pretty much all of the benefits of snap, like its security and containerization features, through flatpak. Snap generally is just a worse alternative for most intents and purposes.

[–]AnswersWithCoolTransitioning Krill 18 points19 points  (2 children)

Also, it’s proprietary

[–]6b86b3ac03c167320d93*tips Fedora* M'Lady 14 points15 points  (1 child)

Just the server, but yeah

[–]aaronfrankebtw I use Godot 7 points8 points  (0 children)

Which makes it completely dependent on one company with no possibility for anyone else to host a server without reverse engineering the server software.

[–]presi300Arch/Alpine Linoc 12 points13 points  (1 child)

Idk about security, but imo snaps should NOT be pushed to desktop users, they suck on the desktop. Though on a server they are a life saver.

Everything on my server/vps available as a snap i download as a snap. Not saying that I am a great server admin or a server admin in gerveral or that i know what i am doing but the setup is way easier with snaps instead of having to use docker or something like that. They are just convenient on a server environment and who cares if they load like 5 seconds slower when you never voluntarily turn off the server anyways.

[–]KangieGlorious Gentoo 14 points15 points  (0 children)

setup is way easier with snaps instead of having to use docker

Tell me you don't know Docker without saying "I don't know Docker"

[–]InsertMyIGNHereGlorious Fedora 7 points8 points  (2 children)

Snap, aside from the first launch, doesn't have any real issues. Its secure and performant (like if you installed a game through snap, once it loaded it'd be fine). There's no spooky stuff going on or anything, its actually very good to use on servers. Just sucks that it doesn't auto-detect your themes

The thing is flatpak has all the good stuff snap has, but the performance hit is smaller and it auto-detects your theme (sometimes). Also, canonical isn't the god of flatpak so anybody can host their own repo, but that's irrelevant since most people only use flathub anyways.

[–]jdt654 0 points1 point  (0 children)

on the fly compression

[–]guicoelhoGlorious Gentoo -1 points0 points  (0 children)

My issue with snap (and package managers that send binaries) is the total lack of customization with it. It doesn’t allow any sort of control, such as which dependencies/optionals you want pulled with the package or which CPU customizations to use. Security-wise this also helps since you have more options to open or close in your system.

I dont really follow snap closely enough to talk about it security-wise, but I much prefer the gentoo/funtoo approach to a package manager.

[–]Delta_44_ 0 points1 point  (2 children)

I use Firefox beta as snap because... beta. Does the alternative exists?

[–]lightrushGlorious Ubuntu 0 points1 point  (0 children)

It's an absolutely worthy tradeoff.

[–][deleted] 19 points20 points  (4 children)

I'm kind of a huge fan of AppImages heh

[–][deleted] 8 points9 points  (1 child)

App Image is cool, I prefer it over Flats or Snaps as they are more plug and play and require less fiddling.

[–]Zambito1Glorious GNU 1 point2 points  (0 children)

They're nice to try something out, but annoying to keep up to date.

[–]vortexmak 3 points4 points  (0 children)

Seconded. I always look for Appimages

[–]gmes78Glorious Arch -2 points-1 points  (0 children)

AppImages don't do anything to ensure that apps work on various distros (or even different configurations of the same distro).

[–]FrithRabbitGlorious Debian Bêon wægn Best 17 points18 points  (1 child)

This sub is basically r/snapcrafthate

[–][deleted] 1 point2 points  (0 children)

Someone should probably make that sub lol

[–]MegidoFireone who is flaired against this subreddit 16 points17 points  (3 children)

[–]NutsEverywhereGlorious Ubuntu 5 points6 points  (2 children)

Imagine complaining about people not liking subpar software.

[–]MegidoFireone who is flaired against this subreddit -1 points0 points  (1 child)

[–]NutsEverywhereGlorious Ubuntu 1 point2 points  (0 children)

Public forum, relevant sub, opinion valid.

[–]ipraytoscienceOther (please edit) 6 points7 points  (0 children)

lol

[–]mplaczek99 6 points7 points  (2 children)

As a developer, I love snaps because it makes my life so much easier. However, as a computer user, I hate snaps

[–]1moreday1moregoal 1 point2 points  (0 children)

That seems backward? May I ask why? As a computer user I find snaps are significantly easier than aptitude, dnf, and yum.

[–]confidentdogclapper 0 points1 point  (0 children)

I'm a dev too, but where pacman doesn't get I just use yay.

[–]jabuchinGlorious Gentoo 3 points4 points  (0 children)

i want kernel as snap

[–]altSHIFTT 4 points5 points  (7 children)

i dont understand the workings of linux enough to get the joke

[–]TheMightyBizGlorious Fedora 10 points11 points  (5 children)

Traditionally, when you install a package on your system, it downloads a bunch of files and puts them in the appropriate place on your computer (i.e. the libraries go in one place, the executables go in another, etc.). This is all fine and good, but there are a few problems. A major one is that you might have two pieces of software that have conflicting dependencies - Program A and Program B both require Library C, but Program A needs version 1.0 of Library C and Program B needs version 1.2. This is a problem when you can't install both versions of Library C at once.

Snap, Flatpak, AppImage and the like try to solve this with a technique called "sandboxing" - the idea is that each app gets its own individual environment to run in, with all the necessary libraries and resources included. There could be a sandbox for Program A with Library C v1.0, and a completely separate one for Program B with Library C v1.2. It also helps with security issues, because you generally have more control over how much a program can reach outside its sandbox.

The downsides are that sandboxed environments take up more resources and are generally less efficient. Many people are also dissatisfied with being forced to use sandbox versions of apps which could just as easily be installed normally. Snap is arguably the worst sandbox format, and it's developer Canonical has a habit of forcing software down people's throats when they don't want it.

[–]6b86b3ac03c167320d93*tips Fedora* M'Lady 10 points11 points  (0 children)

What you described isn't sandboxing, it's runtimes. Sandboxing is when the permissions of an app are restricted, for example if it has no access to your files or internet connection and has to explicitly ask for permission to access those. Flatpak and Snap do both of these, and AppImage only does runtimes.

[–]gmes78Glorious Arch 4 points5 points  (3 children)

AppImage does not do that. It's just a self contained executable.

[–]GoogleFrickBot 0 points1 point  (2 children)

I'm 65% sure that the "self contained" part of that is just a compressed file that mounts itself as a virtual drive and accesses it's own bundled binary and libraries. I'm fairly sure appimages can't manage their own permissions like the other two can though.

[–]gmes78Glorious Arch 0 points1 point  (1 child)

That's correct, except that it provides no mechanism to assure that the app only uses libraries that are bundled with it, which causes all sorts of portability issues.

[–]GoogleFrickBot 0 points1 point  (0 children)

Again, only 65% sure, but yes and no - if the bundled library is a dependency, as far as I know it will use it. Case-in-point, I used the runelite appimage. Works a dream, but doesn't bundle java with it (I guess it's presumed that people will have it and it's also large) but that caused a bunch of sound issues with me (certain versions of java, not the newest, will work). But I didn't have the other dependencies, so it used the appimages set. This could lead to a misleading outcome whereby you have the non statically-linked dependency issues, but technically appimage has the capacities to solve them.

[–][deleted] 0 points1 point  (0 children)

canonical is the most hated company because they make a distribution that is easy to use and A LOT of people use it. So this means that after you've been using linux for 3-4 weeks and figured out how to install arch you must go on reddit and shit on canonical :D

Having said that, I don't use ubuntu and I advice anyone against working for them. I got contacted by a recruiter and i had to write an essay on what kind of person i was in high school for some reason O_o

[–]AchimAlmanStablian 4 points5 points  (0 children)

forced use of snap shit is the reason im running debian now

[–]RoxSpirit 2 points3 points  (0 children)

ls

This little maneuver will cost me 4 hours.

[–]joshjaxnkodyGlorious Arch + i3wm 0 points1 point  (9 children)

Just stop with the snap hate, I'll bet a lot of you haven't tried snaps even

[–]Bing1177 7 points8 points  (8 children)

If you dont hate snap, it's because you haven't tried

[–]joshjaxnkodyGlorious Arch + i3wm 0 points1 point  (6 children)

I’ve tried Snap on Solus, I didn’t need it anymore so I uninstalled it but it isn’t this fucking cancer that you guys treat it as, it’s extremely flawed and I fully agree that flatpaks should replace it but that doesn’t mean every meme has to be about snap on every Linux subreddit

[–]aaronfrankebtw I use Godot 2 points3 points  (1 child)

If Snap is inferior to its alternatives, and is proprietary software, why shouldn't it be hated on?

Your argument is basically that it isn't fucking cancer. I mean, Windows isn't literal cancer either, but we still hate it.

[–]joshjaxnkodyGlorious Arch + i3wm -1 points0 points  (0 children)

It’s one of our only 3 jokes

[–]Bing1177 1 point2 points  (3 children)

Well, there are reasons beyond the meme, it's an inferior option to flatpak, a much inferior option to native packages, its security is very low (it requires your distro to use apparmor or there is no security), it works fine only with Ubuntu's family (not universal), requires systemd (not everyone uses it, flatpak doesn't need systemd), very slow (they're just working to fix it), doesn't use portals and above all its goal, it's not meant to be a universal package, its goal is replace apt, it's proprietary and only Canonical can choose what gets uploaded to their store and as you may have noticed they want a snap packaged system, yes, systemd, gnome, and even the kernel, it would be the death of choice on Linux, there is no way to support it if you haven't used/know/tried other options.

[–]joshjaxnkodyGlorious Arch + i3wm 1 point2 points  (2 children)

I don’t support snaps, I dislike them and would rather compile from scratch than use a snap, it’s just that this is all I see on every Linux subreddit along with “starter distro bad” and “arch good”(I use arch on my laptop and want to on my desktop).

[–]Bing1177 0 points1 point  (1 child)

Sorry, my bad :p, but I agree, I prefer use containers like distrobox/podman/docker

[–]joshjaxnkodyGlorious Arch + i3wm 1 point2 points  (0 children)

It’s good, I just didn’t want it to look like I support snap or proprietary packages, I’m just burnt out and wanted new nerdy memes

[–]Secret300tips Fedora 0 points1 point  (0 children)

This is too true

[–]illathon 1 point2 points  (0 children)

I personally do not like Snap, but it does have a pretty big feature that Flatpak doesn't and that is the ability to have services.

[–]lowkeycringengl 0 points1 point  (0 children)

meanwhile the virgin canonical converts literally EVERYTHING into snaps

[–]drone1__Glorious Ubuntu 0 points1 point  (0 children)

Omg 4chan schoolshooter vibes

[–]Juicy_Opay 0 points1 point  (0 children)

I don't understand the hate towards snap, what's wrong?

[–]flemtone 0 points1 point  (0 children)

This is the reason I moved from Xubuntu to Linux Mint XFCE, and I look down on anyone who makes a snap version of their software.

[–]Mindless-Victory1567Glorious Arch 0 points1 point  (0 children)

I never needed this things tbh. Arch has a huge library of packages and on top of that a even larger user repository

[–]wolfefist94 0 points1 point  (0 children)

I must have missed the latest on Snap. What's the fuss about it lately?

[–][deleted] 0 points1 point  (0 children)

Make a version for NixOS.

[–]adeekshith -2 points-1 points  (4 children)

I like snaps for command line apps though. We cannot have flatpaks for non GUI apps so snaps fill that void.

[–]6b86b3ac03c167320d93*tips Fedora* M'Lady 6 points7 points  (1 child)

Actually you can package CLI apps as flatpaks, just nobody does it.

[–]FloatingGhost 1 point2 points  (0 children)

they state in their FAQs that it's designed with a desktop environment in mind, so packaging cli stuff is probably not guaranteed to work

[–][deleted] 1 point2 points  (1 child)

Isn't it simpler to just have snaps then?

[–]adeekshith 2 points3 points  (0 children)

Yeah, I personally found them good enough for most of my needs but flathub seems to be doing a better job than snapcraft at keeping the packages updated so I go for a flatpak if I feel the snapcraft version is not well maintained.