This is a tutorial to install packages in Linux based operating system using flatpak sandboxing packaging system.

Installing core flatpak package in Ubuntu

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

Adding remote repository

flatpak remote-add --if-not-exists <remote_name> <repo_url>

Examples

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Gnome flatpak repo contains runtime dependencies to run other flatpak applications. Add it.
flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
# Now add gnome app repo
flatpak remote-add gnome-apps https://sdk.gnome.org/gnome-apps.flatpakrepo

List all all added repositories

flatpak remote-list

This is the total list of added repositories.

List all packages in remote repository

flatpak remote-ls --app <remote_name>

Example

flatpak remote-ls --app flathub

Installing flatpak applications

Install from downloaded .flatpakref file

flatpak install --from <path_to_.flatpakref_file>

Example

flatpak install --from ~/Downloads/org.blender.Blender.flatpakref
# or
flatpak install --from https://www.daitauha.fr/static/flatpak/blender.flatpakref
# or
flatpak install flathub org.gimp.GIMP	#GIMP is an application

Install from downloaded .flatpak package

flatpak install --bundle LibreOffice.flatpak

To run application

flatpak list
flatpak run <application>

Examples

flatpak run org.libreoffice.LibreOffice
# or
flatpak run org.blender.Blender

To uninstall application

flatpak uninstall <application>

Example

flatpak uninstall org.libreoffice.LibreOffice

To update applications

To update all applications

flatpak update

To update specific application

flatpak update <application>

Example

flatpak update org.libreoffice.LibreOffice