# 使用 Homebrew, dnf, Nix, apt, zypper 安装 cdk

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

## 安装

```sh
sudo av install brew:cdk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cdk
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install cdk
```

  证据: Fedora Rawhide package metadata: cdk 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#cdk
```

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

- Debian apt (92%):

```sh
sudo apt install libcdk-java
```

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

- zypper (92%):

```sh
sudo zypper install cdk-devel
```

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

## 软件包事实

- **软件包键:** brew:cdk
- **软件包管理器:** Homebrew
- **版本:** 5.0-20260119
- **来源摘要:** Curses development kit provides predefined curses widget for apps
- **主页:** <https://invisible-island.net/cdk/>
- **最后更新:** 2026-05-17T09:02:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cdk5-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

CDK, the Curses Development Kit, is a C curses widget library for building terminal user interfaces. Its official Invisible Island page describes it as a library of customizable curses widgets, similar in spirit to dialog but linked into applications.

### 项目历史

The project was originally written by Mike Glover in the mid-1990s. Thomas E. Dickey's official history identifies CDK 4.6.0, with source files dated January 20, 1996, as the earliest version he had encountered and notes that Glover announced it in comp.sources.unix in January 1996.

Dickey became involved after Glover asked in late 1998 about distributing CDK with ncurses. Dickey reviewed the 4.9.8 code, reworked build and licensing issues, continued cleanup work, and released CDK 5.0 in April 2005.

### 采用历史

The official history notes that CDK had already been built on several Unix systems, including Linux, SunOS, Solaris, HP-UX, AIX, and QNX 4. It also records ncurses mailing-list discussion from the late 1990s in which CDK was suggested to users wanting a higher-level interface than raw ncurses.

CDK's distribution history is tied to classic Unix source-package culture: comp.sources.unix announcements, QNX-hosted tarballs, ncurses-adjacent maintenance, and ports or packages across Unix-like systems.

### 使用方式

CDK is used when a C program needs form, dialog, menu, scrolling-list, and other terminal widgets without building every curses interaction from scratch. The Homebrew package exposes cdk5-config for build flags and metadata.

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

For package maintainers, CDK is interesting because it sits between low-level ncurses and full-screen TUI applications: it is a small library whose portability, ABI, licensing, and configure-script behavior mattered across many Unix packaging systems.

### 时间线

- 1996: CDK 4.6.0 announced in comp.sources.unix and distributed as source.
- 1998: Mike Glover asks Thomas E. Dickey about distributing CDK with ncurses.
- 1999: Dickey begins cleanup, configure-script work, and license repair.
- 2005: CDK 5.0 released by Dickey.

### Related projects

- CDK is closely related to curses and ncurses, and its official page compares its role to dialog while emphasizing that CDK is a linkable widget library rather than a standalone dialog program.

### 来源

- <https://invisible-island.net/cdk/>
- <https://invisible-island.net/cdk>
- <https://invisible-island.net/cdk/manpage>
- <https://formulae.brew.sh/api/formula/cdk.json>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - libcdk-java - 1:2.11-1: normalized package name match | Debian stable package indexes: libcdk-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chemistry Development Kit (CDK) Java libraries | https://cdk.github.io/
- Nix - cdk: normalized package name match | nixpkgs package indexes: pkgs/by-name/cd/cdk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcdk-java - 1:2.9-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdk-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chemistry Development Kit (CDK) Java libraries | https://cdk.github.io/
- dnf - cdk - 5.0.20260119-4.fc45: normalized package name match | Fedora Rawhide package metadata: cdk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Curses Development Kit | https://invisible-island.net/cdk/
- dnf - cdk-devel - 5.0.20260119-4.fc45: normalized package name match | Fedora Rawhide package metadata: cdk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for cdk | https://invisible-island.net/cdk/
- dnf - cdk-doc - 5.0.20260119-4.fc45: normalized package name match | Fedora Rawhide package metadata: cdk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation and examples for cdk | https://invisible-island.net/cdk/
- zypper - cdk-devel - 5.0.20230201-1.9: normalized package name match | openSUSE Tumbleweed package metadata: cdk-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development Part of Curses Development Kit | https://invisible-island.net/cdk/
- zypper - libcdk6_3_4 - 5.0.20230201-1.9: normalized package name match | openSUSE Tumbleweed package metadata: libcdk6_3_4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The Runtime for the Curses Development Kit - Shared library | https://invisible-island.net/cdk/


## Combined YAML source

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