macOS
brew install tdblocal Homebrew formula metadata
sudo port install tdbMacPorts ports tree · databases/tdb/Portfile · source: api.github.com
brew
Trivial DataBase, by the Samba project. Version 1.4.15 via Homebrew; verified 2026-04-18.
install
brew install tdblocal Homebrew formula metadata
sudo port install tdbMacPorts ports tree · databases/tdb/Portfile · source: api.github.com
sudo apk add py3-tdbAlpine Linux edge package indexes · py3-tdb · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#tdbnixpkgs package indexes · pkgs/by-name/td/tdb/package.nix · source: api.github.com
sudo pacman -S tdbArch Linux sync databases · tdb · source: geo.mirror.pkgbuild.com
sudo apt install libtdb-devUbuntu 24.04 LTS package indexes · libtdb-dev · source: archive.ubuntu.com
sudo zypper install libtdb-developenSUSE Tumbleweed package metadata · libtdb-devel · source: download.opensuse.org
overview
Trivial DataBase, by the Samba project
history
tdb, the Trivial DataBase from the Samba project, is a small embedded key-value database library and set of command-line utilities. Samba's own documentation says it grew out of several ad hoc database-like components inside Samba and was designed as a compact alternative inspired by gdbm.
The official TDB documentation explains the origin directly: Samba had multiple ad hoc pieces of code that shared structures between parts of Samba, and TDB consolidated that need into a simple database API. Its interface was based on gdbm, but gdbm was not suitable for Samba's requirement that multiple writers be able to use a database at the same time.
The API documentation describes TDB as conceptually similar to GDBM and BSD DB, but smaller and with internal locking for concurrent writers. It includes common database operations such as open, fetch, store, delete, traverse, transactions, locking, and consistency checks.
TDB's adoption is tied to Samba itself and to operating-system packaging of Samba-related libraries and tools. The supplied package-manager facts show it available across Homebrew, MacPorts, Nix, Arch, Ubuntu/Debian, Alpine, and openSUSE ecosystems, often as libtdb development packages or Python bindings.
TDB is used as a local embedded database library, and its command-line tools include `tdbtool`, `tdbdump`, `tdbbackup`, and `tdbrestore`. Samba's documentation notes that `tdbtool` allows simple command-line manipulation of databases, while the API is aimed at programs that need small, locked, file-backed databases.
For package maintainers, TDB is notable because it is not just an end-user command: it is infrastructure shipped as libraries, headers, Python bindings, and maintenance tools. Its presence in many package sets reflects Samba's long tail of reusable C libraries and the need for consistent ABI packaging across Unix-like systems.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tdbbackup | cli | global executable | |
tdbdump | cli | global executable | |
tdbrestore | cli | global executable | |
tdbtool | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:tdb |
|---|---|
| Version | 1.4.15 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tdb |
| Homepage | https://tdb.samba.org/ |
| Repository | https://git.samba.org/samba.git |
| Upstream docs | https://tdb.samba.org/ |
| License | LGPL-3.0-or-later AND GPL-3.0-or-later |
| Source archive | https://www.samba.org/ftp/tdb/tdb-1.4.15.tar.gz |
| Last updated | 2026-04-18T13:11:00-04:00 |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tdb |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tdb
nix profile install nixpkgs#tdblibtdb-dev 1.4.10-1build1
Trivial Database - development files
sudo apt install libtdb-devlibtdb1 1.4.10-1build1
Trivial Database - shared library
sudo apt install libtdb1python3-tdb 1.4.10-1build1
Python3 bindings for TDB
sudo apt install python3-tdbtdb-tools 1.4.10-1build1
Trivial Database - bundled binaries
sudo apt install tdb-toolspy3-tdb 1.4.15-r1
Python 3 binding for the tdb library
sudo apk add py3-tdbtdb 1.4.15-r1
The tdb library
sudo apk add tdbtdb-dev 1.4.15-r1
The tdb library (development files)
sudo apk add tdb-devtdb-doc 1.4.15-r1
The tdb library (documentation)
sudo apk add tdb-doctdb-libs 1.4.15-r1
The tdb library (libraries)
sudo apk add tdb-libstdb 1.4.15-1
Trivial Database similar to GDBM but allows simultaneous commits
sudo pacman -S tdblibtdb-devel 1.4.15-1.1
Libraries and Header Files to Develop Programs with tdb1 Support
sudo zypper install libtdb-devellibtdb1 1.4.15-1.1
Samba Trivial Database
sudo zypper install libtdb1libtdb1-32bit 1.4.15-1.1
Samba Trivial Database
sudo zypper install libtdb1-32bitpython3-tdb 1.4.15-1.1
Python3 bindings for the Tdb library
sudo zypper install python3-tdbpython3-tdb-32bit 1.4.15-1.1
Python3 bindings for the Tdb library
sudo zypper install python3-tdb-32bitsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.