Flatpaks aren’t huge at all. This is a debunked myth. I can’t recommend reading this article enough.
I still don’t like that flatpak never knows how much it has to download
even on a 64GB (space, not RAM) machine, I would use a flatpak centric installation. The 1GB difference isn’t really that important, imo.
To me it is. 1gb itself isn’t so bad, but I have a handful of things I could save 1gb on, so I do it for all when it works suitably for me.
Maybe I’m in the wrong here but I would think focusing on management time for Flatpak vs whatever would be the important part, not disk space usage.
What do you mean by that? In terms of time management I don’t really notice a difference between traditional package managers and Flatpak images. Flatpak’s partial downloads tend to make runtime updates faster, but they also update more often so you end up downloading more updates, so I don’t think there’s any advantage or disadvantage in that.
My premise is that sysadmin/user time is more expensive than drive space. Seeing some real world examples of how Flatpak could save time over the long run would probably be beneficial for increasing usage.
Keep in mind I have no dog in this fight, I don’t have a preference of one over the other. I only made that comment because everytime I see a Flatpak reference on the web it’s always in the context of disk usage.
I’m the author of the blog post and a former sysadmin, there’s really no maintenance to do with flatpaks, not having to deal with traditional package manager issues have removed that problem completely from my life.
Distros may or may not provide this functionality, but on my systems they’re set up for zero maintenance of the OS base image and the flatpaks via service units and then I don’t have to do anything.
I don’t think many sysadmins will be dealing with Flatpak. For server solutions, there’s Docker. For workspace management, neither Flatpak nor package managers provide much in terms of management features.
Silverblue has some nice tricks for workstations (i.e. background updates, non-volatile system partitions, easy upgrades+rollbacks) but I’m not sure how much management a normal Linux install requires in the first place. Very few Linux distros are written so they can be managed effectively by sysadmins.
If I was running business workstations on Linux, I’d probably prefer Flatpak over distro specific package managers most of the time.
No, you’re right but people keep saying that space is a concern when thinking about flatpak. This article clearly shows that that’s not an issue.
Gotcha, I didn’t realize the author was just driving another nail into that coffin.
I am confused a little. The space taken by silver blue increased by around 3 gigs but the space taken by workstation increased by 4 gigs. So flatpak actually resulted in less space being used the apps. Is this some sort of faulty space usage reporting¿?
Flatpak shares runtimes (and files) between downloads. A lot of what would otherwise be considered dependencies are part of the base runtimes many Flatpak images use.
As a result, a 5kB Flatpak image on its own may cause gigabytes of downloads, but adding a fully featured operating system with image and photo editors may only be a couple of hundred megabytes more than that.
Mixing Flatpak and traditional packaging is always the worst, because you’ll probably end up with duplicates, but going full Flatpak or full package manager should barely make a difference.
In return of the ±10% additional disk space used, you do get a lot of extra features that traditional distros aren’t able to provide.
There is one exception: the Nvidia runtimes. They’re downloading hundreds of megabytes with each update, ignoring deduplication, because of a previous copyright issue with distributing Nvidia’s drivers (I believe Nvidia allows you to redistribute their drivers now, but I think Flatpak just hasn’t caught up). It doesn’t help that one of the members of the Nvidia-Flatpak packaging team has made the (right, tbh) decision to no longer use Nvidia so the solution may take a while.
Are runtimes from the fedora flatpaks remote used by apps that are downloaded from flathub. Because the gnome apps that are installed by default in silver blue are from fedora flatpak remote so I am guessing the runtimes are also from the same remote
Maybe because silverblue already had a runtime installed
They sure are huge on my system and spread their shit over half the file systems. Firefux is a complete disaster now that it is flatpack.
I’m curious on what would happen if you installed lots more applications. If it started at a 3.8GB disadvantage but narrowed to 1.2GB after installing a bunch of apps. Most serious systems will have lots of apps installed and a decent amount of storage, at least 100GB.
As soon as you’ve got enough storage you don’t need to care anymore. Just like I moved all my photos and videos to immich and I don’t need to care about my phone storage anymore
I still care about storage used. I currently use 150GB on my phone, although there are some low hanging fruit to get that down to ~100GB used. Many phones still have 128GB of internal storage and no MicroSD slot.
And having storage efficient OS’s can allow for use on older hardware, less waste, and even unholy Multi-Boot setups.
Perhaps this is the reason why I have storage devices with lots of storage. I have 3TB on my laptop and 512GB (256 internal and 256 MicroSD). It’s liberating not to care much and frustrating to be constantly running on empty, especially with “grey goo” app caches or updates.
May I ask what’s filling uo that space since you respond to my comment about having moved all media to a server which I can access instantly from anywhere.
On my phone’s internal storage: 50GB of apps, 20GB devoted to the system (Android has gotten so bloated), and a few gigs of videos and photos also on my Micro SD card. I’m not deleting those files until my storage runs low because it serves as a backup.
On my phone’s microSD card: 50GB of video, 8GB of pictures, 6GB of music, and 4GB of podcasts.
On my laptop: 500GB of games, 100GB of backups, 50GB of video, 75GB of system stuff, 150GB of various apps.
This is the exact same mentality that’s resulted in the overconsumption and waste that’s currently killing the planet. “Bandwidth is cheap! Diskspace is cheap! May as well be sloppy and wasteful, because resources are cheap.” Sound familiar? It has an impact on real world resource usage; the computer industry alone is driving strip-mining as we try to satisfy demands for more rare elements needed to make computers-
Bandwidth and storage are cheap… if you live in a first-world country. Increasing storage demands drive up real-world crass consumerism to upgrade, upgrade; it allows developers to be lazy and write unoptimized, crap software and distribute web applications packaged up and thinly disguised as desktop apps that consume significants percentages of CPU, memory, and disk at (apparent) idle, as they waste bandwidth polling the network - I’m looking at you, almost every Electron app.
If you think sloppy and wasteful software (flatpack as an example isn’t sloppy, but it is wasteful) isn’t responsible for real world wasteful consumerism, ask yourself why you upgraded your last computer. Was it too slow? Not enough memory? Did you buy a bigger disk because it was pretty?
People bitch about proof-of-work cryptocurrency wasting electricity, and rightly so. But they do it while installing shit 1GB Electron chat programs on their computers, and 70MB calculators on their phones. Which they then upgrade because it’s “too slow,” or because they need “the bigger GBs.” Flatpack and Snap aren’t as bad as Node, but they’re part of the “waste” trend, make no mistake.
I don’t think the article was defending bloated applications. Instead, it was defending Flatpak’s use of storage.
You are right, and I understood that, but the methodology he uses - and therefore the conclusions - is wrong. He tests two virgin installs, adds some applications, and reaches a conclusion. It’s like saying that I watched a baby be born and live until she was five, and so I’ve proven humans live forever. I also want him to confirn that no Flatpack was used for any packages on the Workstation 36 machine; I can’t speak for Fedora, but on Arch AUR there are some packages that depend on Flatpack and will install it because that’s the only way upstream releases it. So you can easily unintentionally end up with Flatpack on your Arch box if you’re not careful.
Let’s see a real-world, used desktop comparison with multiple package upgrade cycles after a year.
I didn’t use any flatpaks on the workstation install. I’m about three years with this setup on 4 computers through multiple OS updates, works great.
@sxan @beta_tester EXACTLY, I am glad SOMEBODY gets it.
You had me in the first half, not gonna lie
i honestly havent notice a diffrence since i switched to a flatpack heavy distro (normal fedora to silverblue)
What it means is that you’re getting the libs the program uses with the program instead of using the system libs, this defeats the whole point of shared memory and wastes RAM, it is inefficient but saves them from having to compile for each distro, still, the system loader has to resolve and load these making loading slower, if they had to include the libs, a better way to do it is to simply compile the binary as a static binary with all the libs compiled in, at least that way it saves the loader overhead.
I don’t really care but I have a 512GB drive, a few extra GB of NVidia packages or whatever means nothing. I just enjoy the containerization and not having to give it my root password to install things. I’m not on an immutable distro and not having an app invade my core system (in whatever way the packager felt necessary) feels really good.
I’m watching the immutable space though, once it matures a bit more might try it. openSuse has an elegant and simple take on it with BTRFS snapshots.
I still hate flatpaks a tiny bit.
So you only need to use two technologies that add complexity and cost performance (filesystem compression and deduplication) to get to the point where you are still 10+% higher in disk space use? I am not sure your post supports the argument it is trying to make.
Deduplications comes with flatpak for free. Both systems had filesystem compression, so this one doesn’t count. 10% higher disk space is neglectible on most systems and the containerisation makes it worth it.
Author here. The distro comes with the filesystem compression and deduplication already set up and I don’t need to manage it, so of course I’m going to use it.
Given the cost of storage I have no problems spending a barely noticeable amount of space to use flatpaks given all the problems they solve.
given all the problems they solve.
?
End of text?
What’s the use case where storage is at enough of a premium to matter? None of this is targeting a server where you’re getting silly with optimizing storage, and even the smallest storage on most consumer facing hardware is filled by media one way or another. It straight up doesn’t matter to a reasonable end user. Storage is less than dirt cheap.
Ah yes. The mindset of: I have lots of money to spend on storage, so we shouldn’t care about optimisation for less fortunate users.
No, the mindset that the storage is less than pennies worth and this usage would have to explode massively to even approach negligible.
A device that is affected in any way by a GB of storage space is going to choke on 50 other things way before you get to that.
I have a cheap laptop with a small SSD dual booting Windows. To me, a couple of GB does matter.
Not when the manufacturers solder the storage and mark it up 1000+%. For many devices, 1GB is still worth over $1.