LLVM APT 软件仓库

安装脚本
LLVM 版本
默认

下载脚本

wget https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/llvm.sh
chmod +x llvm.sh
./llvm.sh all -m https://mirrors.tuna.tsinghua.edu.cn/llvm-apt
手动启用
首先信任来自 https://apt.llvm.org/ 的 PGP 公钥:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
新增 /etc/apt/sources.list.d/llvm-apt.list,内容为

发行版
Debian 12 (bookworm)
LLVM 版本
默认
启用源码源

默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/bookworm/ llvm-toolchain-bookworm main

deb-src https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/bookworm/ llvm-toolchain-bookworm main

评论

等风等雨等你来