pkg.soopen package index

brew / rank 4598

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

C++ libraries and utilities for NetCDF. Version 4.3.1 via Homebrew; verified 2026-06-22. Also installable with debian: sudo apt install libnetcdf-c++4-1.

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

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

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

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

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 bottle metadata was recorded.

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-configexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version4.3.1
manager updated2026-06-22
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:netcdf-cxx
Version4.3.1
Package managerHomebrew
Homepagehttps://www.unidata.ucar.edu/software/netcdf/
Repositoryhttps://github.com/Unidata/netcdf-cxx4
Last updated2026-06-22T14:05:37-07:00
Pulseupdated
Bottlenot recorded
Servicenone declared

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-44.fc45

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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

netcdf-cxx-devel 4.2-44.fc45

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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

netcdf-cxx-static 4.2-44.fc45

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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation