# 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/netcdf-cxx>
- **バージョン:** 4.3.1
- **ソース概要:** C++ libraries and utilities for NetCDF
- **ホームページ:** <https://www.unidata.ucar.edu/software/netcdf/>
- **リポジトリ:** <https://github.com/Unidata/netcdf-cxx4>
- **上流ドキュメント:** <https://www.unidata.ucar.edu/software/netcdf/>
- **ライセンス:** NetCDF
- **ソースアーカイブ:** <https://github.com/Unidata/netcdf-cxx4/archive/refs/tags/v4.3.1.tar.gz>
- **最終更新:** 2026-06-22T14:05:37-07:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- ncxx4-config (cli)
- ncxx4-config (エイリアス)

## 依存関係

- hdf5
- netcdf
- zstd

## ビルド依存関係

- cmake

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.3.1
- マネージャ更新日: 2026-06-22
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/Unidata/netcdf-cxx4
- 検出された最新: v4.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

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

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

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/ja/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [zstd](https://pkg.so/ja/brew/zstd/) - Runtime dependency declared by Homebrew.
- [hdf5](https://pkg.so/ja/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [netcdf](https://pkg.so/ja/brew/netcdf/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [metview](https://pkg.so/ja/brew/metview/) - Popular package that depends on this formula.
- [netcdf-fortran](https://pkg.so/ja/brew/netcdf-fortran/) - Shares the same upstream homepage.
- [cgns](https://pkg.so/ja/brew/cgns/) - Shares pkgdb curated category or tags: cli, data, data-format, scientific-data.
- [libgetdata](https://pkg.so/ja/brew/libgetdata/) - Shares pkgdb curated category or tags: cli, data, scientific-data.
- [adios2](https://pkg.so/ja/brew/adios2/) - Shares pkgdb curated category or tags: cli, data, scientific-data.
- [xerces-c](https://pkg.so/ja/brew/xerces-c/) - Shares pkgdb curated category or tags: c-plus-plus, cli, data.
- [avro-c](https://pkg.so/ja/brew/avro-c/) - Shares pkgdb curated category or tags: cli, data, data-format.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
