macOS
brew install netcdf-cxxlocal Homebrew formula metadata
sudo port install netcdf-cxxMacPorts ports tree · science/netcdf-cxx/Portfile · source: api.github.com
brew
C++ libraries and utilities for NetCDF. Version 4.3.1 via Homebrew; verified 2026-06-22.
install
brew install netcdf-cxxlocal Homebrew formula metadata
sudo port install netcdf-cxxMacPorts ports tree · science/netcdf-cxx/Portfile · source: api.github.com
sudo apt install libnetcdf-c++4-1Debian stable package indexes · libnetcdf-c++4-1 · source: deb.debian.org
sudo dnf install netcdf-cxxFedora Rawhide package metadata · netcdf-cxx · source: dl.fedoraproject.org
sudo pacman -S netcdf-cxxArch Linux sync databases · netcdf-cxx · source: geo.mirror.pkgbuild.com
overview
C++ libraries and utilities for NetCDF
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ncxx4-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Unidata/netcdf-cxx4
install metadata
| Package key | brew:netcdf-cxx |
|---|---|
| Version | 4.3.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/netcdf-cxx |
| Homepage | https://www.unidata.ucar.edu/software/netcdf/ |
| Repository | https://github.com/Unidata/netcdf-cxx4 |
| Upstream docs | https://docs.unidata.ucar.edu/netcdf-cxx/current |
| License | NetCDF |
| Source archive | https://github.com/Unidata/netcdf-cxx4/archive/refs/tags/v4.3.1.tar.gz |
| Last updated | 2026-06-22T14:05:37-07:00 |
| Pulse | updated |
| Dependencies | hdf5, netcdf, zstd |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libnetcdf-c++4-1 4.3.1-5
C++ interface for scientific data access to large binary data
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-1libnetcdf-c++4-dev 4.3.1-5
creation, access, and sharing of scientific data in C++
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-devlibnetcdf-c++4-doc 4.3.1-5
NetCDF C++ API documentation
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-doclibnetcdf-c++4-1 4.3.1-4build2
C++ interface for scientific data access to large binary data
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-1libnetcdf-c++4-dev 4.3.1-4build2
creation, access, and sharing of scientific data in C++
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-devlibnetcdf-c++4-doc 4.3.1-4build2
NetCDF C++ API documentation
http://www.unidata.ucar.edu/software/netcdf/
sudo apt install libnetcdf-c++4-docnetcdf-cxx 4.2-43.fc44
Legacy netCDF C++ library
http://www.unidata.ucar.edu/software/netcdf/
sudo dnf install netcdf-cxxnetcdf-cxx-devel 4.2-43.fc44
Development files legacy netCDF C++ library
http://www.unidata.ucar.edu/software/netcdf/
sudo dnf install netcdf-cxx-develnetcdf-cxx-static 4.2-43.fc44
Static libraries for legacy netCDF C++ library
http://www.unidata.ucar.edu/software/netcdf/
sudo dnf install netcdf-cxx-staticnetcdf-cxx 4.3.1-5
NetCDF C++ bindings
https://github.com/Unidata/netcdf-cxx4/
sudo pacman -S netcdf-cxxnetcdf-cxx
sudo port install netcdf-cxxsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.