How to reduce flatpak app size?

Muayyad AlSadi alsadi at gmail.com
Thu Aug 9 08:32:46 UTC 2018


> AFAIK, they all are built in different context, so probably they have
> different checksum, even if built from the same source.

no, in reality it saves 1.1GB, here are the details

the file sizes from alex email above

560M    org.freedesktop.Platform/x86_64/1.6/
796M    org.gnome.Platform/x86_64/3.28/
1.1G    org.kde.Platform/x86_64/5.9/

total of 2.4GB

sizes considering shared files

560M    org.freedesktop.Platform/x86_64/1.6/
253M    org.gnome.Platform/x86_64/3.28/
542M    org.kde.Platform/x86_64/5.9/

total of 1.3GB,
saving is 2.4-1.3=1.1GB


On Thu, Aug 9, 2018 at 10:21 AM Alexander Larsson <alexl at redhat.com> wrote:

> The way flatpak builds in a controlled sandbox, etc, things are
> surprisingly similar in the builds even if the context is not
> identical. However, its is true, things can build slighlty differently
> if e.g. the dependency set is different. If you use the base-app model
> then you can put the shared things into one build though, and inherit
> the pre-built binaries, thus guaranteeing that they are the same.
> On Wed, Aug 8, 2018 at 7:12 PM Gyorgy Kovesdi <kgy at etiner.hu> wrote:
> >
> > AFAIK, they all are built in different context, so probably they have
> > different checksum, even if built from the same source.
> >
> > On Wednesday, August 8, 2018 9:52:01 AM CEST Muayyad AlSadi wrote:
> > >  > Is it possible to share libraries between flatpak applications?
> > >
> > > flatpak uses ostree to store files which is content-addressable store
> > > which mean file is stored based on its content (named after the
> checksum of
> > > the file content)
> > > which means each content is stored once
> > >
> > >
> > >
> > > On Tue, Aug 7, 2018 at 10:12 PM Bartłomiej Piotrowski <
> b at bpiotrowski.pl>
> > >
> > > wrote:
> > > > On 07/08/2018 20.32, Gyorgy Kovesdi wrote:
> > > > > Hi,
> > > > >
> > > > > IMHO the main qestion was:
> > > > > Is it possible to share libraries between flatpak applications?
> > > > > I have the same question, which is not answered yet.
> > > > >
> > > > > Regards
> > > > > Gyorgy Kovesdi
> > > >
> > > > As long as libraries are literally the same, as in have the same
> > > > checksum, they're deduplicated on disk and are loaded only once to
> the
> > > > memory.
> > > >
> > > > Bartłomiej
> > > > _______________________________________________
> > > > Flatpak mailing list
> > > > Flatpak at lists.freedesktop.org
> > > > https://lists.freedesktop.org/mailman/listinfo/flatpak
> >
> >
> >
> >
> > _______________________________________________
> > Flatpak mailing list
> > Flatpak at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/flatpak
>
>
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                Red Hat, Inc
>        alexl at redhat.com         alexander.larsson at gmail.com
> _______________________________________________
> Flatpak mailing list
> Flatpak at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/flatpak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180809/d521fce3/attachment.html>


More information about the Flatpak mailing list