this post was submitted on 22 Jan 2024
101 points (82.2% liked)

Linux

48256 readers
661 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Flatpaks aren't huge at all. This is a debunked myth. I can't recommend reading this article enough.

all 50 comments
sorted by: hot top controversial new old
[–] taladar@sh.itjust.works 47 points 10 months ago (4 children)

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.

[–] j0rge@lemmy.ml 23 points 10 months ago (1 children)

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.

load more comments (1 replies)
[–] moreeni@lemm.ee 3 points 10 months ago

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.

[–] AProfessional@lemmy.world 2 points 10 months ago

Compression often improves performance as it means reading less data from storage. Deduplication, as flatpak uses it, is free.

load more comments (1 replies)
[–] devfuuu@lemmy.world 28 points 10 months ago (1 children)

But it occupies a freaking crazy amount of space. People do really be on drugs when going with these religious strong stances.

[–] Max_P@lemmy.max-p.me 28 points 10 months ago (1 children)

Yeah last time I tried Flatpak it took like 3 apps to completely fill up my laptop's root partition and use nearly as much space as my Arch install on its own. For some reason they all used a different platform/runtime/whatever they call it. Oh this one uses the latest Gnome 3, this other one the version before, and that other one Gnome 4. Same with KDE apps, they'd also pull different versions of KDE frameworks and Qt versions. How many versions of Gnome and KDE do I need, just run it on whatever's the latest.

Granted, my fault for not having quite a big enough root partition. But I'm skeptical about the methodology of the article because it doesn't match real world experience at all, at least for me.

[–] sxan@midwest.social 27 points 10 months ago (3 children)

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.

[–] SuperSpruce@lemmy.zip 11 points 10 months ago (1 children)

I don't think the article was defending bloated applications. Instead, it was defending Flatpak's use of storage.

[–] sxan@midwest.social 4 points 10 months ago (1 children)

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.

[–] j0rge@lemmy.ml 2 points 10 months ago (1 children)

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@midwest.social 1 points 10 months ago

I'm sure it works fine; the question is about how disk space usage compares.

[–] beta_tester@lemmy.ml 4 points 10 months ago

You had me in the first half, not gonna lie

[–] nanook@friendica.eskimo.com 3 points 10 months ago

@sxan @beta_tester EXACTLY, I am glad SOMEBODY gets it.

[–] Montagge@kbin.earth 22 points 10 months ago (1 children)

I still don't like that flatpak never knows how much it has to download

[–] Delta_44@lemmy.world 4 points 10 months ago
[–] Quackdoc@lemmy.world 17 points 10 months ago

The issue with flat packs is the more you use it, the higher the chance that you get less shared runtimes and the higher the chance of the duplication. And at some points it really does get to awfully ridiculous levels.

A while back, I had run everything I possibly could with Flatpak to the point I'd even make my own Flatpak to try and see how well it would work. Instead of using the AUR. And it worked great for the first little while. I'd installed all of my apps and it was fine, but as I kept using the system, kept installing new apps and not uninstalled the old ones, it really started to build up awfully quick, especially with older apps.

I feel like the usefulness of flatpaks is the inverse parabola, where it's extremely useful in the center use, but when you go to either side of it, it becomes less and less useful.

Apologies for any incoherentcy this was written with a speech 2 text.

[–] beta_tester@lemmy.ml 15 points 10 months ago (1 children)

even on a 64GB (space, not RAM) machine, I would use a flatpak centric installation. The 1GB difference isn't really that important, imo.

[–] milicent_bystandr@lemm.ee 3 points 10 months ago

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.

[–] Quazatron@lemmy.world 14 points 10 months ago (1 children)

My take: native packages for the core OS, flatpaks for desktop applications. Works for me.

[–] maness300@lemmy.world 3 points 10 months ago (1 children)

I only resort to using container formats if native packages aren't available.

[–] Quazatron@lemmy.world 2 points 10 months ago

Fair enough, but I like the fact that I can keep Firefox or Steam from accessing my bank records and holiday photos.

[–] bigkahuna1986@lemmy.ml 13 points 10 months ago (2 children)

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.

[–] beta_tester@lemmy.ml 5 points 10 months ago (1 children)

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.

[–] bigkahuna1986@lemmy.ml 3 points 10 months ago

Gotcha, I didn't realize the author was just driving another nail into that coffin.

[–] SuperSpruce@lemmy.zip 9 points 10 months ago (1 children)

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.

[–] beta_tester@lemmy.ml 4 points 10 months ago (1 children)

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

[–] SuperSpruce@lemmy.zip 2 points 10 months ago (1 children)

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.

[–] beta_tester@lemmy.ml 1 points 10 months ago (1 children)

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.

[–] SuperSpruce@lemmy.zip 2 points 10 months ago (1 children)

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.

[–] beta_tester@lemmy.ml 1 points 10 months ago

Doesn't sound like you shiuld care about one or two gigs 😅

[–] nanook@friendica.eskimo.com 7 points 10 months ago

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.

[–] melroy@kbin.melroy.org 4 points 10 months ago (1 children)

I still hate flatpaks a tiny bit.

[–] the_q@lemmy.world 4 points 10 months ago (1 children)
[–] melroy@kbin.melroy.org 1 points 9 months ago

Due to the big size of all the packages and package dependencies (which also need regular updates) and yet another package manager. I already have APT on Linux Mint, I do not want Flatpak (and also not snap).

[–] Sentau@discuss.tchncs.de 4 points 10 months ago (2 children)

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¿?

[–] beta_tester@lemmy.ml 3 points 10 months ago

Maybe because silverblue already had a runtime installed

[–] Kerb@discuss.tchncs.de 4 points 10 months ago* (last edited 10 months ago)

i honestly havent noticed a diffrence since i switched to a flatpack heavy distro (normal fedora to silverblue)

[–] nanook@friendica.eskimo.com 2 points 10 months ago

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.

[–] x3i@lemmy.x3i.tech 1 points 10 months ago

Well yes but I am not sure that this is the main problem with flatpak containers.

I'd rather point out that this approach creates a bigger attack surface since the containers tend to ship with outdated versions of libraries, frameworks and tools that the actual application relies on because it is now that specific app developer's problem to update them inside of the container. So with this, even an up to date system is not really up to date and might suffer from severe vulnerabilities. I'd say it depends on your application, use case and threat scenario; containerization can make sense but is not the holy grail.