How to Install Flatpaks

Moderator: Forum moderators

Post Reply
User avatar
mikeslr
Posts: 2793
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 173 times
Been thanked: 837 times

How to Install Flatpaks

Post by mikeslr »

Why you should think twice before doing so: Alternatives
A flatpak is a supposedly self-contained application: that is a package which contains the application, itself, together with all its dependencies. Great idea, except:
(a) to actually install the flatpak application your operating system has to provide the flatpak 'framework' which means first installing that 'framework'.
(b) being self-contained, there's a good chance that many of the dependencies will be duplicates of files found elsewhere on your system-as-a-whole; [Not much of a problem if you aren't concerned about diskspace]; and
(c) flatpak applications are not built for Puppys. 'Self-Contained' relates to the operating systems they were built and tested to run under. To run under Puppys you may also have to install dependencies which came as built-ins in the operating systems flatpaks were designed for.
(d) and this one is important, OOTB Puppys do not support even installing the flatpak 'framework'.

So the first thing I would ask is "Is an application provided as a flatpak the only way to obtain that application?" Has someone already built a version of the application you want for your Puppy? Look in Menu>Setup>Quickpet, if your puppy has it. Then look on the threads relating to your Puppy; then in the appropriate Additional Software Sections.

Next, did the publisher of the flatpak also publish an AppImage? Many do. These are also 'Self-Contained' but do not require the flatpak framework. If you're lucky you can just download it, make it executable and run it. If you're not that lucky you'll still have the problem mentioned in (c) above. But it's likely that you'd also have that problem with the corresponding flatpak package.

Next, check if the application is available and can be installed via Puppy Package Manager. It makes little sense to install an unnecessary 'framework'.

How you can

Next, install pkg-cli, https://forum.puppylinux.com/viewtopic.php?t=4802 or pkg2, mistfire’s Pkg2: The fork of scottman's pkg, viewtopic.php?p=51728#p51728. Like apt these small applications make it much easier than PPM to add repositories and install applications from them together with dependencies. You will need one or the other in order to install the flatpak ‘framework’. But, before doing that, see if it’s now possible to install the application directly without also installing the flatpak framework.

If all else has failed, follow rockedge’s instructions here, viewtopic.php?p=3651#p3651, to use pkg-cli or pkg2 to install the flatpak ‘framework’.

Edit: 29 March 2024. As of this date when following rockedge's instructions be aware that newer versions for installing flatpak for 'Ubuntu-binary-compatibles' can be found at https://launchpad.net/flatpak/+archive/ubuntu/stable

Last edited by mikeslr on Fri Mar 29, 2024 4:11 pm, edited 1 time in total.
mistfire
Posts: 650
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 143 times

Re: How to Install Flatpaks

Post by mistfire »

If you want Puppy with flatpak by default, QuickPup64 has built-in flatpak support.

User avatar
spiritwild
Posts: 75
Joined: Wed Jul 22, 2020 1:34 am
Been thanked: 24 times

Re: How to Install Flatpaks

Post by spiritwild »

Was it just me..... seems like after installation of needed files and dependencies, I added a minimum of 4 gigs to my system.
It's nice to be able to run certain apps but it a rather extreme setup right out of the gate.

dimkr
Posts: 1908
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 36 times
Been thanked: 829 times

Re: How to Install Flatpaks

Post by dimkr »

mikeslr wrote: Thu May 26, 2022 4:01 pm

(d) and this one is important, OOTB Puppys do not support even installing the flatpak 'framework'.

This is not true anymore. Some current Puppy releases have basic Flatpak support:

https://github.com/puppylinux-woof-CE/w ... ed+flatpak

User avatar
mikeslr
Posts: 2793
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 173 times
Been thanked: 837 times

Re: How to Install Flatpaks

Post by mikeslr »

spiritwild wrote: Fri May 27, 2022 11:48 am

Was it just me..... seems like after installation of needed files and dependencies, I added a minimum of 4 gigs to my system.
It's nice to be able to run certain apps but it a rather extreme setup right out of the gate.

You've rediscovered the effect Mike Walsh commented on here, viewtopic.php?p=48593#p48593 and why most of my original post was an argument about why and how to avoid using flatpaks.

User avatar
spiritwild
Posts: 75
Joined: Wed Jul 22, 2020 1:34 am
Been thanked: 24 times

Re: How to Install Flatpaks

Post by spiritwild »

You've rediscovered the effect Mike Walsh commented on here, viewtopic.php?p=48593#p48593 and why most of my original post was an argument about why and how to avoid using flatpaks.

Indeed, the installation was 40% of my entire
system. Not at all practical in my case nor does it seem like something sustainable for the future.
My opinion anyway

Post Reply

Return to “AppImages, Snaps and Flatpaks”