# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt, winget 安装 netcdf

查看 netcdf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install netcdf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install netcdf
```

  证据: 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
```

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

- dnf (92%):

```sh
sudo dnf install netcdf
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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 netcdf
```

  证据: openSUSE Tumbleweed package metadata: netcdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

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

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

### Windows

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:netcdf
- **软件包管理器:** Homebrew
- **版本:** 4.10.1
- **来源摘要:** Libraries and data formats for array-oriented scientific data
- **主页:** <https://www.unidata.ucar.edu/software/netcdf/>
- **仓库:** <https://github.com/Unidata/netcdf-c>
- **最后更新:** 2026-07-09T22:04:02Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nc-config (别名)
- nccopy (别名)
- ncdump (别名)
- ncgen (别名)
- ncgen3 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.10.1
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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.1-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.1-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.1-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.1-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-4.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries for the Unidata network Common Data Form | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-devel - 4.10.0-4.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for netcdf | http://www.unidata.ucar.edu/software/netcdf/
- dnf - netcdf-mpich - 4.10.0-4.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetCDF mpich libraries | http://www.unidata.ucar.edu/software/netcdf/


## Combined YAML source

View the package source record on GitHub. [combined/netcdf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/netcdf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
