Share your love
Install and Use Flatpak on Ubuntu 22.04: Best Universal Package

In this guide, we want to teach you to Install and Use Flatpak on Ubuntu 22.042.04. Flatpak is a package management utility that lets you distribute, install, and manage software without needing to worry about dependencies, runtime, or Linux distribution. Since you can install software without any issues irrespective of the Linux distribution, Flatpak is called a universal package.
Now you can proceed to the guide steps below on the Orcacore website to get Flatpak package manager for Ubuntu 20.04.
Table of Contents
Install and Use Flatpak on Ubuntu 22.04
To complete this guide on Flatpak Ubuntu, log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on Initial Server Setup with Ubuntu 22.04.
1. Install Flatpak Ubuntu 22.04
First, you need to update your local package index with the command below:
sudo apt update
The Flatpak package is available on the default Ubuntu repository. To install it, simply run the following command:
sudo apt install flatpak -y
Verify your Flatpak installation by checking its version:
flatpak --version

2. How To Use Flatpak Package Manager?
At this point, we want to show you how to use your Flatpak package manager.
Enable Flathub on Ubuntu 22.04
Now you need to enable the Flathub before using the Flatpak. FlatHub is an efficient and popular platform used for searching applications.
To do this you can use the following command:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Search Apps with Flatpak
To search for a specific app, you can use the following syntax:
flatpak search <Application_name>
For example, search for OpenJDK:
flatpak search openjdk

Install an App with Flatpak
When the desired application is searched, you can install it on Ubuntu 22.04, using Flatpak.
flatpak install <Application_name>
For example:
flatpak install openjdk
This will ask you which version you want to install.

When your installation is completed, you will get the following output:

Uninstall Apps with Flatpak
To uninstall an App with Flatpak, you can use the following syntax:
flatpak uninstall APP-ID
For example:
flatpak uninstall runtime/org.freedesktop.Sdk.Extension.openjdk8

For more information, you can visit the Flatpak Docs page.
3. Uninstall or Remove Flatpak From Ubuntu 22
If you no longer want to use Flatpak, you can easily remove it with the command below:
sudo apt autoremove flatpak -y
Conclusion
At this point, you have earned to Install and Use Flatpak Package Manager on Ubuntu 22.04. It is a great package that you can use to install your desired apps without any dependencies.
Hope you enjoy it. You may also interested in these articles:
Install and Configure Cloudron on Ubuntu 22.04
Set up Pritunl VPN Server and Client on Ubuntu 22.04
Install and Use Docker Compose on Ubuntu 22.04
Apache Guacamole Setup For Ubuntu 22
Ghost CMS Setup Guide For Ubuntu 22