How to install Flatpak applications

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
xenopeek
Level 24
Level 24
Posts: 22469
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

How to install Flatpak applications

Post by xenopeek » Mon Sep 12, 2016 5:02 am

Update: Linux Mint 18.3 comes with native support for Flatpak. The below is only for older versions of Linux Mint.

Update 2: The PPA below no longer supports Ubuntu 14.04, on which Linux Mint 17.x are based. So if you're on Linux Mint 17.x you can't use this tutorial as is. I've not verified that the tutorial as is still works for Linux Mint 18, 18.1 or 18.2 other than to check the needed packages for those releases are in the PPA below.

For various applications you can now find Flatpaks to get newer version of them. A list is available on http://flatpak.org/apps.html. Right now it is mostly useful if you need/want a newer version of a Gnome application or if you want to test if some issue you have with one is also present in the latest ("nightly") development version of it. Flatpaks don't interfere with the other software installed on your system. Flatpaks are installed to /var/lib/flatpak and user preference files are stored in ~/.var (thus avoiding collision with other software installed on your system). Flatpak's own configuration is stored in ~/.local/share/flatpak.

In the below example I'll add the Flatpak repositories for the latest Gnome stable version. See my next comment for the steps to instead add the latest Gnome ("nightly") development version.

1. Add support for Flatpak
First you need to add support for Flatpak to your system.

Code: Select all

apt add-repository ppa:alexlarsson/flatpak
apt update
apt install flatpak
2. Add Flatpak repositories
Next you'll need to add the Flatpak repositories from which you want to be able to install.

Code: Select all

wget https://sdk.gnome.org/keys/gnome-sdk.gpg
flatpak remote-add --gpg-import=gnome-sdk.gpg gnome https://sdk.gnome.org/repo/
flatpak remote-add --gpg-import=gnome-sdk.gpg gnome-apps https://sdk.gnome.org/repo-apps/
rm gnome-sdk.gpg
3. Install a runtime
Next you'll need to install a runtime. (3.20 is the latest stable; you can check with "flatpak remote-ls --show-details gnome" what other versions are available.)

Code: Select all

flatpak install gnome org.gnome.Platform 3.20
4. Install an application
Lastly you'll want to install an application. You can see which applications are available for installation.

Code: Select all

flatpak remote-ls --app gnome-apps
Let's install Evince for this example:

Code: Select all

flatpak install gnome-apps org.gnome.Evince stable
5. Run an application
One final command.

Code: Select all

flatpak run org.gnome.Evince
What about updates?
You can update all your installed Flatpaks with one command.

Code: Select all

flatpak update
Last edited by xenopeek on Thu May 31, 2018 6:32 pm, edited 1 time in total.
Reason: update 2
Image

User avatar
xenopeek
Level 24
Level 24
Posts: 22469
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to install Flatpak applications

Post by xenopeek » Mon Sep 12, 2016 5:05 am

In the above example I added the Flatpak repositories for the latest Gnome stable version. Replace steps 2 through 4 with below to instead add the latest Gnome ("nightly") development version.

2. Add Flatpak repositories
Next you'll need to add the Flatpak repositories from which you want to be able to install.

Code: Select all

wget https://sdk.gnome.org/nightly/keys/nightly.gpg
flatpak remote-add --gpg-import=nightly.gpg gnome-nightly https://sdk.gnome.org/nightly/repo/
flatpak remote-add --gpg-import=nightly.gpg gnome-nightly-apps https://sdk.gnome.org/nightly/repo-apps/
rm nightly.gpg
3. Install a runtime
Next you'll need to install a runtime.

Code: Select all

flatpak install gnome-nightly org.gnome.Platform master
4. Install an application
Lastly you'll want to install an application. You can see which applications are available for installation.

Code: Select all

flatpak remote-ls --app gnome-nightly-apps
Let's install Evince for this example:

Code: Select all

flatpak install gnome-nightly-apps org.gnome.Evince master
Image

User avatar
Lucap
Level 5
Level 5
Posts: 913
Joined: Tue May 24, 2016 1:40 am

Re: How to install Flatpak applications

Post by Lucap » Wed Oct 26, 2016 5:04 am


Royi
Level 1
Level 1
Posts: 47
Joined: Fri Aug 11, 2017 8:55 am

Re: How to install Flatpak applications

Post by Royi » Sat Apr 21, 2018 6:32 pm

What about updating the Flatpak application itself?

It seems Linux Mint 18.3 uses Flatpak 0.10.
While they released 0.11.4.

Why Linux Mint won't update?

Royi
Level 1
Level 1
Posts: 47
Joined: Fri Aug 11, 2017 8:55 am

Re: How to install Flatpak applications

Post by Royi » Sat May 26, 2018 7:01 pm

Is there a way to update the FlatPak application in Linux Mint 18.3?

Post Reply

Return to “Tutorials”