# Install netcdf with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, winget, zypper

Libraries and data formats for array-oriented scientific data. Version 4.10.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install netcdf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install netcdf
```

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

### Linux

- apk (92%):

```sh
sudo apk add netcdf
```

  Evidence: Alpine Linux edge package indexes: netcdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libnetcdf-dev
```

  Evidence: Debian stable package indexes: libnetcdf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install netcdf
```

  Evidence: Fedora Rawhide package metadata: netcdf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#netcdf
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ne/netcdf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S netcdf
```

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

- zypper (92%):

```sh
sudo zypper install libnetcdf22
```

  Evidence: openSUSE Tumbleweed package metadata: libnetcdf22 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Unidata.NetCDF -e
```

  Evidence: Windows Package Manager source index: Unidata.NetCDF from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:netcdf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/netcdf>
- **Version:** 4.10.0
- **Source summary:** Libraries and data formats for array-oriented scientific data
- **Homepage:** <https://www.unidata.ucar.edu/software/netcdf/>
- **Repository:** <https://github.com/Unidata/netcdf-c>
- **Upstream docs:** <https://docs.unidata.ucar.edu/netcdf-c/current>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.10.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nc-config (cli)
- nccopy (cli)
- ncdump (cli)
- ncgen (cli)
- ncgen3 (cli)
- nc-config (alias)
- nccopy (alias)
- ncdump (alias)
- ncgen (alias)
- ncgen3 (alias)

## Dependencies

- hdf5
- libaec
- zstd

## Build dependencies

- cmake

## Uses from macOS

- bzip2
- curl
- libxml2

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.10.0
- Local data: ok
- Upstream repository: https://github.com/Unidata/netcdf-c
- Upstream latest detected: v4.10.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

netCDF is one of the standard data formats and libraries for portable, self-describing, array-oriented scientific data. Homebrew's netcdf formula packages the C library and utilities such as nc-config, ncdump, ncgen, ncgen3, and nccopy.

### Project history

The project grew out of Unidata's late-1980s work on a portable scientific data interface. Unidata's history says Glenn Davis developed an early C prototype layered on XDR in early 1988, then an August 1988 workshop settled the Unidata netCDF interface before Davis and Russ Rew implemented the first software. Version 2.0 was announced in October 1991, version 3.3 in May 1997 added a new type-safe C and Fortran interface, and version 3.4 in March 1998 brought initial large-file support and performance work.

### Adoption history

Unidata describes netCDF as a community standard for sharing scientific data, with maintained C, C++, Java, and Fortran interfaces and additional interfaces for Python, IDL, MATLAB, R, Ruby, and Perl. Homebrew analytics show the core package's broad dependency role: on July 1, 2026 the formula page listed 90,512 installs over 365 days and 6,249 over 30 days, while only 14,750 of the annual installs were direct installs on request.

### How it is used

Users interact with it both as a library and as a CLI toolkit. ncdump prints a netCDF file as CDL text, ncgen turns CDL back into binary netCDF, and nccopy copies files while changing binary format, compression, chunks, or storage settings. Developers use nc-config to discover compiler and linker flags, and higher-level ecosystems build on the C library for Python, Fortran, C++, and analysis tools.

### Why package nerds care

For package people, netcdf is the anchor package in a stack that fans out into HDF5, compression libraries, OPeNDAP/curl support, language bindings, climate tools, and HPC I/O packages. A formula bump can ripple into scientific software because the data model is stable but the feature matrix depends on build options such as HDF5, DAP, zstd, and parallel I/O support.

### Timeline

- 1988: Glenn Davis developed an early Unidata netCDF C prototype layered on XDR.
- 1988-08: a Unidata workshop agreed on the netCDF interface.
- 1991-10: netCDF 2.0 was announced.
- 1997-05: netCDF 3.3 added a type-safe C and Fortran interface.
- 1998-03: netCDF 3.4 added initial large-file support.
- 2026-02-25: netCDF-C 4.10.0 was released.
- 2026-07-01: Homebrew listed stable version 4.10.0 and 90,512 installs over 365 days.

### Related projects

- netcdf-fortran
- netcdf-cxx
- netcdf4-python
- HDF5
- PnetCDF
- NCO

### Sources

- <https://docs.unidata.ucar.edu/netcdf-c/current/RELEASE_NOTES.html>
- <https://docs.unidata.ucar.edu/nug/2.0-draft/netcdf_history.html>
- <https://docs.unidata.ucar.edu/nug/current/netcdf_utilities_guide.html>
- <https://formulae.brew.sh/formula/netcdf>
- <https://github.com/Unidata/netcdf-c>
- <https://www.unidata.ucar.edu/software/netcdf/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - libnetcdf-dev - 1:4.9.3-1: normalized package name match | Debian stable package indexes: libnetcdf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | creation, access, and sharing of scientific data | http://www.unidata.ucar.edu/software/netcdf/
- Debian apt - libnetcdf22 - 1:4.9.3-1: normalized package name match | Debian stable package indexes: libnetcdf22 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Interface for scientific data access to large binary data | http://www.unidata.ucar.edu/software/netcdf/
- Debian apt - netcdf-bin - 1:4.9.3-1: normalized package name match | Debian stable package indexes: netcdf-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Programs for reading and writing NetCDF files | http://www.unidata.ucar.edu/software/netcdf/
- Debian apt - netcdf-doc - 1:4.9.3-1: normalized package name match | Debian stable package indexes: netcdf-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for NetCDF | http://www.unidata.ucar.edu/software/netcdf/
- Nix - netcdf: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/netcdf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnetcdf-dev - 1:4.9.2-5ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | creation, access, and sharing of scientific data | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - libnetcdf19t64 - 1:4.9.2-5ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetcdf19t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Interface for scientific data access to large binary data | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - netcdf-bin - 1:4.9.2-5ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: netcdf-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Programs for reading and writing NetCDF files | http://www.unidata.ucar.edu/software/netcdf/
- Ubuntu apt - netcdf-doc - 1:4.9.2-5ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: netcdf-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for NetCDF | http://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf - 4.10.0-r0: normalized package name match | Alpine Linux edge package indexes: netcdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libraries for the Unidata network Common Data Format | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-dev - 4.10.0-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libraries for the Unidata network Common Data Format (development files) | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-doc - 4.10.0-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libraries for the Unidata network Common Data Format (documentation) | https://www.unidata.ucar.edu/software/netcdf/
- apk - netcdf-utils - 4.10.0-r0: normalized package name match | Alpine Linux edge package indexes: netcdf-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libraries for the Unidata network Common Data Format | https://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf - 4.10.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries for the Unidata network Common Data Form | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-devel - 4.10.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for netcdf | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-mpich - 4.10.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: netcdf-mpich from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | NetCDF mpich libraries | http://www.unidata.ucar.edu/software/netcdf/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [hdf5](https://www.automicvault.com/pkg/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [cdi](https://www.automicvault.com/pkg/brew/cdi/) - Popular package that depends on this formula.
- [cdo](https://www.automicvault.com/pkg/brew/cdo/) - Popular package that depends on this formula.
- [eccodes](https://www.automicvault.com/pkg/brew/eccodes/) - Popular package that depends on this formula.
- [f3d](https://www.automicvault.com/pkg/brew/f3d/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Popular package that depends on this formula.
- [gmt](https://www.automicvault.com/pkg/brew/gmt/) - Popular package that depends on this formula.
- [libbi](https://www.automicvault.com/pkg/brew/libbi/) - Popular package that depends on this formula.
- [magics](https://www.automicvault.com/pkg/brew/magics/) - Popular package that depends on this formula.
- [netcdf-cxx](https://www.automicvault.com/pkg/brew/netcdf-cxx/) - Shares the same upstream homepage.
- [netcdf-fortran](https://www.automicvault.com/pkg/brew/netcdf-fortran/) - Shares the same upstream homepage.
- [cgns](https://www.automicvault.com/pkg/brew/cgns/) - Shares av.db curated category or tags: cli, data, data-format, scientific-data.
- [libgetdata](https://www.automicvault.com/pkg/brew/libgetdata/) - Shares av.db curated category or tags: c-library, cli, data, scientific-data.
- [hdf5-mpi](https://www.automicvault.com/pkg/brew/hdf5-mpi/) - Shares av.db curated category or tags: cli, data, scientific-data.
- [adios2](https://www.automicvault.com/pkg/brew/adios2/) - Shares av.db curated category or tags: cli, data, scientific-data.
- [base91](https://www.automicvault.com/pkg/brew/base91/) - Shares av.db curated category or tags: cli, data, data-format.

## Combined YAML source

View the package source record on GitHub. [combined/netcdf.yml](https://github.com/automic-vault/db/blob/main/combined/netcdf.yml)


## Sources

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