macOS
brew install cdblocal Homebrew formula metadata
sudo port install cdbMacPorts ports tree · databases/cdb/Portfile · source: api.github.com
brew
Create and read constant databases. Version 20251021 via Homebrew; verified from local package data.
install
brew install cdblocal Homebrew formula metadata
sudo port install cdbMacPorts ports tree · databases/cdb/Portfile · source: api.github.com
nix profile install nixpkgs#cdbnixpkgs package indexes · pkgs/by-name/cd/cdb/package.nix · source: api.github.com
overview
Create and read constant databases
history
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cdb64dump | cli | global executable | |
cdb64get | cli | global executable | |
cdb64make | cli | global executable | |
cdb64make-12 | cli | global executable | |
cdb64make-sv | cli | global executable | |
cdb64stats | cli | global executable | |
cdb64test | cli | global executable | |
cdbdump | cli | global executable | |
cdbget | cli | global executable | |
cdbmake | cli | global executable | |
cdbmake-12 | cli | global executable | |
cdbmake-sv | cli | global executable | |
cdbstats | cli | global executable | |
cdbtest | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:cdb |
|---|---|
| Version | 20251021 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cdb |
| Homepage | https://cdb.cr.yp.to/ |
| Upstream docs | https://cdb.cr.yp.to/ |
| License | LicenseRef-Homebrew-public-domain OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT |
| Source archive | https://cdb.cr.yp.to/cdb-20251021.tar.gz |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cdb |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cdb
nix profile install nixpkgs#cdbcdb
sudo port install cdbsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.