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
    19
    arrow-down
    3
    ·
    edit-2
    9 months ago

    Do you know, that Silverblue installed is less than 6gb? Compare with other distros. Now 60 flatpak apps + os will make same 20gb, as other distros fresh install is about.

      • DangerousInternet@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        9 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…

        • Handles@leminal.space
          link
          fedilink
          English
          arrow-up
          4
          ·
          9 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
            ·
            9 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.

            • Handles@leminal.space
              link
              fedilink
              English
              arrow-up
              1
              ·
              9 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 🙂

    • bizdelnick@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      What distros are you talking about? Even if install all available DEs, any distro will take ~10 GiB or a bit more. Default installation is much smaller.

      • DangerousInternet@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        9 months ago

        I remember at the past my allready running distros were always 20-24gb. With allready most apps installed. Like Mint and Workstation. Maybe my memory is not that good and I am wrong… I actually can not say how much is my current Silverblue now, somewhere around 20gb.

        What I wanted to say, Flatpaks sure pull dependencies, but with lots of Flatpaks your next app will be small, like 2gb or maybe 800kb. With atomic distros Flatpaks make even more sense.

        • bizdelnick@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          9 months ago

          There’s no any magic that could reduce Silverblue size, it is based on the same packages as Workstation. Only the installed subset of packages can differ.

          • DangerousInternet@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            Like gnome-tweaks, if you install it in toolbox, it will pull 300mb of dependencies and once installed it is 900mb. Is it magick or 900mb less? Gparted is also missed in Silverblue and not available as flatpaks. Also some magick or anothe MB’s?

        • ExLisper@linux.community
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          9 months ago

          I remember when I used to keep my fully configured distros below 700MB so I could just dump it all to a CD as a backup. Good days.