# Installer tdb avec Homebrew, apk, MacPorts, Nix, pacman, apt, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de tdb pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:tdb
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install tdb
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tdb
```

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

### Linux

- apk (92%):

```sh
sudo apk add tdb
```

  Preuve: Alpine Linux edge package indexes: tdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#tdb
```

  Preuve: nixpkgs package indexes: pkgs/by-name/td/tdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S tdb
```

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

- Ubuntu apt (92%):

```sh
sudo apt install libtdb-dev
```

  Preuve: Ubuntu 24.04 LTS package indexes: libtdb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install libtdb-devel
```

  Preuve: openSUSE Tumbleweed package metadata: libtdb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:tdb
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.4.15
- **Résumé source:** Trivial DataBase, by the Samba project
- **Page d'accueil:** <https://tdb.samba.org/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- tdbbackup (alias)
- tdbdump (alias)
- tdbrestore (alias)
- tdbtool (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.4.15
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://git.samba.org/?p=samba.git;a=tree;f=lib/tdb>
- <https://tdb.samba.org/>
- <https://tdb.samba.org/group__tdb.html>
- source_facts.package-manager


## Notes de sécurité

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

- **Risque Geiger:** blue / moyen
- broad file, network, media, or database tool signal

## Autres enregistrements de gestionnaires de paquets

- Nix - tdb: normalized package name match | nixpkgs package indexes: pkgs/by-name/td/tdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libtdb-dev - 1.4.10-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtdb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Trivial Database - development files | https://tdb.samba.org/
- Ubuntu apt - libtdb1 - 1.4.10-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtdb1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Trivial Database - shared library | https://tdb.samba.org/
- Ubuntu apt - python3-tdb - 1.4.10-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-tdb from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Python3 bindings for TDB | https://tdb.samba.org/
- Ubuntu apt - tdb-tools - 1.4.10-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: tdb-tools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Trivial Database - bundled binaries | https://tdb.samba.org/
- apk - py3-tdb - 1.4.15-r1: normalized package name match | Alpine Linux edge package indexes: py3-tdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Python 3 binding for the tdb library | https://tdb.samba.org/
- apk - tdb - 1.4.15-r1: normalized package name match | Alpine Linux edge package indexes: tdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The tdb library | https://tdb.samba.org/
- apk - tdb-dev - 1.4.15-r1: normalized package name match | Alpine Linux edge package indexes: tdb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The tdb library (development files) | https://tdb.samba.org/
- apk - tdb-doc - 1.4.15-r1: normalized package name match | Alpine Linux edge package indexes: tdb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The tdb library (documentation) | https://tdb.samba.org/
- apk - tdb-libs - 1.4.15-r1: normalized package name match | Alpine Linux edge package indexes: tdb-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The tdb library (libraries) | https://tdb.samba.org/
- pacman - tdb - 1.4.15-1: normalized package name match | Arch Linux sync databases: tdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Trivial Database similar to GDBM but allows simultaneous commits | https://tdb.samba.org/
- zypper - libtdb-devel - 1.4.15-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtdb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libraries and Header Files to Develop Programs with tdb1 Support | https://tdb.samba.org/
- zypper - libtdb1 - 1.4.15-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtdb1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Samba Trivial Database | https://tdb.samba.org/
- zypper - libtdb1-32bit - 1.4.15-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtdb1-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Samba Trivial Database | https://tdb.samba.org/
- zypper - python3-tdb - 1.4.15-1.3: normalized package name match | openSUSE Tumbleweed package metadata: python3-tdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python3 bindings for the Tdb library | https://tdb.samba.org/
- zypper - python3-tdb-32bit - 1.4.15-1.3: normalized package name match | openSUSE Tumbleweed package metadata: python3-tdb-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Python3 bindings for the Tdb library | https://tdb.samba.org/


## Combined YAML source

View the package source record on GitHub. [combined/tdb.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tdb.yml)


## Sources

- 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
