User:Davu/Flatpak

From Official Kodi Wiki
< User:Davu
Revision as of 14:05, 17 January 2019 by Davu (talk | contribs) (Created page with "=FLatpak= <section begin="Intro-flatpak" /> Flatpak is a tool for software development, package management and software actualisation for desktop applications on Linux based...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

FLatpak

Flatpak is a tool for software development, package management and software actualisation for desktop applications on Linux based systems. Therefore it provides a sandboxed environment at which users or developers execute applications completely isolated from the rest of the system.

Kodi is also available as a Flatpak package. This Wiki will explain how to install Flatpak and how to install the Kodi Flatpak package.


Installing Flatpak

Some Linux distributions have Flatpak available by defaul, for others you have to install specific packages fist. Please look at sections below what is necessary for the Linux distro you are using.

Ubuntu

For Ubuntu versions higher than 16.10, Flatpak is provided by the Ubuntu repositories and is installed via:

sudo apt install flatpak

In case you want toe newest updates or are using Ubuntu 16.04 (or earlier) users have to use an additional repository to be able to install Flatpak. The commands below will show how to do that.

sudo apt-add-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

The first command installs the repository, the 2nd command updates all existing repositories, the 3rd command installs the Flatpak package.

After you successfully installed the Flatpak package you are able to install additional Flatpak repositories or install Flatpaks via .flatpakref' files you have downloaded.

In case you want to use the Ubuntu Software Center to install Flatpak, you need to install one additional package:

sudo apt install gnome-software-plugin-flatpak

After that you are able to use the Software Center instead of using the command line.

Kodi itself is available at "Flathub" which is a repostory for Flatpaks. To use that, you need to install the repository via:

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

You will be asked for your password. Please enter it to make the repository available.

Fedora

Fedora has Flatpak installed by default.


Arch Linux

Installing Kodi via Flatpak

There are different ways how to install Flatpaks. You are able to isntall packages system-wide or only for a specific user, you are able to use the software center or the command line. Please read the following instructions and choose the way you prefer.


Software Center

If you have installed the specific gnome software center plugin (see instructions above), simply open the Ubuntu Software Center, search for "Kodi" and install the package. That's it. That will most likely be a system-wide installation where every existing User is able to use Kodi.


Command line

From the command line, you need to execute the following command to install Kodi:

sudo flatpak install flathub tv.kodi.Kodi

The above is meant as a system-wide installation (see the "sudo"). "sudo" is not needed if you want Kodi only to be available for a specific user. If that's the case, please use the following command.

flatpak install --user flathub tv.kodi.Kodi

The difference in that command is, that it doesn't use "sudo" and also has the additional option "--user".