# Installer eccodes avec Homebrew, apk, dnf, Nix, apt, MacPorts

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

## installation

```sh
sudo av install brew:eccodes
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install eccodes
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ecCodes
```

  Preuve: MacPorts ports tree: science/ecCodes/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add eccodes
```

  Preuve: Alpine Linux edge package indexes: eccodes from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install eccodes
```

  Preuve: Fedora Rawhide package metadata: eccodes 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#eccodes
```

  Preuve: nixpkgs package indexes: pkgs/by-name/ec/eccodes/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libeccodes-data
```

  Preuve: Debian stable package indexes: libeccodes-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Faits du paquet

- **Clé du paquet:** brew:eccodes
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.48.0
- **Résumé source:** Decode and encode messages in the GRIB 1/2 and BUFR 3/4 formats
- **Page d'accueil:** <https://confluence.ecmwf.int/display/ECC>
- **Dernière mise à jour:** 2026-07-15T21:02:11Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- bufr_compare (alias)
- bufr_compare_dir (alias)
- bufr_copy (alias)
- bufr_count (alias)
- bufr_dump (alias)
- bufr_filter (alias)
- bufr_get (alias)
- bufr_index_build (alias)
- bufr_ls (alias)
- bufr_set (alias)
- codes_bufr_filter (alias)
- codes_config (alias)
- codes_count (alias)
- codes_export_resource (alias)
- codes_info (alias)
- codes_parser (alias)
- codes_split_file (alias)
- grib2ppm (alias)
- grib_compare (alias)
- grib_copy (alias)
- grib_count (alias)
- grib_dump (alias)
- grib_filter (alias)
- grib_get (alias)
- grib_get_data (alias)
- grib_histogram (alias)
- grib_index_build (alias)
- grib_ls (alias)
- grib_set (alias)
- grib_to_netcdf (alias)
- gts_compare (alias)
- gts_copy (alias)
- gts_count (alias)
- gts_dump (alias)
- gts_filter (alias)
- gts_get (alias)
- gts_ls (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

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

ecCodes is ECMWF's library and command-line toolkit for decoding and encoding meteorological message formats, especially GRIB and BUFR. It is package-manager significant because it is infrastructure: many weather, climate, forecasting, and data-conversion workflows depend on having its tools and libraries installed correctly.

### Historique du projet

ECMWF describes ecCodes as a package providing an API and command-line tools for WMO GRIB editions 1 and 2, BUFR editions 3 and 4, and decoding of WMO GTS abbreviated headers. The repository README says it provides C, Fortran 90, and Python interfaces along with quick command-line access to messages.

The project is explicitly the evolution of ECMWF's older GRIB-API. ECMWF's documentation says ecCodes fully provides GRIB-API functionality for GRIB encoding and decoding, keeps the C, Fortran 90, and Python interfaces, drops the old Fortran 77 interface, and adds a codes_ API that works across supported message formats.

ECMWF marks ecCodes as the primary GRIB encoding/decoding package used at ECMWF and notes that GRIB-API has not been maintained since December 2018. That replacement history is central to ecCodes adoption: existing GRIB-API users were strongly advised to migrate, with compatibility maintained where possible.

The GitHub repository was created in December 2018 and is still active, with the README carrying ECMWF software maturity badges and 2026 releases in the 2.4x series.

### Historique d'adoption

ecCodes' adoption follows the operational meteorology stack rather than the usual application-CLI pattern. It is used where GRIB and BUFR data are read, written, inspected, filtered, converted, or bridged into Python, Fortran, C, and NetCDF workflows.

Package metadata shows ecCodes available in Homebrew, Alpine, Fedora-family packaging, MacPorts, Nix, and Debian/Ubuntu data packages. That broad packaging matters because meteorological tools often expect ecCodes definitions and command-line programs such as grib_ls, grib_get, grib_set, bufr_dump, and grib_to_netcdf to be present.

### Modes d'utilisation

Users commonly install ecCodes for command-line inspection and transformation of GRIB/BUFR files, for language bindings, or as a dependency of higher-level weather-data software. The command suite includes GRIB, BUFR, GTS, and generic codes_* tools.

The migration documentation explains that many GRIB-API functions and tools were retained or mapped into ecCodes, while some experimental or superseded tools were removed. That makes ecCodes both a compatibility layer for old workflows and the maintained path forward.

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

ecCodes is the kind of package that quietly makes scientific software distributions work. It ships binary tools, libraries, format definitions, samples, and bindings around specialized international data formats; small packaging mistakes can break large data-processing pipelines.

It is also a case study in successor packaging: GRIB-API users needed a maintained replacement that preserved enough CLI and ABI/API behavior to make migration practical while adding BUFR and GTS coverage under one key/value access model.

### Chronologie

- 2005: ECMWF copyright range for the software begins.
- 2018: ecCodes GitHub repository created; GRIB-API maintenance ends in December 2018.
- 2021-2022: Public GitHub releases show active 2.x release cadence.
- 2026: ecCodes 2.47.0 released and repository remains active.

### Related projects

- GRIB-API is the direct predecessor and compatibility target for much of ecCodes' GRIB functionality.
- CodesUI, mentioned in ECMWF's ecCodes documentation, is a related user interface for ecCodes.
- Higher-level meteorological software commonly pairs ecCodes with Python bindings, Fortran/C applications, and conversion tools such as grib_to_netcdf.

### Sources

- <https://github.com/ecmwf/eccodes>
- <https://raw.githubusercontent.com/ecmwf/eccodes/develop/README.md>
- <https://confluence.ecmwf.int/display/ECC/ecCodes+Home>
- <https://confluence.ecmwf.int/display/ECC/What+is+ecCodes>
- <https://confluence.ecmwf.int/display/ECC/GRIB-API+migration>
- <https://github.com/ecmwf/eccodes/releases>
- <https://api.github.com/repos/ecmwf/eccodes>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - libeccodes-data - 2.41.0-1: normalized package name match | Debian stable package indexes: libeccodes-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GRIB and BUFR enecoding/encoding software library - data | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Debian apt - libeccodes-dev - 2.41.0-1: normalized package name match | Debian stable package indexes: libeccodes-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GRIB and BUFR decoding/encoding software library (development) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Debian apt - libeccodes-doc - 2.41.0-1: normalized package name match | Debian stable package indexes: libeccodes-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GRIB decoding/encoding software (documentation) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Debian apt - libeccodes-tools - 2.41.0-1: normalized package name match | Debian stable package indexes: libeccodes-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GRIB decoding/encoding software (utilities) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Debian apt - libeccodes0 - 2.41.0-1: normalized package name match | Debian stable package indexes: libeccodes0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GRIB and BUFR enecoding/encoding software library | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Nix - eccodes: normalized package name match | nixpkgs package indexes: pkgs/by-name/ec/eccodes/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libeccodes-data - 2.34.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libeccodes-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GRIB and BUFR enecoding/encoding software library - data | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Ubuntu apt - libeccodes-dev - 2.34.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libeccodes-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GRIB and BUFR decoding/encoding software library (development) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Ubuntu apt - libeccodes-doc - 2.34.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libeccodes-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GRIB decoding/encoding software (documentation) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Ubuntu apt - libeccodes-tools - 2.34.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libeccodes-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GRIB decoding/encoding software (utilities) | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- Ubuntu apt - libeccodes0 - 2.34.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libeccodes0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GRIB and BUFR enecoding/encoding software library | https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
- apk - eccodes - 2.48.0-r0: normalized package name match | Alpine Linux edge package indexes: eccodes from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | API and tools for decoding and encoding WMO meteorological message formats | https://github.com/ecmwf/eccodes
- dnf - eccodes - 2.48.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: eccodes from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | WMO data format decoding and encoding | https://confluence.ecmwf.int/display/ECC/ecCodes+Home
- dnf - eccodes-data - 2.48.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: eccodes-data from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Data needed by the eccodes library and tools | https://confluence.ecmwf.int/display/ECC/ecCodes+Home
- dnf - eccodes-devel - 2.48.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: eccodes-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Contains ecCodes development files | https://confluence.ecmwf.int/display/ECC/ecCodes+Home
- dnf - eccodes-doc - 2.48.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: eccodes-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation and example code | https://confluence.ecmwf.int/display/ECC/ecCodes+Home


## Combined YAML source

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