# 使用 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
- **版本:** 2.6.3
- **来源摘要:** Climate Data Operators
- **主页:** <https://code.mpimet.mpg.de/projects/cdo>
- **最后更新:** 2026-06-22T14:03:00-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cdo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
