# 使用 Homebrew, apt, MacPorts, Nix 安装 cdo

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

## 安装

```sh
sudo av install brew:cdo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cdo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cdo
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install cdo
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cdo
```

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

## 软件包事实

- **软件包键:** brew:cdo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cdo>
- **版本:** 2.6.3
- **来源摘要:** Climate Data Operators
- **主页:** <https://code.mpimet.mpg.de/projects/cdo>
- **上游文档:** <https://code.mpimet.mpg.de/projects/cdo>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://code.mpimet.mpg.de/attachments/download/30224/cdo-2.6.3.tar.gz>
- **最后更新:** 2026-06-22T14:03:00-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cdo (cli)
- cdo (别名)

## 依赖

- eccodes
- hdf5
- libaec
- netcdf
- proj

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.6.3
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://code.mpimet.mpg.de/projects/cdo
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Climate Data Operators, or CDO, is a command-line suite for manipulating and analyzing climate and numerical weather prediction data in formats such as GRIB and NetCDF.

### 项目历史

The official contributors page says CDO was originally developed by Uwe Schulzweida at the Max Planck Institute for Meteorology, with the first public release available since 2003. It was inspired by earlier MPI-M and DKRZ climate-data tools, including PINGO and GRIB-Modules.

The project is now hosted under the mpim-sw group at DKRZ GitLab, with official documentation generated for CDO 2.6.3 and active releases noted on the MPI-M Redmine project page in June 2026.

### 采用历史

CDO became a standard command-line utility in climate and weather data workflows because it provides hundreds of operators over GRIB, NetCDF, SERVICE, EXTRA, and IEG data. Official docs emphasize fast processing, chaining multiple operators, and availability on Unix/Linux systems, Cygwin, and macOS.

Package-manager adoption is broad for a science CLI: Homebrew, Debian, Ubuntu, MacPorts, and Nix all package it according to the input facts, reflecting its role in reproducible climate-data pipelines.

### 使用方式

Users run cdo commands to select, transform, remap, aggregate, and inspect climate model and forecast datasets. The docs highlight more than 700 operators, a simple Unix command-line interface, and support for large datasets with missing values.

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

CDO is significant for package maintainers because it sits at the intersection of scientific file formats, HPC-style Unix workflows, and fast-moving climate data standards. Its packaging pulls in format libraries and exposes a stable CLI expected by scripts, notebooks, and institutional workflows.

### 时间线

- 1991: MPI-M GRIB-Modules developed, later influencing CDO's module structure.
- 1995: DKRZ develops PINGO, whose interface and operators influence CDO.
- 2003: First public CDO release available.
- 2026: Official project page lists CDO 2.6.x releases and generated 2.6.3 documentation.

### Related projects

- CDO is related to CDI, PINGO, GRIB-Modules, SCRIP, YAC, GRIB, NetCDF, and the climate-model postprocessing tools used around MPI-M and DKRZ.

### 来源

- <https://gitlab.dkrz.de/mpim-sw/cdo>
- <https://code.mpimet.mpg.de/projects/cdo>
- <https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf>
- <https://code.mpimet.mpg.de/projects/cdo/wiki/Cdo>
- <https://mpim-sw.gitlab-pages.dkrz.de/cdo>
- <https://formulae.brew.sh/api/formula/cdo.json>


## 安全说明

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:** cdo
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - cdo - 2.5.1-1: normalized package name match | Debian stable package indexes: cdo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Climate Data Operators | https://code.mpimet.mpg.de/projects/cdo
- Debian apt - libcdi-dev - 2.5.1-1: normalized package name match | Debian stable package indexes: libcdi-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the climate data interface library | https://code.mpimet.mpg.de/projects/cdo
- Debian apt - libcdi0 - 2.5.1-1: normalized package name match | Debian stable package indexes: libcdi0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Climate Data Interface (cdi) library | https://code.mpimet.mpg.de/projects/cdo
- Nix - cdo: normalized package name match | nixpkgs package indexes: pkgs/by-name/cd/cdo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cdo - 2.4.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: cdo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Climate Data Operators | https://code.mpimet.mpg.de/projects/cdo
- Ubuntu apt - libcdi-dev - 2.4.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdi-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the climate data interface library | https://code.mpimet.mpg.de/projects/cdo
- Ubuntu apt - libcdi0 - 2.4.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdi0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Climate Data Interface (cdi) library | https://code.mpimet.mpg.de/projects/cdo
- MacPorts - cdo: normalized package name match | MacPorts ports tree: science/cdo/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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [hdf5](https://pkg.so/zh-hans/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [proj](https://pkg.so/zh-hans/brew/proj/) - Runtime dependency declared by Homebrew.
- [netcdf](https://pkg.so/zh-hans/brew/netcdf/) - Runtime dependency declared by Homebrew.
- [eccodes](https://pkg.so/zh-hans/brew/eccodes/) - Runtime dependency declared by Homebrew.
- [netcdf-fortran](https://pkg.so/zh-hans/brew/netcdf-fortran/) - Shares pkgdb curated category or tags: cli, data, netcdf.
- [netcdf-cxx](https://pkg.so/zh-hans/brew/netcdf-cxx/) - Shares pkgdb curated category or tags: cli, data, netcdf.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data.
- [protobuf](https://pkg.so/zh-hans/brew/protobuf/) - Shares pkgdb curated category or tags: cli, data.
- [bzip2](https://pkg.so/zh-hans/brew/bzip2/) - Shares pkgdb curated category or tags: cli, data.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cli, data.
- [cdi](https://pkg.so/zh-hans/brew/cdi/) - Local package facts share a topical domain. Shared terms: cli, climate, climate-data, data, eccodes.

## Combined YAML source

View the package source record on GitHub. [combined/cdo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cdo.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
