This article will describe installing Flatpak for application container.
Table of Contents
1 Install flatpak
Install flatpak package with apt.
#!/bin/sh -e sudo apt install -y flatpak
2 Install runtime
Install Gnome as runtime.
#!/bin/sh -e wget https://sdk.gnome.org/keys/gnome-sdk.gpg flatpak --user remote-add --gpg-import=gnome-sdk.gpg gnome \ https://sdk.gnome.org/repo/ flatpak --user install -y gnome org.gnome.Platform 3.24 flatpak --user install -y gnome org.gnome.Sdk 3.24
3 Install application
Install gedit as application.
#!/bin/sh flatpak --user remote-add --gpg-import=gnome-sdk.gpg gnome-apps \ https://sdk.gnome.org/repo-apps/ flatpak --user install -y gnome-apps org.gnome.gedit stable flatpak run org.gnome.gedit --version
The gedit version will be displayed.
gedit - Version 3.22.0