# cdb を Homebrew, MacPorts, Nix でインストール

cdb のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:cdb
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cdb
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cdb
```

  証拠: MacPorts ports tree: databases/cdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cdb
```

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

## パッケージ情報

- **パッケージキー:** brew:cdb
- **パッケージマネージャ:** Homebrew
- **バージョン:** 20251021
- **ソース概要:** Create and read constant databases
- **ホームページ:** <https://cdb.cr.yp.to/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cdb64dump (エイリアス)
- cdb64get (エイリアス)
- cdb64make (エイリアス)
- cdb64make-12 (エイリアス)
- cdb64make-sv (エイリアス)
- cdb64stats (エイリアス)
- cdb64test (エイリアス)
- cdbdump (エイリアス)
- cdbget (エイリアス)
- cdbmake (エイリアス)
- cdbmake-12 (エイリアス)
- cdbmake-sv (エイリアス)
- cdbstats (エイリアス)
- cdbtest (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 20251021
## プロジェクトの歴史と使われ方

cdb is D. J. Bernstein's constant database package: a small file format and toolset for creating immutable key-value databases with fast lookups and atomic replacement. It is aimed at workloads where data is rebuilt wholesale and then read many times.

### プロジェクトの歴史

The official cdb site describes cdb as a fast, reliable, simple package for creating and reading constant databases, with successful lookups in large databases normally taking two disk accesses and unsuccessful lookups one. The official format page republishes Bernstein's original 19960914 document, 'A structure for constant databases,' which defines the core cdb file layout, hash tables, records, little-endian 32-bit quantities, and hash function.

The official download page records cdb-0.55 on 1996-09-22 as the first release, cdb-0.70 on 2000-02-17 as an almost complete API rewrite with mmap suggested by Ken Lalonde, cdb-0.75 on 2000-02-19 as a bug-fix and performance release, and a 2025-10-21 release adding cdb64 support, configure/make install support, and updated documentation.

### 採用の歴史

cdb's adoption has been unusually long-lived for a tiny database format. The official site lists independent support packages and bindings in Perl, Ruby, Go, Rust, Python/Node wrappers through cdb64-rs, and TinyCDB wrappers. The Homebrew input also records cdb packages in Homebrew, MacPorts, and Nix.

### 使われ方

cdb is used when a program needs a compact, immutable lookup table that can be regenerated atomically. The package includes cdbmake for building databases, cdbget for lookup, cdbdump for dumping records, cdbstats for inspection, and a C read API documented on the official site.

### パッケージ好きにとっての重要性

For package nerds, cdb is part of the D. J. Bernstein software lineage and a canonical example of a tiny, stable file format that escaped its original codebase. Its appeal is the combination of predictable lookup behavior, crash-safe replacement, public-domain-style licensing in packaged builds, and easy reimplementation in many languages.

### タイムライン

- 1996-09-14: Original cdb format document date on the official format page.
- 1996-09-22: cdb-0.55 first release on the official download page.
- 2000-02-17: cdb-0.70 rewrote almost everything from scratch and incorporated mmap.
- 2000-02-19: cdb-0.75 fixed a database creation bug and improved cdbmake performance.
- 2025-10-21: Official release added cdb64 support and modern configure/install support.

### Related projects

- The official intro page lists cdb64, cdb64-rs, CDB_File, cdb-full, CDB::TinyCDB, and Go implementations as packages that support the cdb or cdb64 formats.

### ソース

- <https://cdb.cr.yp.to/>
- <https://cdb.cr.yp.to/cdb.html>
- <https://cdb.cr.yp.to/cdbmake.html>
- <https://cdb.cr.yp.to/format.html>
- <https://formulae.brew.sh/api/formula/cdb.json>
- <https://cdb.cr.yp.to/download.html>


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- Nix - cdb: normalized package name match | nixpkgs package indexes: pkgs/by-name/cd/cdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - cdb: normalized package name match | MacPorts ports tree: databases/cdb/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/cdb.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cdb.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
