How to Manage Software with Flatpak on Ubuntu 22.04

Introduction to Flatpak on Ubuntu 24.04

Flatpak is a system for running applications on Linux in a secure and isolated way. It works on many Linux distributions, including Ubuntu 24.04. Flatpak makes it easy to install apps without worrying about missing dependencies. It also allows apps to be updated easily.

  1. Cross-Distribution Compatibility: Flatpak works on various Linux distributions, meaning that software packaged as Flatpak can be installed on Ubuntu, Fedora, Debian, and more without worrying about compatibility issues.
  2. Sandboxing: Applications installed through Flatpak run in a sandbox, limiting their access to your system. This enhances security by preventing harmful software from affecting your system.
  3. Easier Updates: Flatpak applications can be easily updated with just one command, ensuring that you always have the latest versions.
  4. All-in-one Environment: Flatpak packages include all dependencies, so you don’t have to worry about missing libraries or broken installations.

To install Flatpak on Ubuntu 24.04, follow these simple steps:

  1. Open Terminal.

  2. Run the following command to install Flatpak:

    1
    2
    
    sudo apt update
    sudo apt install flatpak
    
  3. Install gnome-software-plugin-flatpak:

    1
    
    sudo apt install gnome-software-plugin-flatpak
    
  4. Restart your system to complete the installation.

A “remote” in Flatpak is a source where you can download and install Flatpak packages. To add a remote, use the following command:

1
flatpak remote-add --if-not-exists <remote-name> <remote-url>

Some well-known and trusted remotes include:

  1. Flathub: The most popular and widely used Flatpak repository. It contains a large collection of applications for various purposes. To add Flathub:

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

  3. ???

To search for software in a remote repository, use the following command:

1
flatpak search <application-name>

For example, if you are looking for the VLC media player, you can search it like this:

1
flatpak search vlc

This will show a list of available versions of VLC from different remotes.

To install an application, use the following command:

1
flatpak install <remote-name> <application-name>

For example, to install VLC from Flathub:

1
flatpak install flathub org.videolan.VLC

You will be prompted to confirm the installation, and Flatpak will take care of the rest.

To list all installed Flatpak applications on your system, use:

1
flatpak list

This will show you all the software you’ve installed via Flatpak, along with their details.

To update all your installed Flatpak applications, simply run:

1
flatpak update

To remove a specific application, use:

1
flatpak uninstall <application-name>

For example, to uninstall VLC:

1
flatpak uninstall org.videolan.VLC

You can also remove unused runtimes and dependencies with:

1
flatpak uninstall --unused

Flatpak isn’t the only system for managing software on Linux. Here are a few other similar systems:

  1. Snap: A package management system developed by Canonical (the makers of Ubuntu). Snap also provides sandboxing and cross-distribution compatibility.
  2. AppImage: A distribution-independent package format that bundles software along with all its dependencies, allowing it to run on any Linux distribution without installation.
  3. Docker: Primarily used for containerization, Docker allows you to package and run applications in isolated environments, though it’s typically used for server-side applications.

Flatpak is a powerful tool that simplifies software installation and management on Ubuntu 24.04. With its cross-platform compatibility, sandboxing, and easy updates, it’s a great choice for users who want a more secure and streamlined experience.

Related Content