macOS
brew install tdblocal Homebrew formula metadata
sudo port install tdbMacPorts ports tree · databases/tdb/Portfile · 来源: api.github.com
安装
brew install tdblocal Homebrew formula metadata
sudo port install tdbMacPorts ports tree · databases/tdb/Portfile · 来源: api.github.com
sudo apk add tdbAlpine Linux edge package indexes · tdb · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#tdbnixpkgs package indexes · pkgs/by-name/td/tdb/package.nix · 来源: api.github.com
sudo pacman -S tdbArch Linux sync databases · tdb · 来源: geo.mirror.pkgbuild.com
sudo apt install libtdb-devUbuntu 24.04 LTS package indexes · libtdb-dev · 来源: archive.ubuntu.com
sudo zypper install libtdb-developenSUSE Tumbleweed package metadata · libtdb-devel · 来源: download.opensuse.org
概览
Trivial DataBase, by the Samba project
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tdbbackup | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
tdbdump | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
tdbrestore | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
tdbtool | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:tdb |
|---|---|
| 版本 | 1.4.15 |
| 软件包管理器 | Homebrew |
| 主页 | https://tdb.samba.org/ |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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.3
Libraries and Header Files to Develop Programs with tdb1 Support
sudo zypper install libtdb-devellibtdb1 1.4.15-1.3
Samba Trivial Database
sudo zypper install libtdb1libtdb1-32bit 1.4.15-1.3
Samba Trivial Database
sudo zypper install libtdb1-32bitpython3-tdb 1.4.15-1.3
Python3 bindings for the Tdb library
sudo zypper install python3-tdbpython3-tdb-32bit 1.4.15-1.3
Python3 bindings for the Tdb library
sudo zypper install python3-tdb-32bit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.