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, qualification 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 : Thu, 19 Apr 2018 11:20:02 UTC / Revision: 330307
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 : Thu, 19 Apr 2018 14:47:44 UTC / Revision: 330315
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, 19 Apr 2018 14:37:48 UTC / Revision: 330207
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 : Thu, 19 Apr 2018 07:31:33 UTC / Revision: 330306
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 : Thu, 19 Apr 2018 08:51:32 UTC / Revision: 330305
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
Zesty (17.04) - Last update : Wed, 03 Jan 2018 15:40:50 UTC / Revision: 321701
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty main
# 5.0
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty-5.0 main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty-5.0 main
# 6.0
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty-6.0 main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty-6.0 main
Artful (17.10) - Last update : Wed, 18 Apr 2018 23:20:33 UTC / Revision: 330294
# 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, 19 Apr 2018 09:59:57 UTC / Revision: 330310
# 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
(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 libclang1-5.0-dbg libllvm-5.0-ocaml-dev libllvm5.0 libllvm5.0-dbg 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

(qualification 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 libclang1-6.0-dbg libllvm-6.0-ocaml-dev libllvm6.0 libllvm6.0-dbg 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 libclang1-7-dbg libllvm-7-ocaml-dev libllvm7 libllvm7-dbg lldb-7 llvm-7 llvm-7-dev llvm-7-doc llvm-7-examples llvm-7-runtime clang-format-7 python-clang-7 liblldb-7-dbg 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