There are many ways to install a software on Linux. Flatpak it's one of easiest way to use for installing softwares on Linux. Let's begin with installation of flatpak on your system
Run the following command to install flatpak then reboot.
sudo pacman -S flatpak
Step 1 - Add the official Flatpak PPA to your system
sudo add-apt-repository ppa:alexlarsson/flatpak sudo apt update sudo apt install flatpak
Step 2 - Install Flatpak Plugin
sudo apt install gnome-software-plugin-flatpak
Step 3 - Add the flathub repository
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
How to Download Softwares from FlatHub
Once you've installed flatpak on your system, go to flathub.org to download apps, click the install button on the software page and run the downloaded package, or simply run the following command in terminal
Example: The following command installs skype on your system
flatpak install flathub com.skype.Client
flatpak run com.skype.Client
In this tutorial you learned how to install softwares on arch linux and ubuntu via flatpak.