# tdb を Homebrew, apk, MacPorts, Nix, pacman, apt, zypper でインストール

tdb のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install tdb
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tdb
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:tdb
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.4.15
- **ソース概要:** Trivial DataBase, by the Samba project
- **ホームページ:** <https://tdb.samba.org/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- tdbbackup (エイリアス)
- tdbdump (エイリアス)
- tdbrestore (エイリアス)
- tdbtool (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.4.15
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

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


## ソース

- 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
