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

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

## インストール

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

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

### macOS

- Homebrew (100%):

```sh
brew install netcdf-cxx
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install netcdf-cxx
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install netcdf-cxx
```

  証拠: Fedora Rawhide package metadata: netcdf-cxx 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-cxx
```

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

- Debian apt (92%):

```sh
sudo apt install libnetcdf-c++4-1
```

  証拠: Debian stable package indexes: libnetcdf-c++4-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:netcdf-cxx
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.3.1
- **ソース概要:** C++ libraries and utilities for NetCDF
- **ホームページ:** <https://www.unidata.ucar.edu/software/netcdf/>
- **リポジトリ:** <https://github.com/Unidata/netcdf-cxx4>
- **最終更新:** 2026-06-22T14:05:37-07:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- ncxx4-config (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

netcdf-cxx is Unidata's netCDF-4 C++ interface package. In Homebrew it is a small language-binding formula that depends on the main netcdf C library and installs the C++ library plus ncxx4-config for build integration.

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

The modern netCDF-4 C++ API came from Lynton Appel of the Culham Centre for Fusion Energy, where it was developed for managing fusion research data from the MAST experiment. Unidata's C++ guide says the API is a complete read/write interface layered over the netCDF-4 C interface, replacing a previous partial C++ interface and using standard C++ features such as namespaces, exceptions, and templates that were not in the older mid-1990s netCDF-3 C++ API.

### 採用の歴史

The package is important inside scientific C++ builds but much smaller than the core netCDF C package. On July 1, 2026, Homebrew reported 652 installs over 365 days and 69 installs over 30 days for netcdf-cxx, compared with tens of thousands for netcdf itself. That shape matches its role as a language binding pulled in only by projects that compile C++ against netCDF directly.

### 使われ方

Users install it when a C++ application needs native netCDF-4 read/write APIs rather than calling the C interface directly. In practice it is used by build systems through the installed headers, library, and ncxx4-config, and it inherits netCDF-C behavior, fixes, and file-format support because the C++ layer sits on top of the C library.

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

The nerdy packaging point is dependency order: netcdf-cxx is not the file format itself, and it does not replace netcdf. It is a thin language-specific layer for C++ consumers, so mismatched netCDF-C versions, HDF5 support, and library naming are the kinds of issues that matter more than end-user CLI behavior.

### タイムライン

- Mid-1990s: the first netCDF-3 C++ API existed, according to Unidata's C++ guide.
- 2016-05-13: netcdf-cxx4 v4.3.0 was released.
- 2019-09-12: netcdf-cxx4 v4.3.1 was released, requiring netCDF-C 4.6.0 or newer.
- 2026-07-01: Homebrew listed stable version 4.3.1 revision 3.

### Related projects

- netcdf
- netcdf-fortran
- netcdf4-python
- HDF5

### ソース

- <https://docs.unidata.ucar.edu/netcdf-cxx/current/RELEASE_NOTES.html>
- <https://formulae.brew.sh/formula/netcdf-cxx>
- <https://unidata.github.io/netcdf-cxx4/>
- <https://www.unidata.ucar.edu/software/netcdf/>


## セキュリティノート

narrow executable package without higher-risk signals.

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

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

- Debian apt - libnetcdf-c++4-1 - 4.3.1-5: normalized package name match | Debian stable package indexes: libnetcdf-c++4-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ interface for scientific data access to large binary data | http://www.unidata.ucar.edu/software/netcdf/
- Debian apt - libnetcdf-c++4-dev - 4.3.1-5: normalized package name match | Debian stable package indexes: libnetcdf-c++4-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | creation, access, and sharing of scientific data in C++ | http://www.unidata.ucar.edu/software/netcdf/
- Debian apt - libnetcdf-c++4-doc - 4.3.1-5: normalized package name match | Debian stable package indexes: libnetcdf-c++4-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NetCDF C++ API documentation | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdf-c++4-1 - 4.3.1-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ interface for scientific data access to large binary data | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdf-c++4-dev - 4.3.1-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | creation, access, and sharing of scientific data in C++ | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdf-c++4-doc - 4.3.1-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NetCDF C++ API documentation | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-cxx - 4.2-44.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-cxx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Legacy netCDF C++ library | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-cxx-devel - 4.2-44.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-cxx-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files legacy netCDF C++ library | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-cxx-static - 4.2-44.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-cxx-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Static libraries for legacy netCDF C++ library | http://www.unidata.ucar.edu/software/netcdf/
- pacman - netcdf-cxx - 4.3.1-5: normalized package name match | Arch Linux sync databases: netcdf-cxx from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | NetCDF C++ bindings | https://github.com/Unidata/netcdf-cxx4/
- MacPorts - netcdf-cxx: normalized package name match | MacPorts ports tree: science/netcdf-cxx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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