# flang を Homebrew, apt, dnf, Nix でインストール

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

## インストール

```sh
sudo av install brew:flang
```

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

### macOS

- Homebrew (100%):

```sh
brew install flang
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install flang
```

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

- dnf (92%):

```sh
sudo dnf install flang
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#flang
```

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

## パッケージ情報

- **パッケージキー:** brew:flang
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/flang>
- **バージョン:** 22.1.8
- **ソース概要:** LLVM Fortran Frontend
- **ホームページ:** <https://flang.llvm.org/>
- **リポジトリ:** <https://github.com/llvm/llvm-project>
- **上流ドキュメント:** <https://flang.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-21T01:50:33Z
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- bbc (cli)
- f18-parse-demo (cli)
- fir-lsp-server (cli)
- fir-opt (cli)
- flang (cli)
- flang-22 (cli)
- flang-new (cli)
- tco (cli)
- bbc (エイリアス)
- f18-parse-demo (エイリアス)
- fir-lsp-server (エイリアス)
- fir-opt (エイリアス)
- flang (エイリアス)
- flang-22 (エイリアス)
- flang-new (エイリアス)
- tco (エイリアス)

## 依存関係

- llvm

## ビルド依存関係

- cmake
- ninja

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

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

Flang is LLVM's Fortran frontend. The official documentation distinguishes LLVM Flang from Classic Flang, describes it as a separate and independent Fortran compiler, and notes that LLVM Flang is under active development.

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

LLVM Flang lives in the monorepo under `llvm-project/flang` and is documented by the Flang team. The documentation copyright spans 2017-2026 and the current docs describe an actively developed frontend that can generate executables for a number of examples while some functionality remains missing.

The compiler architecture is documented around analysis, lowering, and object-code generation/linking. Analysis creates a decorated parse tree and symbol table, lowering converts that information into FIR, a Fortran dialect of MLIR, and later passes produce LLVM IR for the existing LLVM code-generation pipeline.

### 採用の歴史

Flang's adoption is tied to the LLVM toolchain rather than a standalone language ecosystem. It gives LLVM distributions, package managers, and compiler users a Fortran frontend that participates in LLVM's common infrastructure.

The official docs' distinction between LLVM Flang and Classic Flang matters for users and packagers because the name has referred to more than one Fortran compiler lineage.

### 使われ方

Users invoke `flang` as a compiler driver for Fortran source. The docs also show developer-oriented `-fc1` and `-mmlir` commands for dumping preprocessing output, parse trees, symbol tables, FIR, MLIR pass output, and LLVM IR.

No user credentials or persistent configuration file are documented in the supplied curation or the official Flang docs.

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

Flang is significant because it brings Fortran into the LLVM package universe, making Fortran compilation part of the same modular compiler stack used by Clang and other LLVM frontends.

For compiler-package curators, the key nerd detail is FIR: a Fortran-specific IR layered on MLIR before conversion to LLVM IR, exposing more of the compiler pipeline than a black-box Fortran driver.

### タイムライン

- 2017: Flang documentation copyright begins in the official docs.
- 2020s: LLVM Flang is documented as separate from Classic Flang and under active development.
- 2026: Current docs include Flang 23 in-progress release notes and updated compiler-phase documentation.

### Related projects

- Classic Flang is the separate historical compiler explicitly distinguished by the docs.
- LLVM provides the broader compiler infrastructure and monorepo.
- MLIR and FIR are central to Flang lowering before LLVM IR generation.

### ソース

- <https://flang.llvm.org/docs>
- <https://flang.llvm.org/docs/Overview.html>
- <https://github.com/llvm/llvm-project>


## セキュリティノート

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


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

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

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

- Debian apt - flang - 1:19.0-63: normalized package name match | Debian stable package indexes: flang from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fortran compiler
- Nix - flang: normalized package name match | nixpkgs package indexes: flang from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - flang - 1:18.0-59~exp2: normalized package name match | Ubuntu 24.04 LTS package indexes: flang from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fortran compiler
- dnf - flang - 22.1.7-1.fc45: normalized package name match | Fedora Rawhide package metadata: flang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | a Fortran language front-end designed for integration with LLVM | https://flang.llvm.org


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/ja/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [llvm](https://www.automicvault.com/ja/pkg/brew/llvm/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/ja/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/ja/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [clang-format](https://www.automicvault.com/ja/pkg/brew/clang-format/) - Shares the same upstream source repository.
- [clang-format@11](https://www.automicvault.com/ja/pkg/brew/clang-format-11/) - Shares the same upstream source repository.
- [lld](https://www.automicvault.com/ja/pkg/brew/lld/) - Shares the same upstream source repository.
- [ldc](https://www.automicvault.com/ja/pkg/brew/ldc/) - Shares av.db curated category or tags: cli, compiler, language-runtime, llvm.
- [llgo](https://www.automicvault.com/ja/pkg/brew/llgo/) - Shares av.db curated category or tags: cli, compiler, language-runtime, llvm.
- [c3c](https://www.automicvault.com/ja/pkg/brew/c3c/) - Shares av.db curated category or tags: cli, compiler, language-runtime.
- [cython](https://www.automicvault.com/ja/pkg/brew/cython/) - Shares av.db curated category or tags: cli, compiler, language-runtime.
- [dmd](https://www.automicvault.com/ja/pkg/brew/dmd/) - Shares av.db curated category or tags: cli, compiler, language-runtime.
- [ghc](https://www.automicvault.com/ja/pkg/brew/ghc/) - Shares av.db curated category or tags: cli, compiler, language-runtime.
- [halide](https://www.automicvault.com/ja/pkg/brew/halide/) - Shares av.db curated category or tags: cli, compiler, language-runtime.
- [idris2](https://www.automicvault.com/ja/pkg/brew/idris2/) - Shares av.db curated category or tags: cli, compiler, language-runtime.

## Combined YAML source

View the package source record on GitHub. [combined/flang.yml](https://github.com/automic-vault/db/blob/main/combined/flang.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
