Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 cdb

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cdb

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cdb

MacPorts ports tree · databases/cdb/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#cdb

nixpkgs package indexes · pkgs/by-name/cd/cdb/package.nix · 来源: api.github.com

概览

软件包摘要

Create and read constant databases

命令和别名

  • cdb64dump
  • cdb64get
  • cdb64make
  • cdb64make-12
  • cdb64make-sv
  • cdb64stats
  • cdb64test
  • cdbdump
  • cdbget
  • cdbmake
  • cdbmake-12
  • cdbmake-sv
  • cdbstats
  • cdbtest

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:database

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cdb64dumpcli全局可执行文件
cdb64getcli全局可执行文件
cdb64makecli全局可执行文件
cdb64make-12cli全局可执行文件
cdb64make-svcli全局可执行文件
cdb64statscli全局可执行文件
cdb64testcli全局可执行文件
cdbdumpcli全局可执行文件
cdbgetcli全局可执行文件
cdbmakecli全局可执行文件
cdbmake-12cli全局可执行文件
cdbmake-svcli全局可执行文件
cdbstatscli全局可执行文件
cdbtestcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本20251021
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://cdb.cr.yp.to/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://cdb.cr.yp.to/none 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namecdb
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

cdb

nix profile install nixpkgs#cdb
  • normalized package name match
  • 匹配方式:Cdb
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cd/cdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

cdb

sudo port install cdb
  • normalized package name match
  • 匹配方式:Cdb
MacPorts ports tree · api.github.com · MacPorts ports tree: databases/cdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment