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, i386 (Debian only), s390x and arm64 (aka aarch64). This for both the stable, qualification and development branches (currently 18, 19 and 20).
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 + libclc + libunwind + MLIR + BOLT + flang + libc + wasm support
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh <version number>To install all apt.llvm.org packages at once:
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh <version number> all # or sudo ./llvm.sh all
deb http://apt.llvm.org/buster/ llvm-toolchain-buster main deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster main # 18 deb http://apt.llvm.org/buster/ llvm-toolchain-buster-18 main deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-18 main # 19 deb http://apt.llvm.org/buster/ llvm-toolchain-buster-19 main deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-19 mainBullseye (Debian 11 - old-stable) - Last update : Thu, 21 Nov 2024 01:40:38 UTC / Revision: 20241120102914+c58c22638e17
deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main # 18 deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-18 main deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-18 main # 19 deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-19 main deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-19 mainBookworm (Debian 12 - stable) - Last update : Thu, 21 Nov 2024 03:23:40 UTC / Revision: 20241120112105+668f2c7fab28
deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main # 18 deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-18 main deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-18 main # 19 deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-19 main deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-19 mainTrixie / sid (unstable) - Last update : Thu, 21 Nov 2024 02:17:25 UTC / Revision: 20241120102750+c58c22638e17
deb http://apt.llvm.org/unstable/ llvm-toolchain main deb-src http://apt.llvm.org/unstable/ llvm-toolchain main # 18 deb http://apt.llvm.org/unstable/ llvm-toolchain-18 main deb-src http://apt.llvm.org/unstable/ llvm-toolchain-18 main # 19 deb http://apt.llvm.org/unstable/ llvm-toolchain-19 main deb-src http://apt.llvm.org/unstable/ llvm-toolchain-19 main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal main deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main # 18 deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main # 19 deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-19 mainJammy (22.04) LTS - Last update : Wed, 20 Nov 2024 17:39:55 UTC / Revision: 20241120032115+c97478cfaf56
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy main # 18 deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main # 19 deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 mainLunar (23.04) - Last update : Wed, 20 Nov 2024 19:21:15 UTC / Revision: 20241120042308+b8e1d4dbea89
deb http://apt.llvm.org/lunar/ llvm-toolchain-lunar main deb-src http://apt.llvm.org/lunar/ llvm-toolchain-lunar main # 18 deb http://apt.llvm.org/lunar/ llvm-toolchain-lunar-18 main deb-src http://apt.llvm.org/lunar/ llvm-toolchain-lunar-18 main # 19 deb http://apt.llvm.org/lunar/ llvm-toolchain-lunar-19 main deb-src http://apt.llvm.org/lunar/ llvm-toolchain-lunar-19 mainMantic (23.10) - Last update : Tue, 19 Nov 2024 18:28:38 UTC / Revision: 20241119083558+7e85cb8a8a9d
deb http://apt.llvm.org/mantic/ llvm-toolchain-mantic main deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic main # 18 deb http://apt.llvm.org/mantic/ llvm-toolchain-mantic-18 main deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic-18 main # 19 deb http://apt.llvm.org/mantic/ llvm-toolchain-mantic-19 main deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic-19 mainNoble (24.04) - Last update : Wed, 20 Nov 2024 23:07:00 UTC / Revision: 20241120082228+86734c857724
deb http://apt.llvm.org/noble/ llvm-toolchain-noble main deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main # 18 deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main # 19 deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 mainOracular (24.10) - Last update : Wed, 20 Nov 2024 23:22:24 UTC / Revision: 20241120084117+3282be1f8d27
deb http://apt.llvm.org/oracular/ llvm-toolchain-oracular main deb-src http://apt.llvm.org/oracular/ llvm-toolchain-oracular main # 18 deb http://apt.llvm.org/oracular/ llvm-toolchain-oracular-18 main deb-src http://apt.llvm.org/oracular/ llvm-toolchain-oracular-18 main # 19 deb http://apt.llvm.org/oracular/ llvm-toolchain-oracular-19 main deb-src http://apt.llvm.org/oracular/ llvm-toolchain-oracular-19 main
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 python3-clang
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
# or
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421
apt-get install clang-18 lldb-18 lld-18
# LLVM
apt-get install libllvm-18-ocaml-dev libllvm18 llvm-18 llvm-18-dev llvm-18-doc llvm-18-examples llvm-18-runtime
# Clang and co
apt-get install clang-18 clang-tools-18 clang-18-doc libclang-common-18-dev libclang-18-dev libclang1-18 clang-format-18 python3-clang-18 clangd-18 clang-tidy-18
# compiler-rt
apt-get install libclang-rt-18-dev
# polly
apt-get install libpolly-18-dev
# libfuzzer
apt-get install libfuzzer-18-dev
# lldb
apt-get install lldb-18
# lld (linker)
apt-get install lld-18
# libc++
apt-get install libc++-18-dev libc++abi-18-dev
# OpenMP
apt-get install libomp-18-dev
# libclc
apt-get install libclc-18-dev
# libunwind
apt-get install libunwind-18-dev
# mlir
apt-get install libmlir-18-dev mlir-18-tools
# bolt
apt-get install libbolt-18-dev bolt-18
# flang
apt-get install flang-18
# wasm support
apt-get install libclang-rt-18-dev-wasm32 libclang-rt-18-dev-wasm64 libc++-18-dev-wasm32 libc++abi-18-dev-wasm32 libclang-rt-18-dev-wasm32 libclang-rt-18-dev-wasm64
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
# or
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421
apt-get install clang-19 lldb-19 lld-19
# LLVM
apt-get install libllvm-19-ocaml-dev libllvm19 llvm-19 llvm-19-dev llvm-19-doc llvm-19-examples llvm-19-runtime
# Clang and co
apt-get install clang-19 clang-tools-19 clang-19-doc libclang-common-19-dev libclang-19-dev libclang1-19 clang-format-19 python3-clang-19 clangd-19 clang-tidy-19
# compiler-rt
apt-get install libclang-rt-19-dev
# polly
apt-get install libpolly-19-dev
# libfuzzer
apt-get install libfuzzer-19-dev
# lldb
apt-get install lldb-19
# lld (linker)
apt-get install lld-19
# libc++
apt-get install libc++-19-dev libc++abi-19-dev
# OpenMP
apt-get install libomp-19-dev
# libclc
apt-get install libclc-19-dev
# libunwind
apt-get install libunwind-19-dev
# mlir
apt-get install libmlir-19-dev mlir-19-tools
# bolt
apt-get install libbolt-19-dev bolt-19
# flang
apt-get install flang-19
# wasm support
apt-get install libclang-rt-19-dev-wasm32 libclang-rt-19-dev-wasm64 libc++-19-dev-wasm32 libc++abi-19-dev-wasm32 libclang-rt-19-dev-wasm32 libclang-rt-19-dev-wasm64
# LLVM libc
apt-get install libllvmlibc-19-dev
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
# or
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421
apt-get install clang lld # clang-20 lld-20 can be added to automatically install the most recent version of the package.
apt-get install clang-20 lldb-20 lld-20
# LLVM
apt-get install libllvm-20-ocaml-dev libllvm20 llvm-20 llvm-20-dev llvm-20-doc llvm-20-examples llvm-20-runtime
# Clang and co
apt-get install clang-20 clang-tools-20 clang-20-doc libclang-common-20-dev libclang-20-dev libclang1-20 clang-format-20 python3-clang-20 clangd-20 clang-tidy-20
# compiler-rt
apt-get install libclang-rt-20-dev
# polly
apt-get install libpolly-20-dev
# libfuzzer
apt-get install libfuzzer-20-dev
# lldb
apt-get install lldb-20
# lld (linker)
apt-get install lld-20
# libc++
apt-get install libc++-20-dev libc++abi-20-dev
# OpenMP
apt-get install libomp-20-dev
# libclc
apt-get install libclc-20-dev
# libunwind
apt-get install libunwind-20-dev
# mlir
apt-get install libmlir-20-dev mlir-20-tools
# bolt
apt-get install libbolt-20-dev bolt-20
# flang
apt-get install flang-20
# wasm support
apt-get install libclang-rt-20-dev-wasm32 libclang-rt-20-dev-wasm64 libc++-20-dev-wasm32 libc++abi-20-dev-wasm32 libclang-rt-20-dev-wasm32 libclang-rt-20-dev-wasm64
# LLVM libc
apt-get install libllvmlibc-20-dev
file="llvm-toolchain-10_10.0.1~%2b%2b20210327072807%2bef32c611aa21-1~exp1~20210327183412.212.dsc"
url="https://apt.llvm.org/unstable/pool/main/l/llvm-toolchain-10/$file"
sig_file="$url.asc"
wget --quiet https://apt.llvm.org/sigstore.public.key
./rekor verify --rekor_server https://rekor.sigstore.dev --signature $sig_file --public-key sigstore.public.key --artifact $url
echo $?
file="llvm-toolchain-10_10.0.1~++20210327072807+ef32c611aa21.orig.tar.xz"
url="https://apt.llvm.org/unstable/pool/main/l/llvm-toolchain-10/$file"
wget --quiet $url
sha=$(sha256sum $file|awk '{print $1}')
./rekor search --sha sha256:$sha --rekor_server https://rekor.sigstore.dev
Contact: Sylvestre Ledru
Hosting by LLVM Foundation / CDN by Fastly