macOS
brew install cdblocal Homebrew formula metadata
sudo port install cdbMacPorts ports tree · databases/cdb/Portfile · 来源: api.github.com
安装
brew install cdblocal Homebrew formula metadata
sudo port install cdbMacPorts ports tree · databases/cdb/Portfile · 来源: api.github.com
nix profile install nixpkgs#cdbnixpkgs package indexes · pkgs/by-name/cd/cdb/package.nix · 来源: api.github.com
概览
Create and read constant databases
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cdb64dump | cli | 全局可执行文件 | |
cdb64get | cli | 全局可执行文件 | |
cdb64make | cli | 全局可执行文件 | |
cdb64make-12 | cli | 全局可执行文件 | |
cdb64make-sv | cli | 全局可执行文件 | |
cdb64stats | cli | 全局可执行文件 | |
cdb64test | cli | 全局可执行文件 | |
cdbdump | cli | 全局可执行文件 | |
cdbget | cli | 全局可执行文件 | |
cdbmake | cli | 全局可执行文件 | |
cdbmake-12 | cli | 全局可执行文件 | |
cdbmake-sv | cli | 全局可执行文件 | |
cdbstats | cli | 全局可执行文件 | |
cdbtest | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:cdb |
|---|---|
| 版本 | 20251021 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cdb |
| 主页 | https://cdb.cr.yp.to/ |
| 上游文档 | https://cdb.cr.yp.to/ |
| 许可证 | LicenseRef-Homebrew-public-domain OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT |
| 源码归档 | https://cdb.cr.yp.to/cdb-20251021.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cdb
nix profile install nixpkgs#cdbcdb
sudo port install cdb来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.