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

From Official Kodi Wiki
Jump to navigation Jump to search
Line 54: Line 54:
Follow the prompts to add the repository, then to add the updates, and finally install the new version of XBMC.
Follow the prompts to add the repository, then to add the updates, and finally install the new version of XBMC.


===Going From a Beta/Unstable Version to a Stable Version===
=== Going back to a stable version from a development version ===
Check what XBMC versions you have access to:
To return to a stable release:
<syntaxhighlight lang="bash">
sudo apt-cache policy xbmc
xbmc:
  Installed: 2:13.2~git20140719.0900-beta2-0trusty
  Candidate: 2:13.2~git20140719.0900-beta2-0trusty
  Version table:
*** 2:13.2~git20140719.0900-beta2-0trusty 0
        500 http://ppa.launchpad.net/team-xbmc/unstable/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
    2:13.1~git20140606.0917-gotham-0trusty 0
        500 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ trusty/main amd64 Packages
    2:12.3+dfsg1-3ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
</syntaxhighlight>
{{note|1=In the above example we have an unstable ('''team-xbmc/unstable''') and the release versions ('''team-xbmc/ppa''') available.  The version with the '''***''' is the currently installed version (unstable)}}
 
To install the release version we need to install the team-xbmc/ppa version (in the above example: "2:13.1~git20140606.0917-gotham-0trusty").  This requires us to install both the "'''xbmc'''" and the "'''xbmc-bin'''" package.
<syntaxhighlight lang="bash">
sudo apt-get install xbmc=2:13.1~git20140606.0917-gotham-0trusty xbmc-bin=2:13.1~git20140606.0917-gotham-0trusty
</syntaxhighlight>
{{note|1=You will get a warning you are downgrading, hit Y when asked to continue}}


Remove the beta/unstable repository from XBMC to clean up:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo add-apt-repository -r ppa:team-xbmc/unstable
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get remove xbmc
sudo apt-get install xbmc
</syntaxhighlight>
</syntaxhighlight>



Revision as of 12:22, 18 September 2014

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

These are instructions for people who already have a Linux-based OS set up. If you have not installed a Linux-based OS yet, you might wish to try out XBMCbuntu which will install both the OS and XBMC with an easy installer.

Official Team Kodi/XBMC repositories

Ubuntu

Simple Install Instructions

Note: Click here to find out how to use the terminal.

  • Before you run these comands type "sudo echo" into the terminal and hit Enter.
  • Then copy the area below up to sudo add...
  • Go back to the terminal, hit the middle mouse button and when it prompts hit Enter.
  • Copy the part after sudo add... and paste it to the terminal.
  • If it askes you if you want to install enter y and hit Enter
sudo apt-get install python-software-properties pkg-config
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install xbmc


Team XBMC PPA

Updating

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):

sudo apt-get update
sudo apt-get install xbmc

XBMCbuntu

XBMCbuntu

Installing a development build

To install a beta/unstable version of XBMC 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/unstable
sudo apt-get update
sudo apt-get install xbmc

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

Going back to a stable version from a development version

To return to a stable release:

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

Other repositories

Unofficial Linux binaries that are un/semi supported by Team XBMC. These use internal ffmpeg libraries rather than system ffmpeg or libav, which is recommended for XBMC.

Debian

http://people.debian.org/~rbalint/ppa/xbmc-ffmpeg/

OpenELEC

OpenELEC

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.

See also