# 使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 nco

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

## 安装

```sh
sudo av install brew:nco
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nco
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nco
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install nco
```

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

- dnf (92%):

```sh
sudo dnf install nco
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#nco
```

  证据: nixpkgs package indexes: pkgs/by-name/nc/nco/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install nco
```

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

## 软件包事实

- **软件包键:** brew:nco
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nco>
- **版本:** 5.3.9
- **来源摘要:** Command-line operators for netCDF and HDF files
- **主页:** <https://nco.sourceforge.net/>
- **仓库:** <https://github.com/nco/nco>
- **上游文档:** <https://nco.sourceforge.net/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/nco/nco/archive/refs/tags/5.3.9.tar.gz>
- **最后更新:** 2026-06-22T14:05:35-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ncap2 (cli)
- ncatted (cli)
- ncbo (cli)
- ncchecker (cli)
- ncclimo (cli)
- ncdiff (cli)
- ncea (cli)
- ncecat (cli)
- nces (cli)
- ncflint (cli)
- ncks (cli)
- ncpdq (cli)
- ncra (cli)
- ncrcat (cli)
- ncremap (cli)
- ncrename (cli)
- ncwa (cli)
- ncz2psx (cli)
- ncap2 (别名)
- ncatted (别名)
- ncbo (别名)
- ncchecker (别名)
- ncclimo (别名)
- ncdiff (别名)
- ncea (别名)
- ncecat (别名)
- nces (别名)
- ncflint (别名)
- ncks (别名)
- ncpdq (别名)
- ncra (别名)
- ncrcat (别名)
- ncremap (别名)
- ncrename (别名)
- ncwa (别名)
- ncz2psx (别名)

## 依赖

- gettext
- gsl
- netcdf
- texinfo
- udunits

## 构建依赖

- gettext
- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.3.9
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/nco/nco
- 检测到的最新版本: 5.3.9 (当前)
## 项目历史与用法

NCO, the netCDF Operators, is a suite of standalone shell commands for manipulating netCDF, HDF, and DAP scientific-data files. The project sits in the geoscience data-tooling world: derive fields, compute statistics, print and hyperslab data, edit metadata, concatenate files, regrid data, and emit text, binary, or netCDF outputs.

### 项目历史

Charlie Zender's NCO documentation traces the package back to software needs from NCAR, NASA, and ARM-funded work, with copyright beginning in 1995 and a May 1997 foreword offering the tools freely to the scientific community. Unidata's netCDF history places NCO 1.0 in June 1997, one month after netCDF 3.3.

### 采用历史

NCO became a durable part of the netCDF ecosystem because it gives scientists scriptable Unix-style tools instead of requiring a custom C, Fortran, Python, MATLAB, or IDL program for every data-editing task. The project says SourceForge began hosting NCO in March 2000, which helped collaboration, contributions, and support.

### 使用方式

Package users reach for commands like ncks for inspection and extraction, ncrcat for record concatenation, ncra or ncwa for averages, ncatted and ncrename for metadata cleanup, ncap2 for derived variables, and ncremap/ncclimo for climate and regridding workflows. The shell-command style is the point: build reproducible data-processing pipelines with normal scripts.

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

NCO is a classic example of domain-specific CLI tooling that stayed relevant because the file format stayed relevant. It is important for package collections because it bridges lower-level libraries such as netCDF and HDF with practical batch workflows used by climate, atmospheric, oceanographic, and earth-system researchers.

### 时间线

- 1995: NCO source/documentation copyright begins and the project describes itself as GPL open source since 1995.
- June 1997: Unidata history records Charlie Zender releasing NCO 1.0.
- March 2000: SourceForge hosting begins for collaboration and support.
- 2008: Recommended software citation published in Environmental Modelling & Software.
- 2020s: 5.x releases continue adding climate, remapping, compression, and model-workflow features.

### Related projects

- netCDF, HDF4, HDF5, DAP, OPeNDAP, Unidata, ESMF, climate and geoscience model outputs

### 来源

- <https://docs.unidata.ucar.edu/nug/2.0-draft/netcdf_history.html>
- <https://formulae.brew.sh/formula/nco>
- <https://github.com/nco/nco/blob/master/CITATION>
- <https://nco.sourceforge.net/>
- <https://nco.sourceforge.net/nco.html>
- <https://nco.sourceforge.net/src/>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nco
- **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

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

- Debian apt - nco - 5.3.3-1: normalized package name match | Debian stable package indexes: nco from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line operators to analyze netCDF files | http://nco.sourceforge.net/
- Nix - nco: normalized package name match | nixpkgs package indexes: pkgs/by-name/nc/nco/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nco - 5.2.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: nco from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command-line operators to analyze netCDF files | http://nco.sourceforge.net/
- dnf - nco - 5.3.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: nco from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Suite of programs for manipulating NetCDF/HDF4 files | http://nco.sourceforge.net/
- dnf - nco-devel - 5.3.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: nco-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for NCO | http://nco.sourceforge.net/
- dnf - nco-static - 5.3.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: nco-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Static libraries for NCO | http://nco.sourceforge.net/
- zypper - libnco-5_3_9 - 5.3.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libnco-5_3_9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libraries for accessing nco | https://github.com/nco/nco/
- zypper - libnco-devel - 5.3.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libnco-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for nco | https://github.com/nco/nco/
- zypper - libnco_c++-5_3_9 - 5.3.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libnco_c++-5_3_9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libraries for accessing nco | https://github.com/nco/nco/
- zypper - nco - 5.3.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: nco from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Suite of programs for manipulating NetCDF/HDF files | https://github.com/nco/nco/
- zypper - nco-doc - 5.3.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: nco-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for nco | https://github.com/nco/nco/
- MacPorts - nco: normalized package name match | MacPorts ports tree: science/nco/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [Scientific computing packages](https://pkg.so/zh-hans/scientific-computing-tools/) - Matched scientific computing metadata.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [netcdf](https://pkg.so/zh-hans/brew/netcdf/) - Runtime dependency declared by Homebrew.
- [texinfo](https://pkg.so/zh-hans/brew/texinfo/) - Runtime dependency declared by Homebrew.
- [gsl](https://pkg.so/zh-hans/brew/gsl/) - Runtime dependency declared by Homebrew.
- [udunits](https://pkg.so/zh-hans/brew/udunits/) - Runtime dependency declared by Homebrew.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Build dependency declared by Homebrew.
- [pnetcdf](https://pkg.so/zh-hans/brew/pnetcdf/) - Shares pkgdb curated category or tags: cli, netcdf, science, scientific-data.
- [libdap](https://pkg.so/zh-hans/brew/libdap/) - Shares pkgdb curated category or tags: cli, science, scientific-data.
- [metview](https://pkg.so/zh-hans/brew/metview/) - Shares pkgdb curated category or tags: cli, netcdf, science.
- [ncview](https://pkg.so/zh-hans/brew/ncview/) - Shares pkgdb curated category or tags: cli, netcdf, science.
- [magics](https://pkg.so/zh-hans/brew/magics/) - Shares pkgdb curated category or tags: cli, science, scientific-data.
- [cdi](https://pkg.so/zh-hans/brew/cdi/) - Shares pkgdb curated category or tags: cli, netcdf, science.
- [z3](https://pkg.so/zh-hans/brew/z3/) - Shares pkgdb curated category or tags: cli, science.
- [numpy](https://pkg.so/zh-hans/brew/numpy/) - Shares pkgdb curated category or tags: cli, science.
- [root](https://pkg.so/zh-hans/brew/root/) - Local package facts share a topical domain. Shared terms: cli, data, gsl, science, scientific.
- [astrometry-net](https://pkg.so/zh-hans/brew/astrometry-net/) - Local package facts share a topical domain. Shared terms: cli, gsl, processing, science.

## Combined YAML source

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


## 来源

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