# llvm@18 を Homebrew, apt, MacPorts, Nix, apk, dnf, pacman, zypper, chocolatey, scoop, winget でインストール

llvm@18 のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install llvm@18
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install llvm-18
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install llvm-18
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#llvm_18
```

  証拠: nixpkgs package indexes: llvm_18 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- apk (92%):

```sh
sudo apk add llvm18
```

  証拠: Alpine Linux edge package indexes: llvm18 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install llvm18
```

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

- pacman (92%):

```sh
sudo pacman -S llvm18
```

  証拠: Arch Linux sync databases: llvm18 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install llvm18
```

  証拠: openSUSE Tumbleweed package metadata: llvm18 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@18
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/llvm@18>
- **バージョン:** 18.1.8
- **ソース概要:** 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-18.1.8/llvm-project-18.1.8.src.tar.xz>
- **最終更新:** 2026-06-25T13:37:49+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 依存関係

- zstd

## ビルド依存関係

- cmake
- ninja
- python@3.14

## macOS 提供ライブラリ

- libedit
- libffi
- ncurses

## インストール挙動

- post-install フック: 未定義
- 注意点: To use the bundled libc++ please add the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@18/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@18/lib -lunwind"
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 18.1.8
- マネージャ更新日: 2026-06-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/llvm/llvm-project
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

LLVM 18 is the Homebrew versioned formula for the LLVM 18.x toolchain, including LLVM libraries and command-line tools, Clang, clang-tools, LLD, MLIR utilities, and related compiler infrastructure.

### プロジェクトの歴史

LLVM began as a University of Illinois research project to provide a modern SSA-based compilation strategy for static and dynamic compilation. The project made its 1.0 release in October 2003 and later grew into an umbrella for compiler, debugger, runtime, linker, and analysis subprojects.

The upstream project describes LLVM as a collection of modular and reusable compiler and toolchain technologies rather than a single compiler. Its core libraries provide optimizer and code-generation infrastructure around LLVM IR, while Clang, LLD, LLDB, libc++, compiler-rt, MLIR, OpenMP, and other subprojects build on that base.

### 採用の歴史

LLVM moved from academic compiler infrastructure into mainstream production use across commercial, open source, and research projects. The project highlights external users spanning language implementations, JITs, static analysis tools, linkers, debuggers, and high-performance computing toolchains.

For package managers, LLVM's release train and large set of CLI tools made it a common versioned dependency. Versioned formulae such as llvm@18 let users pin a major compiler stack while newer major releases continue to land.

### 使われ方

Package users install LLVM for Clang and clang++, clang-format, clang-tidy, clangd, LLD, llvm-ar, llvm-objdump, llvm-config, opt, llc, FileCheck, MLIR tools, and many other compiler-development utilities. Upstream getting-started documentation centers on cloning llvm-project, configuring with CMake, and selecting enabled subprojects such as clang and lld.

Clang is documented as a C, C++, and Objective-C compiler driver that handles preprocessing, parsing, optimization, code generation, assembly, and linking, while transparently invoking lower-level compiler and linker tools.

### パッケージ好きにとっての重要性

LLVM is one of the canonical package-manager stress tests: huge source trees, many binaries, CMake builds, multiple runtime libraries, and a steady major-version cadence. Versioned formulae matter because downstream projects often need a specific Clang/LLVM ABI or tool behavior.

LLVM 18 is especially useful as a stable major-series target for projects that have not moved to later LLVM APIs, for reproducible builds that pin clang-format or clang-tidy behavior, and for language runtimes that embed or link against LLVM libraries.

### タイムライン

- 2000: LLVM starts as a University of Illinois research project.
- 2003-10-24: LLVM 1.0 is released.
- 2012: LLVM receives the ACM Software System Award.
- 2024-03-05: LLVM 18.1.0 is released.
- 2024: Homebrew exposes LLVM 18 through the versioned llvm@18 formula.

### Related projects

- Clang, LLD, LLDB, libc++, compiler-rt, MLIR, OpenMP, Flang, BOLT, and the monorepo at github.com/llvm/llvm-project are the main related upstream projects.

### ソース

- <https://clang.llvm.org/docs/CommandGuide/clang.html>
- <https://llvm.org/>
- <https://llvm.org/docs/GettingStarted.html>
- <https://llvm.org/docs/GitHub.html>
- <https://llvm.org/pubs/2010-06-06-Clang-LLVM.pdf>
- <https://releases.llvm.org/>
- source_facts.package-manager-url


## セキュリティノート

llvm@18 に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。


## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Debian apt - llvm-18 - 1:18.1.8-18+b1: normalized package name match | Debian stable package indexes: llvm-18 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Modular compiler and toolchain technologies | https://www.llvm.org/
- Nix - llvm_18: normalized package name match | nixpkgs package indexes: llvm_18 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - llvm-18 - 1:18.1.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: llvm-18 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Modular compiler and toolchain technologies | https://www.llvm.org/
- MacPorts - llvm-18: normalized package name match | MacPorts ports tree: lang/llvm-18/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- apk - clang18 - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM | https://llvm.org/
- apk - clang18-ccache - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-ccache from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (ccache symlinks) | https://llvm.org/
- apk - clang18-dev - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (development files) | https://llvm.org/
- apk - clang18-extra-tools - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-extra-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extra tools built using Clang's tooling APIs | https://llvm.org/
- apk - clang18-headers - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-headers from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (header files) | https://llvm.org/
- apk - clang18-libclang - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-libclang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (C interface) | https://llvm.org/
- apk - clang18-libs - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (C++ interface) | https://llvm.org/
- apk - clang18-static - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: clang18-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C language family front-end for LLVM (static library) | https://llvm.org/
- apk - lld18 - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: lld18 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The LLVM Linker | https://llvm.org/
- apk - lld18-dev - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: lld18-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The LLVM Linker (development files) | https://llvm.org/
- apk - lld18-libs - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: lld18-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The LLVM Linker (libraries) | https://llvm.org/
- apk - llvm18 - 18.1.8-r10: package manager index match | Alpine Linux edge package indexes: llvm18 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Low Level Virtual Machine compiler system, version 18 | https://llvm.org/


## 関連リンク

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

## Combined YAML source

View the package source record on GitHub. [combined/llvm@18.yml](https://github.com/mxcl/pkgdb/blob/main/combined/llvm@18.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
