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

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
m (Updated for v19)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{mininav|[[Linux]] {{l2| [[Installation]] }} }}
{{mininav|[[Linux]] {{l2| [[Installing]] }} }}
 
 
 
== Installing Kodi on Ubuntu-based distributions ==
== Installing Kodi on Ubuntu-based distributions ==
{{warning|Some (later) Ubuntu versions include Kodi built by Ubuntu themselves. If you have installed Ubuntu Kodi, please remove the packages "kodi kodi-bin kodi-data" before trying to install team-xbmc PPA packages.}}
{{warning|Some (later) Ubuntu versions include Kodi built by Ubuntu themselves. If you have installed Ubuntu Kodi, please remove the packages "kodi kodi-bin kodi-data" before trying to install team-xbmc PPA packages.}}
Line 17: Line 20:


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.
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) ===
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===
{{see|Ubuntu binary add-ons}}
{{see|Ubuntu binary add-ons}}


=== Installing a development build ===
=== Installing a development build ===
Line 35: Line 40:
sudo apt-get install kodi-pvr-mythtv
sudo apt-get install kodi-pvr-mythtv
</syntaxhighlight>
</syntaxhighlight>


=== Upgrading ===
=== Upgrading ===
Line 74: Line 80:
sudo apt-get install kodi
sudo apt-get install kodi
</syntaxhighlight>
</syntaxhighlight>


=== Downgrading between newer and older stable versions ===
=== Downgrading between newer and older stable versions ===
Line 90: Line 97:
sudo apt-get install kodi
sudo apt-get install kodi
</syntaxhighlight>
</syntaxhighlight>


=== Reverting to an earlier nightly ===
=== Reverting to an earlier nightly ===
Line 96: Line 104:


You will then have to download the appropiate .deb file and manually install it.
You will then have to download the appropiate .deb file and manually install it.


=== Uninstalling ===
=== Uninstalling ===
Line 114: Line 123:
rm -r ~/.xbmc/ # for older versions before 14.0
rm -r ~/.xbmc/ # for older versions before 14.0
</syntaxhighlight>
</syntaxhighlight>


== Embedded/Appliance type install==
== Embedded/Appliance type install==
Line 120: Line 131:
{{main|LibreELEC}}
{{main|LibreELEC}}
{{#lst:LibreELEC|intro}}
{{#lst:LibreELEC|intro}}


== Third Party Repositories ==
== Third Party Repositories ==
Line 170: Line 182:
sudo apt-get upgrade
sudo apt-get upgrade
</syntaxhighlight>
</syntaxhighlight>


== Installation from source ==
== 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.
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]]
*[[JeOS implementations for Kodi]]
<!--{{mininav| [[Installing]] {{l2| [[Linux]] }} }}-->
* [[Linux FAQ]]


{{Updated|17}}
{{Updated|19}}


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

Revision as of 21:04, 19 February 2021

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


Installing Kodi on Ubuntu-based distributions

Stop hand.png Some (later) Ubuntu versions include Kodi built by Ubuntu themselves. If you have installed Ubuntu Kodi, please remove the packages "kodi kodi-bin kodi-data" before trying to install team-xbmc PPA packages.


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

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

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get 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 add-apt-repository ppa:team-xbmc/xbmc-nightly
sudo apt-get update
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):

sudo apt-get 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-get update
sudo apt-get upgrade


Note: In some cases where additional packages are required, Kodi will fail to upgrade when using the upgrade commands as above. To install additional packages use the command below:

sudo apt-get dist-upgrade


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:

Find the current PPA you are using:

sudo apt-cache policy | grep team-xbmc

Remove the unstable or nightly PPA where it says PPAHERE:

sudo add-apt-repository -r ppa:PPAHERE

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 previous stable release, follow these instructions:

Remove the current stable PPA:

sudo add-apt-repository -r ppa:team-xbmc/ppa

Then install the old stable version with the following commands:

sudo add-apt-repository ppa:team-xbmc/kodi-old
sudo apt-get update
sudo apt-get remove kodi*
sudo apt-get 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 https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&field.status_filter=superseded&field.series_filter=

You will then have to download the appropiate .deb file and manually install it.


Uninstalling

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:

sudo apt-get update
sudo apt-get remove kodi*
sudo apt-get purge kodi*

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:

rm -r ~/.kodi/

or

rm -r ~/.xbmc/ # for older versions before 14.0


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

In Debian 9 (Stretch) and 10 (Buster), Kodi is available in the default "main" Debian repository. You can check this with 'apt show kodi' to show the description or 'apt policy kodi' to check available version and whether it's installed. The version in the Debian main repository is an older version (built by Debian) and is not maintained by the Kodi team.

In Debian 9 and 10, update APT and install:

sudo apt update
sudo apt install kodi


For installation if you are using Debian 8 (Jessie), you can use the debian-backports repository.

Add the following lines to your /etc/apt/sources.list file, as superuser (sudo)

# kodi repos
# starting with debian jessie, debian provides kodi via its backports repository
# remember: those packages are not supported by team kodi
deb http://http.debian.net/debian jessie-backports main

And then, update APT and install Kodi.

sudo apt-get update
sudo apt-get install kodi


Raspbian

Installing on Raspbian is done with:

sudo apt-get install kodi

Upgrading on Raspbian 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.