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
    • DangerousInternet@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      11 months ago
      /flatpak-dedup-checker-main$ ./flatpak-dedup-checker  
      Directories:                /var/lib/flatpak/{runtime,app}  
      Size without deduplication: 17.52 GB  
      Size with deduplication:    11.18 GB (63% of 17.52 GB)  
      Size with compression:      7.23 GB (41% of 17.52 GB; 64% of 11.18 GB)  
      

      I guess btrfs is awesome…

      • halm@leminal.space
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 months ago

        Oh, my poor head! I’ve sworn off flatpak until now because it took up so much disc space, and now you’re telling me it uses extradimensional file storage like some kind of TARDIS system?

        • DangerousInternet@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          11 months ago

          No, that is about file system, not Flatpaks. Sure Flatpaks also use shared dependencies, but btrfs pushes it even further. I also avoided Flatpaks until switched to atomic distro, where flatpaks are primary way of installing apps. Common distros do not need them really, until you run some old Debian lol and you want newer software.

          • halm@leminal.space
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            Ah, I was confused because you used a flatpak deduplication command. Okay, got it. So BTRFS with flatpak is what will do my head in 🙂