HOW-TO:Install Kodi for Linux: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Make clear what we support)
(Added note that the PPA is unmaintained, and removed the recommendation to use it)
 
(80 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{mininav| [[Installing]] {{l2| [[Linux]] }} }}
{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}
{{see also|Linux FAQ}}


These are instructions for people who already have a Linux-based OS setup, or wish to do their own installation of Linux.  Alternatively you can try out [[XBMCbuntu]], which will install both an OS and {{kodi}} with an easy installer.


{{Kodi migration note}}
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==


'''Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. '''


= Official Team Kodi repositories =
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.


== Ubuntu ==
;Simple Install Instructions


{{note|1=[http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]}}
{{Warning|Ubuntu releases 16.04 LTS ("Xenial") or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution's Kodi packages, please purge them using the command <syntaxhighlight lang="shell" inline>sudo apt purge kodi\*</syntaxhighlight> before trying to install team-xbmc PPA packages.}}


Use the command line terminal and enter the following commands. Follow the prompts as you would any other software installation.


<syntaxhighlight lang="bash">
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian's binary package repositories! Please refer to '''Debian''' section of this page for installation instructions on such distributions!}}
sudo apt-get install python-software-properties pkg-config
 
sudo apt-get install software-properties-common
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]
sudo add-apt-repository ppa:team-xbmc/ppa
 
sudo apt-get update
 
=== Adding Team Kodi PPA repository ===
 
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.
 
<syntaxhighlight lang="shell">
sudo apt install software-properties-common
sudo add-apt-repository -y ppa:team-xbmc/ppa
sudo apt install kodi
</syntaxhighlight>
 
{{#lst:Official_Ubuntu_PPA|repos}}
 
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but ''not for Ubuntu armhf'', which can run on a Raspberry Pi.
 
 
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===
{{See|Ubuntu binary add-ons}}
 
 
=== Installing a development build ===
{{See also|Development builds}}
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use <code>ppa:team-xbmc/xbmc-nightly</code> for nightly builds and <code>ppa:team-xbmc/unstable</code> for [[Development_builds|beta]] builds.
 
<syntaxhighlight lang="shell">
sudo apt install software-properties-common
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly
sudo apt install kodi
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="bash">
 
sudo apt-get install kodi  
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):
<syntaxhighlight lang="shell">
sudo apt install kodi-pvr-mythtv
</syntaxhighlight>
</syntaxhighlight>


{{#lst:Team XBMC PPA|repos}}


=== Upgrading ===
=== Upgrading ===
<section begin="Ubuntu upgrade" />
<section begin="Ubuntu upgrade" />
To update XBMC/Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SSH]]):
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):


<syntaxhighlight lang="bash">
<syntaxhighlight lang="shell">
sudo apt-get update
sudo apt update
sudo apt-get upgrade
sudo apt upgrade --with-new-pkgs
</syntaxhighlight>
</syntaxhighlight>
<section end="Ubuntu upgrade" />
<section end="Ubuntu upgrade" />


=== KodiBuntu ===
{{main|KodiBuntu}}
{{#lst:KodiBuntu|intro}}


=== Installing a development build ===
=== Downgrading to a stable version from a development version ===
{{see also|Development builds}}
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:
To install a beta/unstable version of {{kodi}} you must first add the unstable repository, then install XBMC:


Use <code>ppa:team-xbmc/xbmc-nightly</code> for nightly builds and <code>ppa:team-xbmc/unstable</code> for [[beta]] builds.
Remove the unstable or nightly PPA:
<syntaxhighlight lang="shell">
apt-cache policy | grep -Eo 'team-xbmc/(unstable|nightly)' | sudo xargs -r add-apt-repository -ryP
</syntaxhighlight>


<syntaxhighlight lang="bash">
Then restore the stable version with the following commands:
sudo add-apt-repository ppa:team-xbmc/xbmc-nightly
<syntaxhighlight lang="shell">
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get update
sudo apt-get remove kodi kodi-x11
sudo apt-get install kodi
sudo apt-get install kodi
</syntaxhighlight>
</syntaxhighlight>


Follow the prompts to add the repository, then to add the updates, and finally install the new version of Kodi.


=== Going back to a stable version from a development version ===
=== Downgrading between newer and older stable versions ===
To return to a stable release:
If you want to return to the next most recent stable release, follow these instructions:


Find the current PPA you are using:
Remove the current stable packages and PPA:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="shell">
sudo apt-cache policy | grep team-xbmc
sudo apt purge kodi\*
sudo add-apt-repository -r ppa:team-xbmc/ppa
</syntaxhighlight>
</syntaxhighlight>


Remove the unstable or nightly PPA where it says '''PPAHERE''':
Then install the "oldstable" version with the following commands:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="shell">
sudo add-apt-repository -r ppa:PPAHERE
sudo add-apt-repository -y ppa:team-xbmc/kodi-old
sudo apt install kodi
</syntaxhighlight>
</syntaxhighlight>


Then restore the stable version with the following commands:
 
<syntaxhighlight lang="bash">
=== Reverting to an earlier nightly ===
sudo add-apt-repository ppa:team-xbmc/ppa
ALthough launchpad doesn't list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&field.status_filter=superseded&field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using <code>sudo dpkg -i [path to downloaded file]</code>.
sudo apt-get update
 
sudo apt-get remove kodi
 
sudo apt-get install kodi
=== Uninstalling ===
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it's discovered that they weren't at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_''timestamp''.tar.xz.
 
<syntaxhighlight lang="shell" highlight="2-3">
sudo apt purge kodi\*
tar cf - "${HOME}/.kodi/" | xz -z9e - >"${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz"
rm -Ri "${HOME}/.{kodi,xbmc}/"
</syntaxhighlight>
 
 
 
== Flatpak ==
 
If you want to use the flatpak version and do not know, if your distro supports flatpak check https://flatpak.org/setup/ for install instructions.
 
After you've sorted that, go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button or copy the instructions at the end of the page to your terminal and execute them.
 
 
=== Beta channel ===
You can also run Kodi flatpak betas, if you install the flatpak beta remote.
 
<syntaxhighlight lang="shell" highlight="2-3">
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
</syntaxhighlight>
 
Then install via
<syntaxhighlight lang="shell" highlight="2-3">
flatpak install flathub-beta tv.kodi.Kodi
</syntaxhighlight>
</syntaxhighlight>


=== Downgrading ===
You should now have an entry on your system, that's labeled `Kodi (Beta)`, that you can use to run the beta. Be warned, it will use the same paths as the older versions, so they might clash. Usually they go along well, but make backups, if you need your data.
{{note|If you have existing settings then they probably won't migrate well to the older version. Especially add-ons and library data. It is recommended that you start fresh ''(delete the [[userdata folder]] and parent .kodi/.xbmc folder)'' or restore from a [[backup]] that works with the older version you are installing.}}


Use these commands if you need to downgrade. For example, from Kodi v14 to XBMC v13.2:


<syntaxhighlight lang="bash" enclose="div">
 
sudo apt-get update
== Embedded/Appliance type install==
sudo apt-get install xbmc=2:13.2* xbmc-bin=2:13.2*
 
 
=== LibreELEC ===
{{main|LibreELEC}}
{{#lst:LibreELEC|intro}}
 
 
== Third Party Repositories ==
<!-- Please only list repos that use an internal ffmpeg library -->
 
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.
 
 
=== Debian ===
Debian GNU/Linux ships its own '''Kodi from Debian''' flavor with following changes:
 
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility
 
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=[email protected] main repository of Debian].
 
 
{{Warning|'''Team Kodi offers no official support to "Kodi from Debian"!''' Please refer to links below for support!}}
 
The support for Kodi from Debian is provided via the following channels:
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums
# [https://github.com/xbmc/xbmc/issues Github issues]
# [https://bugs.debian.org Debian Bug Tracker]
 
 
==== Checking installed and available Kodi packages ====
 
You can check what versions of Kodi and its binary add-ons are installed with the following command:
 
<syntaxhighlight lang=bash>
dpkg -l | grep kodi
</syntaxhighlight>
 
To check what versions of Kodi are available, use this command:
 
<syntaxhighlight lang=bash>
apt-cache policy kodi*
</syntaxhighlight>
</syntaxhighlight>


Note the version number after "<code>xbmc=2:</code>". For older Kodi versions replace "xbmc" with "kodi" for both <code>xbmc</code> and <code>xbmc-bin</code>.


For a full list of available versions type in this command:
==== Installing Kodi on Debian Unstable or Testing ====


<syntaxhighlight lang="bash" enclose="div">
Installation of Kodi from Debian on Debian unstable ("sid") and testing is straightforward:
sudo apt-cache policy xbmc
 
<syntaxhighlight lang=bash>
sudo apt update
sudo apt install kodi
</syntaxhighlight>
</syntaxhighlight>


or
To install Kodi binary add-ons (like '''PVR IPTV Simple''', for example):


<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang=bash>
sudo apt-cache policy kodi
sudo apt install kodi-pvr-iptvsimple
</syntaxhighlight>
</syntaxhighlight>


=== Uninstalling ===
'''NOTE''': Make sure user running Kodi belongs to the following groups
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:
(for example, for user '''kodi''')


<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang=bash>
sudo apt-get update
$ groups kodi
sudo apt-get remove kodi*
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input
sudo apt-get purge kodi*
</syntaxhighlight>
</syntaxhighlight>


Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:
<syntaxhighlight lang="bash">
 
rm ~/.kodi/
<syntaxhighlight lang=bash>
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi
</syntaxhighlight>
</syntaxhighlight>
or
 
<syntaxhighlight lang="bash" enclose="div">
 
rm ~/.xbmc/ # for older versions before 14.0
==== Installing Kodi on Debian 10 "buster" ====
 
By default, Debian buster users get Kodi 17.6 "Krypton". However, it is possible to get Kodi 19.x "Matrix" from buster-backports.
 
 
To get Kodi 17.6 and the corresponding add-ons, use the method described in '''Debian Unstable or Testing''' section above.
 
 
To get Kodi 19.x and the corresponding add-ons from Debian Backports:
 
<syntaxhighlight lang=bash>
# Add Debian Backports repository for Debian 10 "buster"
if ! apt-cache policy 2>/dev/null | grep -q "http://.*buster-backports"; then
  echo "deb http://deb.debian.org/debian/ buster-backports main contrib" | sudo tee /etc/apt/sources.list.d/buster-backports.list
fi
 
# Update APT lists
sudo apt-get update
 
# Install Kodi from backports:
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports
 
# (OPTIONAL) Install Kodi binary add-ons (for example, 'PVR IPTV Simple'):
sudo apt-get install kodi-pvr-iptvsimple/buster-backports
</syntaxhighlight>
</syntaxhighlight>


= Other repositories =
<!-- Please only list repos that use an internal ffmpeg library -->


Unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.
==== Installing Kodi on Debian 9 "stretch" ====


== Debian ==
By default, Debian stretch users get Kodi 17.1 "Krypton". No higher version is packaged in backports.
http://people.debian.org/~rbalint/ppa/xbmc-ffmpeg/


== Fedora ==
To get Kodi 17.1 and the corresponding add-ons, use the method described in '''Debian Unstable or Testing''' section above.


Refer to [[HOW-TO:Install Kodi on Fedora 21 using RPMFusion packages]] for a guide showing how to install Fedora 21 and Kodi to create a quick-booting, standalone style of media player.


FedoraProject also has [http://fedoraproject.org/wiki/HTPC this page] discussing how to build a dedicated home theatre.
=== Raspberry Pi OS ===
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}
Installing on Raspberry Pi OS is done with:


== OpenELEC ==
<syntaxhighlight lang=bash>
{{main|OpenELEC}}
sudo apt-get install kodi
{{#lst:OpenELEC|intro}}
</syntaxhighlight>
 
Upgrading on Raspberry Pi OS is done with:
 
<syntaxhighlight lang=bash>
sudo apt-get update
sudo apt-get upgrade
</syntaxhighlight>


= Installation from source =


If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki.


* [[HOW-TO compile XBMC for Linux from source code]]
== Installation from source ==
* [[HOW-TO compile XBMC for Linux on Debian/Ubuntu]] - This is a tutorial on how to compile and install {{kodi}} on Debian and Ubuntu.
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our '''[[Compiling Kodi]]''' guide.


= See also =
* [[Linux]]
* [[HOW-TO:Autostart XBMC for Linux]]


{{Helix updated}}
{{Updated|20}}


[[Category:Linux]]
[[Category:Linux]]
[[Category:How-to]]
[[Category:How-to]]
[[Category:Installation|Linux]]
[[Category:Installation|Linux]]
[[Category:Manual]]

Latest revision as of 11:11, 14 January 2024

Home icon grey.png   ▶ Linux
▶ Installing
▶ HOW-TO:Install Kodi for Linux


Installing Kodi on Ubuntu-based distributions with Team Kodi PPA

Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility.

For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.


Stop hand.png Ubuntu releases 16.04 LTS ("Xenial") or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution's Kodi packages, please purge them using the command sudo apt purge kodi\* before trying to install team-xbmc PPA packages.


Stop hand.png Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian's binary package repositories! Please refer to Debian section of this page for installation instructions on such distributions!


See SFTP or Click here to find out how to use the terminal.


Adding Team Kodi PPA repository

Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.

sudo apt install software-properties-common
sudo add-apt-repository -y ppa:team-xbmc/ppa
sudo apt install kodi


The Kodi repositories are as follows:

Note: Although the URL still has "Team XBMC" in the title, these are the current URLs for Kodi.

https://launchpad.net/~team-xbmc/+archive/ppa ppa:team-xbmc/ppa Final release builds
https://launchpad.net/~team-xbmc/+archive/unstable ppa:team-xbmc/unstable Betas and release candidates
https://launchpad.net/~team-xbmc/+archive/xbmc-nightly ppa:team-xbmc/xbmc-nightly Nightly builds

Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but not for Ubuntu armhf, which can run on a Raspberry Pi.


Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP)

See: Ubuntu binary add-ons


Installing a development build

To install a beta/unstable version of Kodi you must first add the unstable repository, then install XBMC. Use ppa:team-xbmc/xbmc-nightly for nightly builds and ppa:team-xbmc/unstable for beta builds.

sudo apt install software-properties-common
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly
sudo apt install kodi

Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):

sudo apt install kodi-pvr-mythtv


Upgrading

To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via SFTP):

sudo apt update
sudo apt upgrade --with-new-pkgs


Downgrading to a stable version from a development version

If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:

Remove the unstable or nightly PPA:

apt-cache policy | grep -Eo 'team-xbmc/(unstable|nightly)' | sudo xargs -r add-apt-repository -ryP

Then restore the stable version with the following commands:

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get remove kodi kodi-x11
sudo apt-get install kodi


Downgrading between newer and older stable versions

If you want to return to the next most recent stable release, follow these instructions:

Remove the current stable packages and PPA:

sudo apt purge kodi\*
sudo add-apt-repository -r ppa:team-xbmc/ppa

Then install the "oldstable" version with the following commands:

sudo add-apt-repository -y ppa:team-xbmc/kodi-old
sudo apt install kodi


Reverting to an earlier nightly

ALthough launchpad doesn't list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the xbmc-nightly repository index, where you will then have to download the appropriate .deb files and manually install them using sudo dpkg -i [path to downloaded file].


Uninstalling

If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it's discovered that they weren't at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_timestamp.tar.xz.

sudo apt purge kodi\*
tar cf - "${HOME}/.kodi/" | xz -z9e - >"${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz"
rm -Ri "${HOME}/.{kodi,xbmc}/"


Flatpak

If you want to use the flatpak version and do not know, if your distro supports flatpak check https://flatpak.org/setup/ for install instructions.

After you've sorted that, go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button or copy the instructions at the end of the page to your terminal and execute them.


Beta channel

You can also run Kodi flatpak betas, if you install the flatpak beta remote.

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

Then install via

flatpak install flathub-beta tv.kodi.Kodi

You should now have an entry on your system, that's labeled `Kodi (Beta)`, that you can use to run the beta. Be warned, it will use the same paths as the older versions, so they might clash. Usually they go along well, but make backups, if you need your data.


Embedded/Appliance type install

LibreELEC

LibreELEC (short for "Libre Embedded Linux Entertainment Center") is small and very fast booting, open source JeOS (Just enough Operating System). LibreELEC is a complete media center software suite for embedded systems and computers, as it comes with a pre-configured version of Kodi and optional third-party PVR backend software.


Third Party Repositories

The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for Kodi as we support ffmpeg only.


Debian

Debian GNU/Linux ships its own Kodi from Debian flavor with following changes:

  • Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)
  • Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility

as well as a subset of Kodi binary addons packaged in main repository of Debian.


Stop hand.png Team Kodi offers no official support to "Kodi from Debian"! Please refer to links below for support!


The support for Kodi from Debian is provided via the following channels:

  1. Kodi from Debian - Support Thread on Kodi forums
  2. Github issues
  3. Debian Bug Tracker


Checking installed and available Kodi packages

You can check what versions of Kodi and its binary add-ons are installed with the following command:

dpkg -l | grep kodi

To check what versions of Kodi are available, use this command:

apt-cache policy kodi*


Installing Kodi on Debian Unstable or Testing

Installation of Kodi from Debian on Debian unstable ("sid") and testing is straightforward:

sudo apt update
sudo apt install kodi

To install Kodi binary add-ons (like PVR IPTV Simple, for example):

sudo apt install kodi-pvr-iptvsimple

NOTE: Make sure user running Kodi belongs to the following groups (for example, for user kodi)

$ groups kodi
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input

This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:

usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi


Installing Kodi on Debian 10 "buster"

By default, Debian buster users get Kodi 17.6 "Krypton". However, it is possible to get Kodi 19.x "Matrix" from buster-backports.


To get Kodi 17.6 and the corresponding add-ons, use the method described in Debian Unstable or Testing section above.


To get Kodi 19.x and the corresponding add-ons from Debian Backports:

# Add Debian Backports repository for Debian 10 "buster"
if ! apt-cache policy 2>/dev/null | grep -q "http://.*buster-backports"; then
  echo "deb http://deb.debian.org/debian/ buster-backports main contrib" | sudo tee /etc/apt/sources.list.d/buster-backports.list
fi

# Update APT lists
sudo apt-get update

# Install Kodi from backports:
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports

# (OPTIONAL) Install Kodi binary add-ons (for example, 'PVR IPTV Simple'):
sudo apt-get install kodi-pvr-iptvsimple/buster-backports


Installing Kodi on Debian 9 "stretch"

By default, Debian stretch users get Kodi 17.1 "Krypton". No higher version is packaged in backports.

To get Kodi 17.1 and the corresponding add-ons, use the method described in Debian Unstable or Testing section above.


Raspberry Pi OS

Installing on Raspberry Pi OS is done with:

sudo apt-get install kodi

Upgrading on Raspberry Pi OS is done with:

sudo apt-get update
sudo apt-get upgrade


Installation from source

If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our Compiling Kodi guide.