# Installer flang avec Homebrew, apt, dnf, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de flang pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install flang
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install flang
```

  Preuve: 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
```

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

- Nix (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:flang
- **Gestionnaire de paquets:** Homebrew
- **Version:** 22.1.8
- **Résumé source:** LLVM Fortran Frontend
- **Page d'accueil:** <https://flang.llvm.org/>
- **Dépôt:** <https://github.com/llvm/llvm-project>
- **Dernière mise à jour:** 2026-06-21T01:50:33Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- bbc (alias)
- f18-parse-demo (alias)
- fir-lsp-server (alias)
- fir-opt (alias)
- flang (alias)
- flang-22 (alias)
- flang-new (alias)
- tco (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 22.1.8
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour flang. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

- 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.8-20.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | a Fortran language front-end designed for integration with LLVM | https://flang.llvm.org
- Nix - flang_22: installed executable or alias match | nixpkgs package indexes: flang_22 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
