How to reduce flatpak app size?

Alexander Larsson alexl at redhat.com
Thu Aug 9 07:19:21 UTC 2018


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


More information about the Flatpak mailing list