# Install tinycdb with Homebrew, apt, dnf, MacPorts, Nix, pacman

Create and read constant databases. Version 0.81 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tinycdb
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tinycdb
```

  Evidence: 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 libcdb-dev
```

  Evidence: Debian stable package indexes: libcdb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tinycdb
```

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

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:tinycdb
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tinycdb>
- **Version:** 0.81
- **Source summary:** Create and read constant databases
- **Homepage:** <https://www.corpit.ru/mjt/tinycdb.html>
- **Upstream docs:** <https://www.corpit.ru/mjt/tinycdb.html>
- **License:** LicenseRef-Homebrew-public-domain
- **Source archive:** <https://www.corpit.ru/mjt/tinycdb/tinycdb-0.81.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cdb (cli)
- cdb (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.81
- Local data: ok
- Upstream repository: https://www.corpit.ru/mjt/tinycdb.html
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tinycdb
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- 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-6.fc44: normalized package name match | Fedora Rawhide package metadata: tinycdb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Utility and library for manipulating constant databases | http://www.corpit.ru/mjt/tinycdb.html
- dnf - tinycdb-devel - 0.80-6.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [dnsdist](https://www.automicvault.com/pkg/brew/dnsdist/) - Popular package that depends on this formula.
- [kyoto-cabinet](https://www.automicvault.com/pkg/brew/kyoto-cabinet/) - Shares av.db curated category or tags: cli, data, database, key-value-store, library.
- [gdbm](https://www.automicvault.com/pkg/brew/gdbm/) - Shares av.db curated category or tags: cli, data, database, key-value, library.
- [cdb](https://www.automicvault.com/pkg/brew/cdb/) - Shares av.db curated category or tags: cli, constant-database, data, database, key-value-store.
- [dynomite](https://www.automicvault.com/pkg/brew/dynomite/) - Shares av.db curated category or tags: cli, data, database, key-value-store.
- [immudb](https://www.automicvault.com/pkg/brew/immudb/) - Shares av.db curated category or tags: cli, data, database, key-value.
- [leveldb](https://www.automicvault.com/pkg/brew/leveldb/) - Shares av.db curated category or tags: cli, data, database, key-value-store, library.
- [sdb](https://www.automicvault.com/pkg/brew/sdb/) - Shares av.db curated category or tags: cdb, cli, data, database, key-value-store.
- [sqlite-utils](https://www.automicvault.com/pkg/brew/sqlite-utils/) - Shares av.db curated category or tags: cli, data, database, library.

## Combined YAML source

View the package source record on GitHub. [combined/tinycdb.yml](https://github.com/automic-vault/db/blob/main/combined/tinycdb.yml)


## Sources

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