# Install traildb with Homebrew, apt, apk, MacPorts, Nix, pacman, zypper

Blazingly-fast database for log-structured data. Version 0.6 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:traildb
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install traildb
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tdb
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libtraildb-dev
```

  Evidence: Debian stable package indexes: libtraildb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- apk (92%):

```sh
sudo apk add py3-tdb
```

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

- Nix (92%):

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

  Evidence: 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
```

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

- zypper (92%):

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

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

## Package facts

- **Package key:** brew:traildb
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/traildb>
- **Version:** 0.6
- **Source summary:** Blazingly-fast database for log-structured data
- **Homepage:** <https://traildb.io/>
- **Repository:** <https://github.com/traildb/traildb>
- **Upstream docs:** <https://traildb.io/docs>
- **License:** MIT
- **Source archive:** <https://github.com/traildb/traildb/archive/refs/tags/0.6.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- tdb (cli)
- traildb_bench (cli)
- tdb (alias)
- traildb_bench (alias)

## Dependencies

- judy
- libarchive

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.6
- Local data: ok
- Upstream repository: https://github.com/traildb/traildb
- Upstream latest detected: 0.6 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

TrailDB is a C library and command-line tool for storing and querying immutable series of discrete events. It was created at AdRoll for large-scale event processing and later packaged for developers who need compact, portable event databases.

### Project history

The official TrailDB homepage says TrailDB was created at AdRoll to power processing of time-series events. GitHub repository metadata dates the main repository to August 12, 2014, and the official site documents TrailDB 0.6 as a released version.

The docs describe TrailDB as an efficient tool for storing and querying things that happen over time, such as mobile-app actions, trading-algorithm events, website actions, or server logs. Unlike continuous time-series metrics, TrailDB focuses on discrete, structured events.

The core implementation is a C library with the tdb command-line tool. The official docs and homepage list bindings for Go, Python, D, Haskell, and R, making the project a small database format plus language ecosystem rather than only one executable.

### Adoption history

The official homepage says AdRoll had used TrailDB since 2014 to store and query tens of trillions of web-originating events. That is the strongest documented adoption signal and explains why the project emphasizes compression, immutability, distributed processing, and low operational overhead.

Package-manager adoption made TrailDB easier to install for local analysis and development. The official README and getting-started docs explicitly mention Homebrew installation, while the input facts show packages or bindings in Homebrew, Alpine, Debian, MacPorts, Nix, Arch, Ubuntu, and openSUSE ecosystems.

### How it is used

TrailDBs are immutable files created and read by applications through the TrailDB library. The official docs describe pipelines that encode new TrailDBs periodically, store them in object storage such as S3, and process them in parallel without a centralized bottleneck.

For command-line users, the repository contains tdb and the getting-started guide shows tdb dump against the included test database. TrailDB is used for metrics, usage-pattern analysis, anomaly detection, and clustering or predicting user behavior.

### Why package nerds care

TrailDB is package-nerd significant as an example of a specialized database packaged like a Unix tool: a native C library, CLI, compact file format, and multiple language bindings. It appeals to users who want local, scriptable analysis of large event logs without operating a database server.

Its packaging story is also a reminder that some data infrastructure is intentionally file-based and immutable. That makes the install surface small, but dependencies such as Judy arrays and libarchive still matter to maintainers.

### Timeline

- 2014: GitHub repository created; AdRoll use begins according to the official homepage.
- 2016: Official docs copyright and TrailDB site materials identify AdRoll as the project source.
- 2017: The official homepage announces TrailDB 0.6.
- 2021: Official documentation build date and repository activity show the project site still published.

### Related projects

- Official TrailDB language binding repositories include traildb-python, traildb-go, traildb-r, traildb-haskell, and traildb-d.
- The official getting-started docs name Judy arrays and libarchive as external dependencies.

### Sources

- <https://github.com/traildb/traildb - official repository README and metadata.>
- <https://traildb.io/ - official homepage with AdRoll origin, use cases, scale, release note, and language bindings.>
- <https://traildb.io/docs/ - official documentation overview.>
- <https://traildb.io/docs/getting_started/ - official getting-started and Homebrew install docs.>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** traildb
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libtraildb-dev - 0.6+dfsg1-1+b2: normalized package name match | Debian stable package indexes: libtraildb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to handle series of discrete events (development files) | https://github.com/traildb/traildb
- Debian apt - libtraildb0 - 0.6+dfsg1-1+b2: normalized package name match | Debian stable package indexes: libtraildb0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to handle series of discrete events | https://github.com/traildb/traildb
- Debian apt - traildb-cli - 0.6+dfsg1-1+b2: normalized package name match | Debian stable package indexes: traildb-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to handle series of discrete events (cli tool) | https://github.com/traildb/traildb
- Ubuntu apt - libtraildb-dev - 0.6+dfsg1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtraildb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to handle series of discrete events (development files) | https://github.com/traildb/traildb
- Ubuntu apt - libtraildb0 - 0.6+dfsg1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtraildb0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to handle series of discrete events | https://github.com/traildb/traildb
- Ubuntu apt - traildb-cli - 0.6+dfsg1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: traildb-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to handle series of discrete events (cli tool) | https://github.com/traildb/traildb
- MacPorts - tdb: installed executable or alias match | MacPorts ports tree: databases/tdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - tdb: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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: installed executable or alias 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/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libarchive](https://www.automicvault.com/pkg/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [influxdb-cli](https://www.automicvault.com/pkg/brew/influxdb-cli/) - Shares av.db curated category or tags: cli, data, database, time-series.
- [qdbm](https://www.automicvault.com/pkg/brew/qdbm/) - Shares av.db curated category or tags: c-library, cli, data, database.
- [questdb](https://www.automicvault.com/pkg/brew/questdb/) - Shares av.db curated category or tags: cli, data, database, time-series.
- [tdb](https://www.automicvault.com/pkg/brew/tdb/) - Shares av.db curated category or tags: c-library, cli, data, database.
- [automysqlbackup](https://www.automicvault.com/pkg/brew/automysqlbackup/) - Shares av.db curated category or tags: cli, data, database.
- [basex](https://www.automicvault.com/pkg/brew/basex/) - Shares av.db curated category or tags: cli, data, database.
- [berkeley-db](https://www.automicvault.com/pkg/brew/berkeley-db/) - Shares av.db curated category or tags: cli, data, database.
- [couchdb](https://www.automicvault.com/pkg/brew/couchdb/) - Shares av.db curated category or tags: cli, data, database.
- [influxdb](https://www.automicvault.com/pkg/brew/influxdb/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, series, time.

## Combined YAML source

View the package source record on GitHub. [combined/traildb.yml](https://github.com/automic-vault/db/blob/main/combined/traildb.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
