# 使用 Homebrew, MacPorts, apt, apk, dnf, chocolatey, Nix, pacman, zypper, scoop, winget 安装 llvm@15

查看 llvm@15 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:llvm@15
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install llvm@15
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install llvm-15
```

  证据: MacPorts ports tree: lang/llvm-15/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Ubuntu apt (92%):

```sh
sudo apt install llvm-15
```

  证据: Ubuntu 24.04 LTS package indexes: llvm-15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- apk (92%):

```sh
sudo apk add llvm15
```

  证据: Alpine Linux edge package indexes: llvm15 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install llvm15
```

  证据: Fedora Rawhide package metadata: llvm15 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install llvm
```

  证据: Debian stable package indexes: llvm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#llvm
```

  证据: nixpkgs package indexes: llvm from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S llvm
```

  证据: Arch Linux sync databases: llvm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install llvm
```

  证据: openSUSE Tumbleweed package metadata: llvm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install llvm
```

  证据: Chocolatey community package catalog: llvm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','lftp'

- Scoop (92%):

```sh
scoop install main/llvm
```

  证据: Scoop official bucket manifest trees: bucket/llvm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id LLVM.LLVM -e
```

  证据: Windows Package Manager source index: LLVM.LLVM from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:llvm@15
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/llvm@15>
- **版本:** 15.0.7
- **来源摘要:** Next-gen compiler infrastructure
- **主页:** <https://llvm.org/>
- **仓库:** <https://github.com/llvm/llvm-project>
- **上游文档:** <https://llvm.org/>
- **许可证:** Apache-2.0 WITH LLVM-exception
- **源码归档:** <https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/llvm-project-15.0.7.src.tar.xz>
- **最后更新:** 2026-07-03T15:55:22-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- zstd

## 构建依赖

- cmake
- python@3.12

## macOS 提供的库

- libedit
- libffi
- ncurses

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To use the bundled libc++ please add the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@15/lib/c++ -Wl,-rpath,$HOMEBREW_PREFIX/opt/llvm@15/lib/c++"
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sonoma, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 15.0.7
- 管理器更新时间: 2026-07-03
- 本地数据: OK
- 上游仓库: https://github.com/llvm/llvm-project
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

llvm@15 is Homebrew's versioned formula for the LLVM 15 release line. It packages a stable 15.x generation of the LLVM compiler infrastructure for users and downstream builds that cannot simply follow the current llvm formula.

### 项目历史

LLVM 15 continued the LLVM project's evolution from reusable optimizer and code-generation libraries into a broad compiler-toolchain platform. Like other major LLVM releases, it shipped coordinated updates across LLVM core, Clang, LLDB, LLD, libc++, compiler-rt, MLIR, and related developer tools.

A defining migration point for LLVM 15 was opaque pointers. The official opaque-pointer documentation states that LLVM 15 enabled opaque pointers by default while typed pointers were still supported, making this release a compatibility hinge between older typed-pointer IR users and the LLVM 17 world where typed pointers were no longer supported.

### 采用历史

The formula's versioned shape reflects how package ecosystems adopt LLVM: compiler stacks move quickly, but language runtimes, static analyzers, code generators, and editor tools often need one major line pinned until their LLVM API usage catches up. llvm@15 offered that stable target after the 15.0.0 release.

The input metadata shows llvm@15 packaged under names such as llvm15, llvm-15, clangd, clang15, and Homebrew llvm@15 across Linux, macOS, Windows-oriented, and Nix-style ecosystems. That spread is typical for LLVM major releases because both command-line users and build dependencies need predictable versioned tools.

### 使用方式

Users install llvm@15 to get clang-15, LLVM 15 libraries and headers, LLVM binary utilities, LLDB/LLD tools where packaged, and helper tools such as clang-tidy, clang-format, clangd, llvm-config, opt, llc, and FileCheck.

It is most useful when a build explicitly requires LLVM 15 or when maintainers need to test code against the opaque-pointer default before moving to later LLVM releases.

### 为什么软件包爱好者会关心

llvm@15 is significant because it packaged one of LLVM's biggest IR model transitions as a selectable toolchain rather than forcing every downstream package to migrate at once. That is exactly why package managers keep versioned compiler stacks around.

For maintainers, llvm@15 often marks the point where old typed-pointer assumptions become visible in build logs and tests, while still leaving escape hatches unavailable in later releases.

### 时间线

- 2000: LLVM begins as a University of Illinois compiler research project.
- 2022-09-06: LLVM 15.0.0 is published on GitHub.
- 2022-09-20: LLVM 15.0.1 is published.
- 2022: LLVM 15 enables opaque pointers by default while retaining typed-pointer support.
- 2023: Package ecosystems continue carrying llvm-15 packages while LLVM 16 and 17 advance the opaque-pointer transition.

### Related projects

- LLVM 15 ships with Clang 15, LLDB 15, LLD 15, libc++, compiler-rt, MLIR, OpenMP, and related LLVM tools.
- It is related to llvm@14 as the next migration step, and to llvm@16 and llvm@17 as later stages in the opaque-pointer transition.

### 来源

- <https://api.github.com/repos/llvm/llvm-project/releases>
- <https://llvm.org/>
- <https://llvm.org/docs/OpaquePointers.html>
- <https://releases.llvm.org/15.0.0/docs/>
- <https://releases.llvm.org/15.0.0/docs/ReleaseNotes.html>
- source_facts.package-manager


## 安全说明

没有找到 llvm@15 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** llvm@15
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** maximum_macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## 其他软件包管理器记录

- Ubuntu apt - llvm-15 - 1:15.0.7-14build3: normalized package name match | Ubuntu 24.04 LTS package indexes: llvm-15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Modular compiler and toolchain technologies | https://www.llvm.org/
- MacPorts - llvm-15: normalized package name match | MacPorts ports tree: lang/llvm-15/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- apk - llvm15 - 15.0.7-r20: package manager index match | Alpine Linux edge package indexes: llvm15 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Low Level Virtual Machine compiler system, version 15 | https://llvm.org/
- apk - llvm15-dev - 15.0.7-r20: package manager index match | Alpine Linux edge package indexes: llvm15-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Low Level Virtual Machine compiler system, version 15 (development files) | https://llvm.org/
- apk - llvm15-libs - 15.0.7-r20: package manager index match | Alpine Linux edge package indexes: llvm15-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LLVM 15 runtime library | https://llvm.org/
- apk - llvm15-static - 15.0.7-r20: package manager index match | Alpine Linux edge package indexes: llvm15-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LLVM 15 static libraries | https://llvm.org/
- apk - llvm15-test-utils - 15.0.7-r20: package manager index match | Alpine Linux edge package indexes: llvm15-test-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LLVM 15 utilities for executing LLVM and Clang style test suites | https://llvm.org/
- dnf - llvm15 - 15.0.7-17.fc45: package manager index match | Fedora Rawhide package metadata: llvm15 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The Low Level Virtual Machine | http://llvm.org
- dnf - llvm15-devel - 15.0.7-17.fc45: package manager index match | Fedora Rawhide package metadata: llvm15-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Libraries and header files for LLVM | http://llvm.org
- dnf - llvm15-doc - 15.0.7-17.fc45: package manager index match | Fedora Rawhide package metadata: llvm15-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for LLVM | http://llvm.org
- dnf - llvm15-libs - 15.0.7-17.fc45: package manager index match | Fedora Rawhide package metadata: llvm15-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | LLVM shared libraries | http://llvm.org
- dnf - llvm15-static - 15.0.7-17.fc45: package manager index match | Fedora Rawhide package metadata: llvm15-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | LLVM static libraries | http://llvm.org
- Debian apt - llvm - 1:19.0-63: versioned package alias match | Debian stable package indexes: llvm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Modular compiler and toolchain technologies
- Nix - llvm: versioned package alias match | nixpkgs package indexes: llvm from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - llvm - 1:18.0-59~exp2: versioned package alias match | Ubuntu 24.04 LTS package indexes: llvm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Low-Level Virtual Machine (LLVM)
- apk - llvm - 22-r0: versioned package alias match | Alpine Linux edge package indexes: llvm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Low Level Virtual Machine compiler system, default version. | https://llvm.org/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [python@3.12](https://pkg.so/zh-hans/brew/python-3-12/) - Build dependency declared by Homebrew.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Package name indicates the same formula family.
- [llvm@20](https://pkg.so/zh-hans/brew/llvm-20/) - Package name indicates the same formula family.
- [llvm@21](https://pkg.so/zh-hans/brew/llvm-21/) - Package name indicates the same formula family.
- [llvm@18](https://pkg.so/zh-hans/brew/llvm-18/) - Package name indicates the same formula family.
- [llvm@19](https://pkg.so/zh-hans/brew/llvm-19/) - Package name indicates the same formula family.
- [llvm@16](https://pkg.so/zh-hans/brew/llvm-16/) - Package name indicates the same formula family.
- [llvm@14](https://pkg.so/zh-hans/brew/llvm-14/) - Package name indicates the same formula family.
- [lld](https://pkg.so/zh-hans/brew/lld/) - Shares the same upstream source repository.

## Combined YAML source

View the package source record on GitHub. [combined/llvm@15.yml](https://github.com/mxcl/pkgdb/blob/main/combined/llvm@15.yml)


## 来源

- pkg.so package database
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
