Steps to Setup with Examples Flatpak on Ubuntu 20.04 LTS

Flatpak is a free & open source universal system package. It is used for application virtualization, deployment, & package management for linux. Using flatpak, we can search & install the software.

There are few steps to setup flatpak on ubuntu:

Step 1: Update the System.

apt-get update

Step 2: Install the Flatpak on system using ubuntu repo.

apt install flatpak

  • Check the flatpak version.

flatpak --version

  • Here is the command output.

[email protected]:/home/ubuntu# flatpak --version
Flatpak 1.6.5

Step 3: Install flatpak on system using the PPA Alexander Larsson repo.

add-apt-repository ppa:alexlarsson/flatpak

  • Here is the command output.
  • Press Enter.

[email protected]:/home/ubuntu# add-apt-repository ppa:alexlarsson/flatpak
Linux application sandboxing and distribution framework
More info: https://launchpad.net/~alexlarsson/+archive/ubuntu/flatpak
Press [ENTER] to continue or Ctrl-c to cancel adding it.

  • Update the packages.

apt-get update

  • Now install the latest version of flatpak.

apt install flatpak

  • Here is the command output.

[email protected]:/home/ubuntu# flatpak --version
Flatpak 1.11.2

Step 4: Add Flathub repository on system.

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

  • Update the packages.

apt update

Step 5: Flatpak Syntax & Examples:

  • To search a application using flatpak.

flatpak search [application_name]

  • To search anydesk software.

flatpak search anydesk

  • Here is the command output.

[email protected]:/home/ubuntu# flatpak search anydesk
Name          Description             Application ID     Version Branch Remotes
AnyDesk Connect to a computer remotely com.anydesk.Anydesk 6.1.1  stable flathub

Step 6: To install application using flatpak.

flatpak install flathub [Application_ID]
or
flatpak install flathub [Name]

  • To install anydesk on system.

flatpak install flathub com.anydesk.Anydesk
or
flatpak install flathub anydesk

  • Here is the command output.

[email protected]:/home/ubuntu# flatpak install flathub anydesk
Looking for matches…
Found ref ‘app/com.anydesk.Anydesk/x86_64/stable’ in remote ‘flathub’ (system).
Use this ref? [Y/n]: y
Required runtime for com.anydesk.Anydesk/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/20.08) found in remote flathub
Do you want to install it? [Y/n]: y
com.anydesk.Anydesk permissions:
ipc network pulseaudio x11 dri file access [1] tags [2]
[1] home
[2] proprietary
ID Branch Op Remote Download
ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.default 20.08 i flathub 105.8 MB / 106.4 MB
2. [✓] org.freedesktop.Platform.Locale 20.08 i flathub 17.7 kB / 322.2 MB
3. [✓] org.freedesktop.Platform.openh264 2.0 i flathub 1.5 MB / 1.5 MB
4. [✓] org.freedesktop.Platform 20.08 i flathub 223.5 MB / 268.1 MB
5. [✓] com.anydesk.Anydesk stable i flathub 12.0 MB / 16.7 MB
Installing 5/5… ████████████████████ 100% 3.0 MB/s 00:00

Leave a Reply