User:Davu/Flatpak: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=FLatpak=
{{bigger|Flatpak}}


<section begin="Intro-flatpak" />
<section begin="Intro-flatpak" />
Line 7: Line 7:
<section end="Intro-flatpak />
<section end="Intro-flatpak />


==Installing Flatpak==
=Installing Kodi via 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.  
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===
==Ubuntu==
 
===Installing Flatpak and add the Flathub repo===


For Ubuntu versions higher than 16.10, Flatpak is provided by the Ubuntu repositories and is installed via:  
For Ubuntu versions higher than 16.10, Flatpak is provided by the Ubuntu repositories and is installed via:  
  sudo apt install flatpak
  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.  
In case you want the newest Flatpak version 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-add-repository ppa:alexlarsson/flatpak
Line 24: Line 26:
The first command installs the repository, the 2nd command updates all existing repositories, the 3rd command installs the Flatpak package.
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.  
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.  
 


In case you want to use the Ubuntu Software Center to install Flatpak, you need to install one additional package:
In case you want to use the Ubuntu Software Center to install Flatpak, you need to install one additional package:
Line 32: Line 39:
After that you are able to use the Software Center instead of using the command line.
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.
===Installing the Kodi Flatpak package===


===Fedora===
There are two ways to install the Kodi Flatpack package. You can either use the Ubuntu Software Center or the command line. Both ways are explained below.


Fedora has Flatpak installed by default.
====Via the Ubuntu 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. The galery below will show some screenshots.


===Arch Linux===
<add screenshots>


====Via the command line====


==Installing Kodi via Flatpak==
From the command line, you need to execute the following command to install the Kodi Flatpak package:


sudo flatpak install flathub tv.kodi.Kodi


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.  
You will be asked for a required runtime and if additional packages are ok to be installed. Answer both questions with "y".  


===Kodi Userdata folder and other data===


===Software Center===
The location of the well known userdata folder and all other data is located under:


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.
~/.var/app/tv.kodi.Kodi/data


'''Logfile location: ''' ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log <br />
'''Userdata folder: ''' ~/var/app/tv.kodi.Kodi/data/userdata


===Command line===


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


sudo flatpak install flathub tv.kodi.Kodi
==Fedora==


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.
Fedora has Flatpak installed by default.


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".
==Arch Linux==

Latest revision as of 05:39, 22 February 2019

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 Kodi via 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

Installing Flatpak and add the Flathub repo

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 the newest Flatpak version 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.

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.


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.


Installing the Kodi Flatpak package

There are two ways to install the Kodi Flatpack package. You can either use the Ubuntu Software Center or the command line. Both ways are explained below.

Via the Ubuntu 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. The galery below will show some screenshots.

<add screenshots>

Via the command line

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

sudo flatpak install flathub tv.kodi.Kodi

You will be asked for a required runtime and if additional packages are ok to be installed. Answer both questions with "y".

Kodi Userdata folder and other data

The location of the well known userdata folder and all other data is located under:

~/.var/app/tv.kodi.Kodi/data

Logfile location: ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log
Userdata folder: ~/var/app/tv.kodi.Kodi/data/userdata


Fedora

Fedora has Flatpak installed by default.


Arch Linux