Skip to main content

LLVM APT Mirror Usage Guide

info

Some content in this document may have been translated by AI.

LLVM APT Introduction

LLVM APT is an APT repository provided for Debian and Ubuntu systems to install the LLVM toolchain.

Automatic Installation

LLVM official provides an automatic configuration and installation script, supporting Debian and Ubuntu series installation.

LLVM Version
Default
Whether is root user
wget https://mirrors.hust.edu.cn/llvm-apt/llvm.sh -O llvm.sh
chmod +x llvm.sh
./llvm.sh all -m https://mirrors.hust.edu.cn/llvm-apt

Manual Installation

Distribution
Ubuntu 24.04
Enable source mirror
Whether is root user
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null << EOF
deb https://mirrors.hust.edu.cn/llvm-apt/noble llvm-toolchain-noble main
# deb-src https://mirrors.hust.edu.cn/llvm-apt/noble llvm-toolchain-noble main
EOF
Choose your prefered domain
mirrors.hust.edu.cn
This domain is Dual Stack
Enable HTTPS