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 11, 12 and 13).

Packages are built using stage2 and extremely similar to the one shipping in Debian & Ubuntu.

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

Mar 28th 2021 - Ubuntu Xenial (16.04) disabled (EOL)
Feb 01st 2021 - Snapshot becomes 13, branch 12 created
Feb 01st 2021 - Debian Bullseye (11) added
Nov 01st 2020 - Ubuntu Groovy (20.10) & Hirsute (21.04) support
Nov 01st 2020 - Ubuntu Eoan disabled (EOL)
Jul 15th 2020 - Snapshot becomes 12, branch 11 created
Apr 14th 2020 - Ubuntu Disco disabled (EOL)
Apr 06th 2020 - Ubuntu Focal (20.04) support
Jan 23th 2020 - Snapshot becomes 11, branch 10 created
Jan 19th 2020 - Ubuntu Cosmic disabled (EOL)
Oct 30th 2019 - Ubuntu Eoan (19.10) support
Aug 20th 2019 - Ubuntu Trusty disabled (EOL)
Aug 01st 2019 - Snapshot becomes 10, branch 9 created
Apr 07th 2019 - Debian buster (10) added
Apr 06th 2019 - Debian Jessie (oldstable) no longer maintained
Jan 19th 2019 - Branch 8 created
Jan 19th 2019 - Ubuntu Disco (19.04) support
Jan 19th 2019 - Artful jobs disabled (but packages still available)
Automatic installation script
For convenience there is an automatic installation script available that installs LLVM for you.
To install the latest stable version:
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"

To install a specific version of LLVM:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh <version number>
Stretch (Debian 9 - oldstable) - Last update : Thu, 15 Apr 2021 02:04:15 UTC / Revision: 20210414115135+127322ddebde
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch main
# 11 
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-11 main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-11 main
# 12 
deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-12 main
deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-12 main
Buster (Debian 10 - stable) - Last update : Thu, 15 Apr 2021 03:16:55 UTC / Revision: 20210414102639+6559ebd91b70
deb http://apt.llvm.org/buster/ llvm-toolchain-buster main
deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster main
# 11 
deb http://apt.llvm.org/buster/ llvm-toolchain-buster-11 main
deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-11 main
# 12 
deb http://apt.llvm.org/buster/ llvm-toolchain-buster-12 main
deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-12 main
Bullseye (Debian 11 - next stable) - Last update : Wed, 14 Apr 2021 23:55:01 UTC / Revision: 20210414071739+91b6ef64db55
deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main
deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main
# 11 
deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-11 main
deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-11 main
# 12 
deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-12 main
deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-12 main
sid (unstable) - Last update : Tue, 06 Apr 2021 18:30:27 UTC / Revision: 20210405022414+5f57793c4fe4
deb http://apt.llvm.org/unstable/ llvm-toolchain main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain main
# 11 
deb http://apt.llvm.org/unstable/ llvm-toolchain-11 main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain-11 main
# 12 
deb http://apt.llvm.org/unstable/ llvm-toolchain-12 main
deb-src http://apt.llvm.org/unstable/ llvm-toolchain-12 main

Precise, Quantal, Raring, Saucy, Utopic, Artful, Cosmic, Eoan and Trusty are no longer supported by Ubuntu. Repo remains available

Xenial LTS (16.04) - Last update : Sun, 28 Mar 2021 01:22:32 UTC / Revision: 20210327080829+e5f2898bc751
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
# 11
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main
# 12
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-12 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-12 main
Bionic LTS (18.04) - Last update : Fri, 09 Apr 2021 23:48:39 UTC / Revision: 20210409063833+9da35814e5fb
# i386 not available
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
# 11
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main
# 12
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
Focal (20.04) LTS - Last update : Wed, 14 Apr 2021 20:51:07 UTC / Revision: 20210414052638+4d195f1b4dd6
# i386 not available
deb http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main
# 11
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main
# 12
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main

Groovy (20.10) - Last update : Sat, 10 Apr 2021 10:15:53 UTC / Revision: 20210405022245+5f57793c4fe4
# i386 not available
deb http://apt.llvm.org/groovy/ llvm-toolchain-groovy main
deb-src http://apt.llvm.org/groovy/ llvm-toolchain-groovy main
# 11
deb http://apt.llvm.org/groovy/ llvm-toolchain-groovy-11 main
deb-src http://apt.llvm.org/groovy/ llvm-toolchain-groovy-11 main
# 12
deb http://apt.llvm.org/groovy/ llvm-toolchain-groovy-12 main
deb-src http://apt.llvm.org/groovy/ llvm-toolchain-groovy-12 main
Hirsute (21.04) - Last update : Thu, 25 Mar 2021 01:33:13 UTC / Revision: 20210324083519+a6aae5f7fcd1
# i386 not available
deb http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute main
deb-src http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute main
# 11
deb http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute-11 main
deb-src http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute-11 main
# 12
deb http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute-12 main
deb-src http://apt.llvm.org/hirsute/ llvm-toolchain-hirsute-12 main
Default packages
To make sure always the most recent versions of the packages are installed, we are providing some default packages.
To install all of them (currently version 13):

apt-get install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python-clang

(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, lld and lldb (11 release):

apt-get install clang-11 lldb-11 lld-11

To install all key packages:

apt-get install libllvm-11-ocaml-dev libllvm11 llvm-11 llvm-11-dev llvm-11-doc llvm-11-examples llvm-11-runtime
# Clang and co
apt-get install clang-11 clang-tools-11 clang-11-doc libclang-common-11-dev libclang-11-dev libclang1-11 clang-format-11 python-clang-11 clangd-11
# libfuzzer
apt-get install libfuzzer-11-dev
# lldb
apt-get install lldb-11
# lld (linker)
apt-get install lld-11
# libc++
apt-get install libc++-11-dev libc++abi-11-dev
# OpenMP
apt-get install libomp-11-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, lld and lldb (12 release):

apt-get install clang-12 lldb-12 lld-12

To install all key packages:

apt-get install libllvm-12-ocaml-dev libllvm12 llvm-12 llvm-12-dev llvm-12-doc llvm-12-examples llvm-12-runtime
# Clang and co
apt-get install clang-12 clang-tools-12 clang-12-doc libclang-common-12-dev libclang-12-dev libclang1-12 clang-format-12 python-clang-12 clangd-12
# libfuzzer
apt-get install libfuzzer-12-dev
# lldb
apt-get install lldb-12
# lld (linker)
apt-get install lld-12
# libc++
apt-get install libc++-12-dev libc++abi-12-dev
# OpenMP
apt-get install libomp-12-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-13 lld-13 can be added to automatically install the most recent version of the package.

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

apt-get install clang-13 lldb-13 lld-13

To install all key packages:

apt-get install libllvm-13-ocaml-dev libllvm13 llvm-13 llvm-13-dev llvm-13-doc llvm-13-examples llvm-13-runtime
# Clang and co
apt-get install clang-13 clang-tools-13 clang-13-doc libclang-common-13-dev libclang-13-dev libclang1-13 clang-format-13 python-clang-13 clangd-13
# libfuzzer
apt-get install libfuzzer-13-dev
# lldb
apt-get install lldb-13
# lld (linker)
apt-get install lld-13
# libc++
apt-get install libc++-13-dev libc++abi-13-dev
# OpenMP
apt-get install libomp-13-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