Ubuntu 17.10: Install Flatpak for application container

This article will describe installing Flatpak for application container.

1 Install flatpak

Install flatpak package with apt.

$ sudo add-apt-repository -y ppa:alexlarsson/flatpak
$ sudo apt update -y
$ sudo apt install -y flatpak

2 Install runtime

Install runtime after importing GPG key. The org.gnome.Platform is runtime for running application. The org.gnome.Sdk is runtime for developing application.

$ wget https://sdk.gnome.org/keys/gnome-sdk.gpg
$ flatpak --user remote-add --gpg-import=gnome-sdk.gpg gnome \
$ flatpak --user install gnome org.gnome.Platform 3.24
$ flatpak --user install gnome org.gnome.Sdk 3.24

3 Install application

Install application after importing GPG key. This article installs org.gnome.gedit.

$ flatpak --user remote-add --gpg-import=gnome-sdk.gpg gnome-apps \
$ flatpak --user install gnome-apps org.gnome.gedit stable

Run org.gnome.gedit.

$ flatpak run org.gnome.gedit --version
gedit - Version 3.22.0