Post

How To: Flatpak on Arch Linux

Flatpak is a system for building, distributing and running sandboxed desktop applications on Linux.

How To: Flatpak on Arch Linux

 ”Flatpak is a system for building, distributing and running sandboxed desktop applications on Linux.”

Install

  • Many Flatpak applications available on flathub are not effectively sandboxed by default . Do not rely on the provided process isolation without first reviewing the related flatpak permission manifest for common sandbox escape issues.
  • Running untrusted code is never safe; sandboxing cannot change this.

Flatpak is available on the Arch as part of the Extra repository.

To install Flatpak on Arch Linux, we will open a terminal and run:

1
sudo pacman -S flatpak

Reboot

Reboot your system.

Verify

You can check that everything is working, by running: Verify version:

1
flatpak --version

The installation of flatpak will, by default, add the official Flathub repository as a system-wide installation.

Run the below command to list installed repositories: Verify remotes:

1
flatpak remotes

Install a Application with Flatpak

Head over to Flathub and checkout the available applications you might want to install.

In this example we are going to install an open source IDE called vscodium.

Before we are able to search a newly added repository, we are going to add the update flag to the flatpak command to download the appstream data for repositories:

1
flatpak update

You can search for vscodium using the search option:

1
flatpak search vscodium

To Install, open up a terminal and run:

1
flatpak install flathub com.vscodium.codium

To run vscodium:

1
2
# Depending on your system, you will probably be able to run as codium
flatpak run com.vscodium.codium

List installed applications:

1
flatpak list

Uninstall

To Remove:

1
flatpak uninstall com.vscodium.codium

Be sure to have a look at the Manifest for VSCodium.

Any issues you may run into might already be addressed so have a look at the Troubleshooting section on the Arch Wiki entry for Flatpak. Any and all information you might need for configuration and commands can be found on the Arch Wiki.


Reference:

This post is licensed under CC BY 4.0 by the author.