LLVM Debian/Ubuntu nightly packages

The goal is to provide Debian and Ubuntu nightly packages ready to be installed with minimal impact on the distribution.
Packages are available for amd64 and i386 (except for recent Ubuntu) and for both the stable, old-stable and development branches (currently 5.0, 6.0 and 7).

The packages provide LLVM + Clang + compiler-rt + polly + LLDB + LLD + libFuzzer

Jessie (Debian old stable) - Last update : Wed, 15 Aug 2018 19:05:34 UTC / Revision: 338270
deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie main
deb-src http://apt.llvm.org/jessie/ llvm-toolchain-jessie main
# 5.0 
deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-5.0 main
deb-src http://apt.llvm.org/jessie/ llvm-toolchain-jessie-5.0 main
# 6.0 
deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-6.0 main
deb-src http://apt.llvm.org/jessie/ llvm-toolchain-jessie-6.0 main
Stretch (Debian stable) - Last update : Wed, 15 Aug 2018 12:58:02 UTC / Revision: 337258
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch main
# 5.0 
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main
# 6.0 
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-6.0 main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-6.0 main
sid (unstable) - Last update : Thu, 16 Aug 2018 03:09:18 UTC / Revision: 339805
deb http://apt.llvm.org/unstable/ llvm-toolchain main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain main
# 5.0 
deb http://apt.llvm.org/unstable/ llvm-toolchain-5.0 main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain-5.0 main
# 6.0 
deb http://apt.llvm.org/unstable/ llvm-toolchain-6.0 main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain-6.0 main

gcc backport (ppa) is necessary on Trusty (for libstdc++).
Precise, Quantal, Raring, Saucy and Utopic are no longer supported by Ubuntu.

Trusty (14.04) - Last update : Mon, 30 Jul 2018 20:07:36 UTC / Revision: 338253
deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main
deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty main
# 5.0 
deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main
deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main
# 6.0 
deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main
deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main

# Also add the following for the appropriate libstdc++
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main
Xenial (16.04) - Last update : Fri, 27 Jul 2018 20:46:10 UTC / Revision: 338141
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
# 5.0
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
# 6.0
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main
Artful (17.10) - Last update : Wed, 15 Aug 2018 23:59:23 UTC / Revision: 339811
# i386 not available
deb http://apt.llvm.org/artful/ llvm-toolchain-artful main
deb-src http://apt.llvm.org/artful/ llvm-toolchain-artful main
# 5.0
deb http://apt.llvm.org/artful/ llvm-toolchain-artful-5.0 main
deb-src http://apt.llvm.org/artful/ llvm-toolchain-artful-5.0 main
# 6.0
deb http://apt.llvm.org/artful/ llvm-toolchain-artful-6.0 main
deb-src http://apt.llvm.org/artful/ llvm-toolchain-artful-6.0 main
Bionic (18.04) - Last update : Thu, 16 Aug 2018 19:28:47 UTC / Revision: 339895
# i386 not available
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
# 5.0
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-5.0 main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-5.0 main
# 6.0
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main
(old-stable branch)
To retrieve the archive signature:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421

To install just clang and lldb (5.0 release):

apt-get install clang-5.0 lldb-5.0

To install all packages:

apt-get install clang-5.0 clang-tools-5.0 clang-5.0-doc libclang-common-5.0-dev libclang-5.0-dev libclang1-5.0 libllvm-5.0-ocaml-dev libllvm5.0 lldb-5.0 llvm-5.0 llvm-5.0-dev llvm-5.0-doc llvm-5.0-examples llvm-5.0-runtime clang-format-5.0 python-clang-5.0 libfuzzer-5.0-dev

(stable branch)
To retrieve the archive signature:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421

To install just clang and lldb (6.0 release):

apt-get install clang-6.0 lldb-6.0 lld-6.0

To install all packages:

apt-get install clang-6.0 clang-tools-6.0 clang-6.0-doc libclang-common-6.0-dev libclang-6.0-dev libclang1-6.0 libllvm-6.0-ocaml-dev libllvm6.0 lldb-6.0 llvm-6.0 llvm-6.0-dev llvm-6.0-doc llvm-6.0-examples llvm-6.0-runtime clang-format-6.0 python-clang-6.0 lldb-6.0-dev lld-6.0 libfuzzer-6.0-dev

(development branch)
To retrieve the archive signature:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421

We also provide meta packages to move from a major version to the other.
For example, to automatically upgrade to the current major:

apt-get install clang lld # clang-7 lld-7 can be added to automatically install the most recent version of the package.

To install just clang, lld and lldb (7 release):

apt-get install clang-7 lldb-7 lld-7

To install all packages:

apt-get install clang-7 clang-tools-7 clang-7-doc libclang-common-7-dev libclang-7-dev libclang1-7 libllvm-7-ocaml-dev libllvm7 lldb-7 llvm-7 llvm-7-dev llvm-7-doc llvm-7-examples llvm-7-runtime clang-format-7 python-clang-7 lld-7 libfuzzer-7-dev

Technical aspects
Packages are rebuilt against the trunk of the various LLVM projects.
They are rebuild through a Jenkins instance:


Bugs should be reported on the LLVM bug tracker (deb packages).


Twice a day, each jenkins job will checkout the debian/ directory necessary to build the packages. The repository is available on the Debian hosting infrastructure: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/. In the llvm-toolchain-*-source, the following tasks will be performed: Then, the job llvm-toolchain-X-binary will: Note that a few patches are applied over the LLVM tarballs (and should be merged upstream at some point).
With the Jenkins instance, several reports are produced:
Building the latest nightly snapshot
Building LLVM packages from source is documented in a dedicated page.

Contact: Sylvestre Ledru
Build infra by IRILL / Hosting by LLVM Foundation / CDN by Fastly