How To Install Flatpak On Ubuntu

Flatpak is the new framework for desktop applications that allows the same app to be installed on different Linux distributions, including different versions. You need to install Flatpak, before you can install applications with Flatpak. Using flatpak you can build and distribute desktop applications on Linux. Some of the advantages of flatpak are just build your application and distribute it to the entire Linux desktop market, full control over dependencies and future-proof builds.

Flatpak

Install Flatpak On Ubuntu

Open your terminal command-line application. You can open it using the ctrl+alt+t keys or via the show apps menu in Ubuntu Linux system.

How to Install Flatpak for Ubuntu 18.10 and Later

In the terminal command-line app run below command.

sudo apt update

Then type your Ubuntu password if needed and hit the enter key. After that install the latest version of flatpak using below command in the terminal application.

sudo apt install flatpak

After the installation, restart your Ubuntu system. Now your are ready to install any flatpak app in your Ubuntu system.

For Older Ubuntu Versions:

Type the below command in the terminal and hit enter to add the alexlarsson/flatpak ppa in your ubuntu system.

sudo add-apt-repository ppa:alexlarsson/flatpak

Type your ubuntu password and hit enter. Then press enter to accept the process. Then type below command in terminal and press enter.

sudo apt update

Finally install flatpak by typing this command in terminal.

sudo apt install flatpak

Type Y and hit enter to confirm the installation. After the successful installation of flatpak restart your Ubuntu.

Also Read:  How to Check if Your System Uses systemd

Add the Flathub Repository

Then you can add Flathub repository in your system by using this command. Flathub provides lot of Flatpak apps.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Restart your system.

If you want to add Flatpak Beta repository (OPTIONAL) to test beta apps then run below command.

for system wide

flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

for user

flatpak remote-add --if-not-exists --user flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

Restart your system.

Install Gnome Software Flatpak plugin:

If you want to install the flatpak apps without the need of command line, you need to install the Gnome Software Flatpak plugin in your Ubuntu.

To install it run the below command in terminal.

sudo apt install gnome-software-plugin-flatpak

After the successful installation, all don’t forget to restart your Ubuntu computer.

 

Watch Video

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



This Post Has 324 Comments

  1. netg00r00

    BTW, I’m running Linux Mint 17 with all the recent updates.

  2. netg00r00

    I’ve tried this a couple times and I keep getting the error “unable to locate package flatpak”. :/

Leave a Reply