# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman 安装 tinycdb

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

## 安装

```sh
sudo av install brew:tinycdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tinycdb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tinycdb
```

  证据: MacPorts ports tree: databases/tinycdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install tinycdb
```

  证据: Debian stable package indexes: tinycdb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tinycdb
```

  证据: Fedora Rawhide package metadata: tinycdb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tinycdb
```

  证据: nixpkgs package indexes: pkgs/by-name/ti/tinycdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S tinycdb
```

  证据: Arch Linux sync databases: tinycdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:tinycdb
- **软件包管理器:** Homebrew
- **版本:** 0.81
- **来源摘要:** Create and read constant databases
- **主页:** <https://www.corpit.ru/mjt/tinycdb.html>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cdb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.81
## 项目历史与用法

TinyCDB is Michael Tokarev's small C library and command-line utility for creating, reading, querying, and dumping constant databases. Its official page describes it as compatible to a great extent with Dan J. Bernstein's cdb-0.75 package while offering a smaller, single-library implementation.

### 项目历史

The project belongs to the cdb lineage: Bernstein introduced the constant database data structure, and TinyCDB reimplemented that model with a single libcdb library, one cdb utility, a cleaner opaque-structure API, lower memory requirements during creation, and compatibility interfaces for cdb-0.75 and older cdb APIs.

### 采用历史

The official page recommends Debian users install through the standard apt repository and mentions RPM packaging support. The batch input records packages for Homebrew, Debian/Ubuntu libcdb-dev, Fedora, MacPorts, Nix, and Arch, which matches TinyCDB's role as a small system library shipped by OS package sets.

### 使用方式

TinyCDB is used when a mostly static set of key/value records should be rebuilt atomically and queried quickly. The official examples highlight indexing large user lists such as passwd-like data, and the included cdb utility covers creation, querying, dumping, and conversion from cdbmake-style input.

### 为什么软件包爱好者会关心

TinyCDB matters to package nerds because it is a classic small-C Unix component: public-domain-to-MIT licensing, a stable ABI-style header and library, a single CLI utility, and broad distro packaging. It is the kind of dependency that appears under mail, authentication, lookup, and other low-level packages that want cdb files without a heavier database.

### 时间线

- 2001: Copyright range on the official page begins.
- 2023: Version 0.81 changed the license text from public domain wording to MIT.
- 2023: Version 0.81 was released on 25 Dec 2023.

### Related projects

- TinyCDB is directly related to Dan J. Bernstein's cdb package and compares its API niche with Berkeley DB, gdbm, and traditional Unix dbm/ndbm libraries.

### 来源

- <https://www.corpit.ru/mjt/tinycdb.html>
- source_facts.package-manager


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - libcdb-dev - 0.81-2: normalized package name match | Debian stable package indexes: libcdb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- Debian apt - libcdb1 - 0.81-2: normalized package name match | Debian stable package indexes: libcdb1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared library for constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- Debian apt - tinycdb - 0.81-2: normalized package name match | Debian stable package indexes: tinycdb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility to manipulate constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- Nix - tinycdb: normalized package name match | nixpkgs package indexes: pkgs/by-name/ti/tinycdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcdb-dev - 0.81-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | development files for constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- Ubuntu apt - libcdb1 - 0.81-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdb1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | shared library for constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- Ubuntu apt - tinycdb - 0.81-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: tinycdb from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | utility to manipulate constant databases (cdb) | http://www.corpit.ru/mjt/tinycdb.html
- dnf - tinycdb - 0.80-7.fc45: normalized package name match | Fedora Rawhide package metadata: tinycdb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Utility and library for manipulating constant databases | http://www.corpit.ru/mjt/tinycdb.html
- dnf - tinycdb-devel - 0.80-7.fc45: normalized package name match | Fedora Rawhide package metadata: tinycdb-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for tinycdb | http://www.corpit.ru/mjt/tinycdb.html
- pacman - tinycdb - 0.81-2: normalized package name match | Arch Linux sync databases: tinycdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Very fast and simple package for creating and reading constant data bases | https://www.corpit.ru/mjt/tinycdb.html
- MacPorts - tinycdb: normalized package name match | MacPorts ports tree: databases/tinycdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - cdb: installed executable or alias match | MacPorts ports tree: databases/cdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - cdb: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cd/cdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/tinycdb.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tinycdb.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
