# netcdf-fortran を Homebrew, apk, dnf, MacPorts, pacman, apt でインストール

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

## インストール

```sh
sudo av install brew:netcdf-fortran
```

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

### macOS

- Homebrew (100%):

```sh
brew install netcdf-fortran
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install netcdf-fortran
```

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

### Linux

- apk (92%):

```sh
sudo apk add netcdf-fortran
```

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

- dnf (92%):

```sh
sudo dnf install netcdf-fortran
```

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

- pacman (92%):

```sh
sudo pacman -S netcdf-fortran
```

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

- Debian apt (92%):

```sh
sudo apt install libnetcdff-dev
```

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

## パッケージ情報

- **パッケージキー:** brew:netcdf-fortran
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.6.4
- **ソース概要:** Fortran libraries and utilities for NetCDF
- **ホームページ:** <https://www.unidata.ucar.edu/software/netcdf/>
- **リポジトリ:** <https://github.com/Unidata/netcdf-fortran>
- **最終更新:** 2026-07-30T01:27:44Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- nf-config (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 4.6.4
## プロジェクトの歴史と使われ方

netcdf-fortran is Unidata's Fortran interface package for netCDF data. It exists because Fortran users in climate, weather, ocean, atmospheric, and other scientific codes need native F77/F90 APIs while the file format and core implementation live in netCDF-C.

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

Fortran has been part of the netCDF story from the beginning because Unidata's original interface work had to account for portable scientific programs across C and Fortran environments. The separate netcdf-fortran distribution now provides Fortran application interfaces, depends on netCDF-C, and contains both F77 and F90 APIs. The Fortran usage guide notes that since netCDF 4.1.3 the Fortran software and library have been distinct from the C library while depending on it.

### 採用の歴史

Its adoption is concentrated in HPC and scientific-modeling build stacks. On July 1, 2026, Homebrew showed 2,728 installs over 365 days and 213 installs over 30 days, with gcc and netcdf as runtime dependencies. The lower volume than netcdf itself is expected because many users only need command-line tools or C libraries, while Fortran consumers install this package to compile model code.

### 使われ方

Practical use is compiler-facing: Fortran programs call routines such as nf90_create, nf90_def_dim, nf90_def_var, nf90_put_var, nf90_open, nf90_get_var, and nf90_close. The package installs nf-config so builds can obtain the correct include and linker flags with commands like nf-config --fflags --flibs, avoiding hand-written library paths that break across shared/static builds or Homebrew prefix changes.

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

This package matters because many legacy and active scientific codes are Fortran-first. Packaging it separately keeps the core C library smaller while preserving the long-running netCDF contract for Fortran model code. Dependency mismatches with netCDF-C are the main thing maintainers watch; the 4.6.3 release notes require netCDF-C 4.9.2 or newer.

### タイムライン

- 1988: Unidata prototyped netCDF in C while evaluating portable interfaces for scientific users, including Fortran constraints.
- 2011-era netCDF 4.1.3: the Fortran library became consistently distinct from the C library while depending on it, according to the Fortran guide.
- 2025-03-26: netCDF-Fortran 4.6.2 was released.
- 2026-05-20: netCDF-Fortran 4.6.3 was released.
- 2026-07-01: Homebrew listed stable version 4.6.3.

### Related projects

- netcdf
- netcdf-cxx
- HDF5
- PnetCDF

### ソース

- <https://docs.unidata.ucar.edu/netcdf-fortran/current/>
- <https://docs.unidata.ucar.edu/netcdf-fortran/current/f90-use-of-the-netcdf-library.html>
- <https://docs.unidata.ucar.edu/netcdf-fortran/current/nf_release_notes.html>
- <https://docs.unidata.ucar.edu/nug/2.0-draft/netcdf_history.html>
- <https://formulae.brew.sh/formula/netcdf-fortran>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

- Debian apt - libnetcdff-dev - 4.6.0+really4.5.4+ds-3+b4: normalized package name match | Debian stable package indexes: libnetcdff-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | creation, access, and sharing of scientific data in Fortran | https://www.unidata.ucar.edu/software/netcdf/
- Debian apt - libnetcdff-doc - 4.6.0+really4.5.4+ds-3: normalized package name match | Debian stable package indexes: libnetcdff-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NetCDF Fortran documentation | https://www.unidata.ucar.edu/software/netcdf/
- Debian apt - libnetcdff7 - 4.6.0+really4.5.4+ds-3+b4: normalized package name match | Debian stable package indexes: libnetcdff7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fortran interface for scientific data access to large binary data | https://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdff-dev - 4.6.0+really4.5.4+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdff-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | creation, access, and sharing of scientific data in Fortran | https://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdff-doc - 4.6.0+really4.5.4+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdff-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NetCDF Fortran documentation | https://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdff7 - 4.6.0+really4.5.4+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdff7 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fortran interface for scientific data access to large binary data | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-fortran - 4.6.3-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-fortran from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | NetCDF fortran bindings | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-fortran-dev - 4.6.3-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-fortran-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | NetCDF fortran bindings (development files) | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-fortran-doc - 4.6.3-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-fortran-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | NetCDF fortran bindings (documentation) | https://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fortran libraries for NetCDF-4 | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-devel - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for Fortran NetCDF API | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-mpich - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-mpich from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF Fortran mpich libraries | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-mpich-devel - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-mpich-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF Fortran mpich development files | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-mpich-static - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-mpich-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF Fortran mpich static libraries | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-openmpi - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-openmpi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF Fortran openmpi libraries | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-fortran-openmpi-devel - 4.6.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-fortran-openmpi-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF Fortran openmpi development files | http://www.unidata.ucar.edu/software/netcdf/


## Combined YAML source

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


## ソース

- 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
