macOS
brew install llvmlocal Homebrew formula metadata
安装
brew install llvmlocal Homebrew formula metadata
sudo apk add llvmAlpine Linux edge package indexes · llvm · 来源: dl-cdn.alpinelinux.org
sudo dnf install llvmFedora Rawhide package metadata · llvm · 来源: dl.fedoraproject.org
nix profile install nixpkgs#llvmnixpkgs package indexes · llvm · 来源: raw.githubusercontent.com
sudo pacman -S llvmArch Linux sync databases · llvm · 来源: geo.mirror.pkgbuild.com
sudo zypper install llvmopenSUSE Tumbleweed package metadata · llvm · 来源: download.opensuse.org
choco install llvmChocolatey community package catalog · llvm · 来源: community.chocolatey.org
scoop install main/llvmScoop official bucket manifest trees · bucket/llvm.json · 来源: api.github.com
winget install --id LLVM.LLVM -eWindows Package Manager source index · LLVM.LLVM · 来源: cdn.winget.microsoft.com
概览
Next-gen compiler infrastructure
历史
LLVM is a modular compiler and toolchain infrastructure project packaged by Homebrew as the current llvm formula. It includes the LLVM core libraries and command-line tools, the Clang compiler frontend, LLDB debugger, LLD linker, libc++, MLIR tooling, and many smaller developer utilities.
LLVM began as a University of Illinois research project to provide a modern SSA-based compilation strategy for static and dynamic languages. The official LLVM homepage describes the project as a collection of modular and reusable compiler and toolchain technologies, with LLVM now functioning as a project name rather than an acronym for a virtual machine.
The project grew from core optimizer and code-generation libraries into an umbrella project. The official overview lists major subprojects such as Clang for C-family languages, LLDB for native debugging, LLD for linking, libc++ for the C++ standard library, Flang for Fortran, and MLIR infrastructure for compiler construction. The GitHub README describes the repository as source for compilers, optimizers, and run-time environments.
LLVM became a package-manager staple because it is both an end-user toolchain and a dependency for other language runtimes, build systems, static analyzers, editor integrations, and cross-compilation stacks. The official homepage notes production use by commercial and open-source projects and continued academic use, which matches the broad package-manager coverage shown in the input metadata.
For Homebrew users, llvm is often installed to obtain a newer clang than Apple's system compiler, a full llvm-config and library stack, up-to-date linker and object-file tools, clang-format, clang-tidy, clangd, lldb, and architecture-specific utilities. Versioned Homebrew formulae such as llvm@14 through llvm@17 exist because downstream projects frequently need a stable ABI, code-generation behavior, or plugin API tied to a specific LLVM major release.
Users install llvm to compile C, C++, Objective-C, and other LLVM-backed languages; run optimizer and code-generation tools such as opt and llc; inspect and transform object files with llvm-objdump, llvm-nm, llvm-ar, and llvm-strip; debug with lldb; format and analyze C-family source with clang-format, clang-tidy, and clangd; and build other packages that need llvm-config or LLVM libraries.
The package is also a build dependency for projects that embed LLVM as a library, generate LLVM IR, ship compiler plugins, or need MLIR and TableGen tooling. In package-manager culture, llvm is less a single command than a large toolchain substrate whose installed prefix can change the behavior of many builds.
LLVM is one of the most consequential developer-tool packages in Unix package managers: it provides compilers, linkers, debuggers, binary utilities, formatters, language servers, and libraries that other packages compile against. Its formula is watched closely because a major LLVM bump can reveal C++ standard-library issues, linker changes, sanitizer behavior changes, and downstream projects that accidentally depended on private compiler internals.
The package is also historically important because it displaced the idea that a system compiler was a monolith. LLVM's reusable libraries let package ecosystems build many language frontends, analyzers, and toolchain experiments on common optimizer and code-generation components.
安全态势
compiler and toolchain runtime.
yellow 风险 · 高 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
FileCheck | cli | 全局可执行文件 | |
UnicodeNameMappingGenerator | cli | 全局可执行文件 | |
amdgpu-arch | cli | 全局可执行文件 | |
analyze-build | cli | 全局可执行文件 | |
bugpoint | cli | 全局可执行文件 | |
clang | cli | 全局可执行文件 | |
clang++ | cli | 全局可执行文件 | |
clang-22 | cli | 全局可执行文件 | |
clang-apply-replacements | cli | 全局可执行文件 | |
clang-change-namespace | cli | 全局可执行文件 | |
clang-check | cli | 全局可执行文件 | |
clang-cl | cli | 全局可执行文件 | |
clang-cpp | cli | 全局可执行文件 | |
clang-doc | cli | 全局可执行文件 | |
clang-extdef-mapping | cli | 全局可执行文件 | |
clang-include-cleaner | cli | 全局可执行文件 | |
clang-include-fixer | cli | 全局可执行文件 | |
clang-installapi | cli | 全局可执行文件 | |
clang-linker-wrapper | cli | 全局可执行文件 | |
clang-move | cli | 全局可执行文件 | |
clang-nvlink-wrapper | cli | 全局可执行文件 | |
clang-offload-bundler | cli | 全局可执行文件 | |
clang-offload-packager | cli | 全局可执行文件 | |
clang-query | cli | 全局可执行文件 | |
clang-refactor | cli | 全局可执行文件 | |
clang-reorder-fields | cli | 全局可执行文件 | |
clang-repl | cli | 全局可执行文件 | |
clang-scan-deps | cli | 全局可执行文件 | |
clang-sycl-linker | cli | 全局可执行文件 | |
clang-tblgen | cli | 全局可执行文件 | |
clang-tidy | cli | 全局可执行文件 | |
clangd | cli | 全局可执行文件 | |
count | cli | 全局可执行文件 | |
diagtool | cli | 全局可执行文件 | |
dsymutil | cli | 全局可执行文件 | |
find-all-symbols | cli | 全局可执行文件 | |
hmaptool | cli | 全局可执行文件 | |
intercept-build | cli | 全局可执行文件 | |
llc | cli | 全局可执行文件 | |
lldb | cli | 全局可执行文件 | |
lldb-argdumper | cli | 全局可执行文件 | |
lldb-dap | cli | 全局可执行文件 | |
lldb-instr | cli | 全局可执行文件 | |
lldb-mcp | cli | 全局可执行文件 | |
lldb-server | cli | 全局可执行文件 | |
lldb-tblgen | cli | 全局可执行文件 | |
lli | cli | 全局可执行文件 | |
lli-child-target | cli | 全局可执行文件 | |
llvm-PerfectShuffle | cli | 全局可执行文件 | |
llvm-addr2line | cli | 全局可执行文件 | |
llvm-ar | cli | 全局可执行文件 | |
llvm-as | cli | 全局可执行文件 | |
llvm-bcanalyzer | cli | 全局可执行文件 | |
llvm-bitcode-strip | cli | 全局可执行文件 | |
llvm-c-test | cli | 全局可执行文件 | |
llvm-cas | cli | 全局可执行文件 | |
llvm-cat | cli | 全局可执行文件 | |
llvm-cfi-verify | cli | 全局可执行文件 | |
llvm-cgdata | cli | 全局可执行文件 | |
llvm-config | cli | 全局可执行文件 | |
llvm-cov | cli | 全局可执行文件 | |
llvm-ctxprof-util | cli | 全局可执行文件 | |
llvm-cvtres | cli | 全局可执行文件 | |
llvm-cxxdump | cli | 全局可执行文件 | |
llvm-cxxfilt | cli | 全局可执行文件 | |
llvm-cxxmap | cli | 全局可执行文件 | |
llvm-debuginfo-analyzer | cli | 全局可执行文件 | |
llvm-debuginfod | cli | 全局可执行文件 | |
llvm-debuginfod-find | cli | 全局可执行文件 | |
llvm-diff | cli | 全局可执行文件 | |
llvm-dis | cli | 全局可执行文件 | |
llvm-dlltool | cli | 全局可执行文件 | |
llvm-dwarfdump | cli | 全局可执行文件 | |
llvm-dwarfutil | cli | 全局可执行文件 | |
llvm-dwp | cli | 全局可执行文件 | |
llvm-exegesis | cli | 全局可执行文件 | |
llvm-extract | cli | 全局可执行文件 | |
llvm-gsymutil | cli | 全局可执行文件 | |
llvm-ifs | cli | 全局可执行文件 | |
llvm-install-name-tool | cli | 全局可执行文件 | |
llvm-ir2vec | cli | 全局可执行文件 | |
llvm-jitlink | cli | 全局可执行文件 | |
llvm-jitlink-executor | cli | 全局可执行文件 | |
llvm-lib | cli | 全局可执行文件 | |
llvm-libtool-darwin | cli | 全局可执行文件 | |
llvm-link | cli | 全局可执行文件 | |
llvm-lipo | cli | 全局可执行文件 | |
llvm-lto | cli | 全局可执行文件 | |
llvm-lto2 | cli | 全局可执行文件 | |
llvm-mc | cli | 全局可执行文件 | |
llvm-mca | cli | 全局可执行文件 | |
llvm-ml | cli | 全局可执行文件 | |
llvm-ml64 | cli | 全局可执行文件 | |
llvm-modextract | cli | 全局可执行文件 | |
llvm-nm | cli | 全局可执行文件 | |
llvm-objcopy | cli | 全局可执行文件 | |
llvm-objdump | cli | 全局可执行文件 | |
llvm-offload-binary | cli | 全局可执行文件 | |
llvm-offload-wrapper | cli | 全局可执行文件 | |
llvm-opt-report | cli | 全局可执行文件 | |
llvm-otool | cli | 全局可执行文件 | |
llvm-pdbutil | cli | 全局可执行文件 | |
llvm-profdata | cli | 全局可执行文件 | |
llvm-profgen | cli | 全局可执行文件 | |
llvm-ranlib | cli | 全局可执行文件 | |
llvm-rc | cli | 全局可执行文件 | |
llvm-readelf | cli | 全局可执行文件 | |
llvm-readobj | cli | 全局可执行文件 | |
llvm-readtapi | cli | 全局可执行文件 | |
llvm-reduce | cli | 全局可执行文件 | |
llvm-remarkutil | cli | 全局可执行文件 | |
llvm-rtdyld | cli | 全局可执行文件 | |
llvm-sim | cli | 全局可执行文件 | |
llvm-size | cli | 全局可执行文件 | |
llvm-split | cli | 全局可执行文件 | |
llvm-stress | cli | 全局可执行文件 | |
llvm-strings | cli | 全局可执行文件 | |
llvm-strip | cli | 全局可执行文件 | |
llvm-symbolizer | cli | 全局可执行文件 | |
llvm-tblgen | cli | 全局可执行文件 | |
llvm-test-mustache-spec | cli | 全局可执行文件 | |
llvm-tli-checker | cli | 全局可执行文件 | |
llvm-undname | cli | 全局可执行文件 | |
llvm-windres | cli | 全局可执行文件 | |
llvm-xray | cli | 全局可执行文件 | |
mlir-cat | cli | 全局可执行文件 | |
mlir-linalg-ods-yaml-gen | cli | 全局可执行文件 | |
mlir-lsp-server | cli | 全局可执行文件 | |
mlir-minimal-opt | cli | 全局可执行文件 | |
mlir-minimal-opt-canonicalize | cli | 全局可执行文件 | |
mlir-opt | cli | 全局可执行文件 | |
mlir-pdll | cli | 全局可执行文件 | |
mlir-pdll-lsp-server | cli | 全局可执行文件 | |
mlir-query | cli | 全局可执行文件 | |
mlir-reduce | cli | 全局可执行文件 | |
mlir-rewrite | cli | 全局可执行文件 | |
mlir-runner | cli | 全局可执行文件 | |
mlir-tblgen | cli | 全局可执行文件 | |
mlir-transform-opt | cli | 全局可执行文件 | |
mlir-translate | cli | 全局可执行文件 | |
modularize | cli | 全局可执行文件 | |
not | cli | 全局可执行文件 | |
nvptx-arch | cli | 全局可执行文件 | |
obj2yaml | cli | 全局可执行文件 | |
offload-arch | cli | 全局可执行文件 | |
opt | cli | 全局可执行文件 | |
pp-trace | cli | 全局可执行文件 | |
reduce-chunk-list | cli | 全局可执行文件 | |
run-clang-tidy | cli | 全局可执行文件 | |
sancov | cli | 全局可执行文件 | |
sanstats | cli | 全局可执行文件 | |
scan-build | cli | 全局可执行文件 | |
scan-build-py | cli | 全局可执行文件 | |
scan-view | cli | 全局可执行文件 | |
split-file | cli | 全局可执行文件 | |
tblgen-lsp-server | cli | 全局可执行文件 | |
tblgen-to-irdl | cli | 全局可执行文件 | |
verify-uselistorder | cli | 全局可执行文件 | |
yaml-bench | cli | 全局可执行文件 | |
yaml2macho-core | cli | 全局可执行文件 | |
yaml2obj | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/llvm/llvm-project
安装元数据
| 软件包键 | brew:llvm |
|---|---|
| 版本 | 22.1.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/llvm |
| 主页 | https://llvm.org/ |
| 仓库 | https://github.com/llvm/llvm-project |
| 上游文档 | https://llvm.org/docs |
| 许可证 | Apache-2.0 WITH LLVM-exception |
| 源码归档 | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| 最后更新 | 2026-06-25T13:37:48+02:00 |
| Pulse | updated |
| 依赖 | python@3.14, xz, z3, zstd |
| 构建依赖 | cmake, ninja, swig |
| macOS 提供的库 | libedit, libffi, ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 已定义 |
| 服务 | 未声明 |
| 注意事项 | CLANG_CONFIG_FILE_SYSTEM_DIR: $HOMEBREW_PREFIX/etc/clang CLANG_CONFIG_FILE_USER_DIR: ~/.config/clang LLD is now provided in a separate formula: brew install lld Using `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`. If you don't want to install the CLT, you can write appropriate configuration files pointing to your SDK at ~/.config/clang. To use the bundled libunwind please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm/lib/unwind -lunwind" Features newer than system libc++ will require the following define to enable (support for this may be removed in a future major LLVM release): CPPFLAGS="-D_LIBCPP_DISABLE_AVAILABILITY" NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing. |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | llvm |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
llvm 1:19.0-63
Modular compiler and toolchain technologies
sudo apt install llvmllvm
nix profile install nixpkgs#llvmllvm 1:18.0-59~exp2
Low-Level Virtual Machine (LLVM)
sudo apt install llvmllvm 22-r0
Low Level Virtual Machine compiler system, default version.
sudo apk add llvmllvm-dev 22-r0
Low Level Virtual Machine compiler system, default version.
sudo apk add llvm-devllvm-gtest 22-r0
LLVM default gtest static libraries
sudo apk add llvm-gtestllvm-libs 22-r0
LLVM 22 runtime library
sudo apk add llvm-libsllvm-linker-tools 22-r0
Low Level Virtual Machine compiler system, default version. (linker plugins)
sudo apk add llvm-linker-toolsllvm-static 22-r0
LLVM 22 static libraries
sudo apk add llvm-staticllvm-test-utils 22-r0
LLVM utilities for executing LLVM and Clang style test suites
sudo apk add llvm-test-utilsclang 22.1.7-1.fc45
A C language family front-end for LLVM
sudo dnf install clangclang-analyzer 22.1.7-1.fc45
A source code analysis framework
sudo dnf install clang-analyzerclang-devel 22.1.7-1.fc45
Development header files for clang
sudo dnf install clang-develclang-libs 22.1.7-1.fc45
Runtime library for clang
sudo dnf install clang-libsclang-resource-filesystem 22.1.7-1.fc45
Filesystem package that owns the clang resource directory
sudo dnf install clang-resource-filesystemclang-tools-extra 22.1.7-1.fc45
Extra tools for clang
sudo dnf install clang-tools-extra来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.