Automic VaultAutomic Vault

brew

Install netcdf-cxx with Homebrew, apt, dnf, MacPorts, pacman

C++ libraries and utilities for NetCDF. Version 4.3.1 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install netcdf-cxx

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install netcdf-cxx

MacPorts ports tree · science/netcdf-cxx/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install libnetcdf-c++4-1

Debian stable package indexes · libnetcdf-c++4-1 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install netcdf-cxx

Fedora Rawhide package metadata · netcdf-cxx · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S netcdf-cxx

Arch Linux sync databases · netcdf-cxx · source: geo.mirror.pkgbuild.com

overview

Package summary

C++ libraries and utilities for NetCDF

Commands and aliases

  • ncxx4-config

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Installs with 3 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
ncxx4-configcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version4.3.1
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv4.3.1

https://github.com/Unidata/netcdf-cxx4

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:netcdf-cxx
Version4.3.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/netcdf-cxx
Homepagehttps://www.unidata.ucar.edu/software/netcdf/
Repositoryhttps://github.com/Unidata/netcdf-cxx4
Upstream docshttps://docs.unidata.ucar.edu/netcdf-cxx/current
LicenseNetCDF
Source archivehttps://github.com/Unidata/netcdf-cxx4/archive/refs/tags/v4.3.1.tar.gz
Last updated2026-06-22T14:05:37-07:00
Pulseupdated
Dependencieshdf5, netcdf, zstd
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenetcdf-cxx
Version Scheme0
Revision3
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

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-1
  • Section: libs
  • Architecture: amd64
  • Source Package: netcdf-cxx
  • 4 dependencies
  • normalized package name match
  • Matched by: Netcdf Cxx
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnetcdf-c++4-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnetcdf-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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: netcdf-cxx
  • 2 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: Netcdf Cxx
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnetcdf-c++4-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnetcdf-c++4-doc 4.3.1-5

NetCDF C++ API documentation

http://www.unidata.ucar.edu/software/netcdf/

sudo apt install libnetcdf-c++4-doc
  • Section: doc
  • Architecture: all
  • Source Package: netcdf-cxx
  • normalized package name match
  • Matched by: Netcdf Cxx
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnetcdf-c++4-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

libnetcdf-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-1
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: netcdf-cxx
  • 4 dependencies
  • normalized package name match
  • Matched by: Netcdf Cxx
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libnetcdf-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-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: netcdf-cxx
  • 2 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: Netcdf Cxx
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libnetcdf-c++4-doc 4.3.1-4build2

NetCDF C++ API documentation

http://www.unidata.ucar.edu/software/netcdf/

sudo apt install libnetcdf-c++4-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: netcdf-cxx
  • normalized package name match
  • Matched by: Netcdf Cxx
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnetcdf-c++4-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

netcdf-cxx 4.2-43.fc44

Legacy netCDF C++ library

http://www.unidata.ucar.edu/software/netcdf/

sudo dnf install netcdf-cxx
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: netcdf-cxx
  • 7 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Netcdf Cxx
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: netcdf-cxx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

netcdf-cxx-devel 4.2-43.fc44

Development files legacy netCDF C++ library

http://www.unidata.ucar.edu/software/netcdf/

sudo dnf install netcdf-cxx-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: netcdf-cxx
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Netcdf Cxx
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: netcdf-cxx-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

netcdf-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-static
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: netcdf-cxx
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Netcdf Cxx
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: netcdf-cxx-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

netcdf-cxx 4.3.1-5

NetCDF C++ bindings

https://github.com/Unidata/netcdf-cxx4/

sudo pacman -S netcdf-cxx
  • License: custom
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Netcdf Cxx
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: netcdf-cxx from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

netcdf-cxx

sudo port install netcdf-cxx
  • normalized package name match
  • Matched by: Netcdf Cxx
MacPorts ports tree · api.github.com · MacPorts ports tree: science/netcdf-cxx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment