Disclaimer
Flatpak uses OSTree, like Fedora Atomic Desktops (Silverblue, Kinoite etc) and similar to BTRFS snapshots.
So many files are deduplicated and linked, not actually there
https://gitlab.com/TheEvilSkeleton/flatpak-dedup-checker
50GB without
31GB with deduplication
21,4GB with BTRFS compression
Ananace ( @ace@lemmy.ananace.dev ) 35•7 months agoA lot of that data doesn’t actually exist, ostree hardlinks data blobs internally, so the actual size on disk is much smaller than most disk usage tools will show.
Thanks! The same goes for ostree system versions and BTRFS snapshots probably.
I have a similar problem with virt-manager and I think that doesnt create dynamically allocated qcow2 containers?
Iapar ( @Iapar@feddit.de ) 4•7 months agoWhat does “ostree hardlinks data blobs internally” mean?
Ananace ( @ace@lemmy.ananace.dev ) 9•7 months agoFlatpak uses OSTree - a git-like system for storing and transferring binary data (commonly referred to as ‘blobs’), and that system works by addressing such blobs by hashes of their content, using Linux hardlinks (multiple inodes all referring to the same disk blocks) to refer to the same data everywhere it’s used.
So basically, whenever Flatpak tells OSTree to download something, it will only ever store only copy of that same object (.so-file, binary, font, etc), regardless of how many times it’s used by applications across the install.
Note that this only happens internally in the OSTree repo - i.e./var/lib/flatpak
or~/.local/share/flatpak
, so if you have multiple separate Flatpak installations on your system then they can’t automagically de-duplicate data between each other. Iapar ( @Iapar@feddit.de ) 5•7 months agoThank you for the explanation.
Vilian ( @Vilian@lemmy.ca ) 19•7 months agohttps://gitlab.com/TheEvilSkeleton/flatpak-dedup-checker
here a script to compare the size without or with deduplication
Thanks!
50GB without 31GB with deduplication 21,4GB with BTRFS compression
And I have to say I have many apps. Not as many anymore, and no EOL runtimes apart Onionshare anymore.
Still ( @Still@programming.dev ) 8•7 months agoI think at one point I had like 2.5 tb of stuff stored on my 2 tb drive in my laptop, deduplication and btrfs compression is fun
Diabolo96 ( @Diabolo96@lemmy.dbzer0.com ) 8•7 months agoThat’s why I think AppImage is the best. Despite needing to pack everything it needs it’s always far more lightweight than flatpak. I’d rather download a 50mb appimage than several gigabytes of an entire OS libraries and then the updates requiring roughly the same size. That and I have a shitty internet
I dont think that is true at all. Appimages are slowest and have many disadvantages like
- no repo (= virus danger)
- no app desktop entry
- no updates
- no deduplication of libraries
Unmapped ( @Unmapped@lemmy.ml ) 4•7 months agoI always use the app image if they are available. As for being slow I never noticed.
No app desktop entry is one on the reasons I like them. If its one I use a lot I make a hotkey to open it. But there are ways to add them. There is even a tool that makes its easy to do.
No updates. I’m not sure how exactly, but everyone I use auto updates when I open them. I originally had a issue of it breaking my hotkey cause the file name would change because of the version number going up. Which I fixed by using a *.
The appimages I used dont autoupdate. But even if, you are in some weird “windows is bad” state from years ago, before the MS Store, and even without desktop entries.
There simply is no reason for appimages other than on systems like Tails that are not made to install apps. But I also think Tails is pretty annoying and should allow flatpak installs in the permanent storage partition.
Diabolo96 ( @Diabolo96@lemmy.dbzer0.com ) 2•7 months agoThere was an app that dealt with desktop entry and auto-update but it hasn’t bee updated since a few years already.
no repo (= virus danger)
Can be remedied with an official store/ being distrubuted by the devs themselves instead of random people. Appimage isn’t getting a tenth of the support flatpak is getting.
no deduplication of libraries
Might worth it if you have dozens of very heavy apps but it’s totally not the case if you only need a few simple programs.
Yes, Appimages lost the race. The apps are old afaik, and often dont work. It sucks when distributors use Appimages as they are simply a bad app format.
- SimpleX
- Balena Etcher
There is a way to convert Appimages to Flatpaks, but I havent got that complete.
callyral [he/they] ( @callyral@pawb.social ) English2•7 months agono app desktop entry
they can be added manually but yeah i get how that’s inconvenient.
just run
./appimage.appimage --appimage-extract
and you have the .desktop file there, then just edit the path to the executableYes but that is unimportant. This is not user friendly at all. I do that all the time for random stuff, but especially on GNOME the system hides stuff like that away from users and thats okay.
CrabAndBroom ( @CrabAndBroom@lemmy.ml ) 11•7 months agoTBH I dislike Appimage purely because I can’t be bothered to go and check them all individually for new versions all the time, it feels like being on Windows again. I don’t mind a little bloat for the sake of convenience. But that’s just personal preference of course.
Diabolo96 ( @Diabolo96@lemmy.dbzer0.com ) 2•7 months agoThere was an app that dealt with this but it’s since been abandoned.
janAkali ( @janAkali@lemmy.one ) English7•7 months agoI have all apps I use daily in the appimage format. Yesterday I decided to try btrfs for my root partition and did my annual Linux reinstall. All my apps were already there and ready for work from the start.
I also have a usb flashdrive always on me with the same appimages. Just in case I’d wipe a hard drive by accident and wouldn’t have an internet connection or something like that (in case of emergencies). You can’t do this with flatpaks or snaps. Chewy ( @Chewy7324@discuss.tchncs.de ) 2•7 months agoIn my experience updates aren’t that big. The flatpak cli ux is just confusing to read how much data actually has to be downloaded because of deduplication.
Diabolo96 ( @Diabolo96@lemmy.dbzer0.com ) 1•7 months agoI have like 4 gigs of flatpak updates I keep unchecking because at my horrible internet speed it would take the entire day if not more to download. Honestly, if you’re right then this is a horrendous design flaw.
Papamousse ( @Frederic@beehaw.org ) 8•7 months agoWhy use flatpak?
Because its a modern package system that is free, focused on making every app run, has isolation, sandboxing and a permission system
miss_brainfart ( @miss_brainfart@lemmy.ml ) 17•7 months agoAnd brings the most recent version of something to any system. I’m astounded sometimes by how much a native package can lag behind
juli ( @juli@programming.dev ) 3•7 months agoBecause has many advantages
MonkderZweite ( @MonkderZweite@feddit.ch ) 3•7 months agoConvenient libraries/frameworks are fat. Because they are fat, they need frequent updates/security fixes, breaking codebase more often. With flatpack, developers can freeze lib versions at a convenient point, without caring for system dependencies.
drwankingstein ( @drwankingstein@lemmy.dbzer0.com ) English6•7 months agoFlatlack is weird. Sometimes it’s really good, but then other times depending on what you install it really bloons up.
Those are unmaintained apps and you probably shouldnt use them. Poorly this is not as obvious and cant be enforced.
magikmw ( @magikmw@lemm.ee ) 1•7 months agoOne gotcha is installing both as user and root, getting two sets of dependencies. I only found out after a year or so of consciously using flatpak.
I’m now taking care to make sure I only use flatpak as root. Maybe not the most secure.
tanja ( @tanja@lemmy.blahaj.zone ) 5•7 months agoRemoving /repo is not considered safe, but I just removed its contents anyways and then just ran a repair.
That actually resulted in more available disk space than after running the garbage collection.
And my flatpak apps still work 🤷♀️
unalivejoy ( @joyjoy@lemm.ee ) English10•7 months agoI can’t tell if this is the new “Delete System32” or not.
callyral [he/they] ( @callyral@pawb.social ) English4•7 months agono, that’d be deleting /boot, /usr or /var
Weird?