Automic VaultAutomic Vault

brew

Install tdb with Homebrew, apk, MacPorts, Nix, pacman, apt, zypper

Trivial DataBase, by the Samba project. Version 1.4.15 via Homebrew; verified 2026-04-18.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install tdb

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install tdb

MacPorts ports tree · databases/tdb/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add py3-tdb

Alpine Linux edge package indexes · py3-tdb · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#tdb

nixpkgs package indexes · pkgs/by-name/td/tdb/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S tdb

Arch Linux sync databases · tdb · source: geo.mirror.pkgbuild.com

Ubuntu aptverified · 92%
sudo apt install libtdb-dev

Ubuntu 24.04 LTS package indexes · libtdb-dev · source: archive.ubuntu.com

openSUSE zypperverified · 92%
sudo zypper install libtdb-devel

openSUSE Tumbleweed package metadata · libtdb-devel · source: download.opensuse.org

overview

Package summary

Trivial DataBase, by the Samba project

Commands and aliases

  • tdbbackup
  • tdbdump
  • tdbrestore
  • tdbtool

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1.2.9: Official Doxygen documentation describes TDB as a Samba-origin simple database API.
  • Current Samba tree: TDB lives under `lib/tdb` in the official Samba source repository.

Related projects

  • Samba documentation explicitly compares TDB with gdbm and BSD DB.
  • TDB is distributed from Samba's source archive and source tree alongside other standalone Samba libraries.

security posture

Risk level: blue

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

Risk classifier

blue risk · medium confidence · tool

Why

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

Signals

  • text:backup,database

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
tdbbackupcliglobal executable
tdbdumpcliglobal executable
tdbrestorecliglobal executable
tdbtoolcliglobal executable

freshness

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

page generated2026-07-08
manager version1.4.15
manager updated2026-04-18
local dataok
upstreamnot checked
latest detectednot detected

https://tdb.samba.org/

install metadata

Package metadata

Package keybrew:tdb
Version1.4.15
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tdb
Homepagehttps://tdb.samba.org/
Repositoryhttps://git.samba.org/samba.git
Upstream docshttps://tdb.samba.org/
LicenseLGPL-3.0-or-later AND GPL-3.0-or-later
Source archivehttps://www.samba.org/ftp/tdb/tdb-1.4.15.tar.gz
Last updated2026-04-18T13:11:00-04:00
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametdb
Version Scheme0
Revision0
Conflicts With
  • jena
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

tdb

nix profile install nixpkgs#tdb
  • normalized package name match
  • Matched by: Tdb
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/td/tdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libtdb-dev 1.4.10-1build1

Trivial Database - development files

https://tdb.samba.org/

sudo apt install libtdb-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: tdb
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libtdb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libtdb1 1.4.10-1build1

Trivial Database - shared library

https://tdb.samba.org/

sudo apt install libtdb1
  • Section: libs
  • Architecture: amd64
  • Source Package: tdb
  • 1 dependencies
  • normalized package name match
  • Matched by: Tdb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libtdb1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

python3-tdb 1.4.10-1build1

Python3 bindings for TDB

https://tdb.samba.org/

sudo apt install python3-tdb
  • Section: python
  • Architecture: amd64
  • Source Package: tdb
  • 3 dependencies
  • normalized package name match
  • Matched by: Tdb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-tdb from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

tdb-tools 1.4.10-1build1

Trivial Database - bundled binaries

https://tdb.samba.org/

sudo apt install tdb-tools
  • Section: utils
  • Architecture: amd64
  • Source Package: tdb
  • 2 dependencies
  • normalized package name match
  • Matched by: Tdb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tdb-tools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

py3-tdb 1.4.15-r1

Python 3 binding for the tdb library

https://tdb.samba.org/

sudo apk add py3-tdb
  • License: LGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: tdb
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: py3-tdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

tdb 1.4.15-r1

The tdb library

https://tdb.samba.org/

sudo apk add tdb
  • License: LGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: tdb
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

tdb-dev 1.4.15-r1

The tdb library (development files)

https://tdb.samba.org/

sudo apk add tdb-dev
  • License: LGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: tdb
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tdb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

tdb-doc 1.4.15-r1

The tdb library (documentation)

https://tdb.samba.org/

sudo apk add tdb-doc
  • License: LGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: tdb
  • normalized package name match
  • Matched by: Tdb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tdb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

tdb-libs 1.4.15-r1

The tdb library (libraries)

https://tdb.samba.org/

sudo apk add tdb-libs
  • License: LGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: tdb
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tdb-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
pacman95%

tdb 1.4.15-1

Trivial Database similar to GDBM but allows simultaneous commits

https://tdb.samba.org/

sudo pacman -S tdb
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 1 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Tdb
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: tdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libtdb-devel 1.4.15-1.1

Libraries and Header Files to Develop Programs with tdb1 Support

https://tdb.samba.org/

sudo zypper install libtdb-devel
  • License: LGPL-3.0-or-later
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: tdb
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Tdb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libtdb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libtdb1 1.4.15-1.1

Samba Trivial Database

https://tdb.samba.org/

sudo zypper install libtdb1
  • License: LGPL-3.0-or-later
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: tdb
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Tdb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libtdb1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libtdb1-32bit 1.4.15-1.1

Samba Trivial Database

https://tdb.samba.org/

sudo zypper install libtdb1-32bit
  • License: LGPL-3.0-or-later
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: tdb
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Tdb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libtdb1-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python3-tdb 1.4.15-1.1

Python3 bindings for the Tdb library

https://tdb.samba.org/

sudo zypper install python3-tdb
  • License: LGPL-3.0-or-later
  • Category: Development/Libraries/Python
  • Architecture: x86_64
  • Source Package: tdb
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python3-tdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python3-tdb-32bit 1.4.15-1.1

Python3 bindings for the Tdb library

https://tdb.samba.org/

sudo zypper install python3-tdb-32bit
  • License: LGPL-3.0-or-later
  • Category: Development/Libraries/Python
  • Architecture: x86_64
  • Source Package: tdb
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tdb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python3-tdb-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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