pkg.soopen package index

brew / 排名 11076

使用 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

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cdb64dump可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64get可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64make可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64make-12可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64make-sv可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64stats可执行文件已索引可执行文件从本地可执行文件索引发现。
cdb64test可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbdump可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbget可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbmake可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbmake-12可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbmake-sv可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbstats可执行文件已索引可执行文件从本地可执行文件索引发现。
cdbtest可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本20251021
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cdb
版本20251021
软件包管理器Homebrew
主页https://cdb.cr.yp.to/
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation