Automic VaultAutomic Vault

brew

Install libdatrie with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Double-Array Trie Library. Version 0.2.14 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libdatrie

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libdatrie

MacPorts ports tree · devel/libdatrie/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libdatrie

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

Debian aptverified · 92%
sudo apt install libdatrie-dev

Debian stable package indexes · libdatrie-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libdatrie

Fedora Rawhide package metadata · libdatrie · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libdatrie

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

Arch Linux pacmanverified · 92%
sudo pacman -S libdatrie

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

openSUSE zypperverified · 92%
sudo zypper install libdatrie-devel

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

overview

Package summary

Double-Array Trie Library

Commands and aliases

  • trietool
  • trietool-0.2

history

Project history and usage

libdatrie is Theppitak Karoonboonyanan's C implementation of a double-array trie, packaged as a small LGPL library plus the trietool command. It occupies a durable niche in text-processing stacks that need compact dictionary lookup.

Project history

The upstream README traces libdatrie to an earlier C++ library named midatrie and to Junichi Aoe's double-array trie structure. The project page says the implementation was simplified and rewritten from scratch in C, with libdatrie 0.1.0 released on 18 September 2006.

Release notes show a conservative library-maintenance rhythm: ABI and file-format changes before 0.2.0, portability fixes for Mac, Cygwin, MinGW, NetBSD, and Windows, Doxygen documentation updates, serialization APIs, and build-system cleanup. The package has stayed intentionally focused on the data structure rather than becoming a broad NLP toolkit.

Adoption history

The README frames tries as useful for lexical analyzers and spelling dictionaries, and the NEWS file explicitly mentions LibThai word-breaking performance improvements in 2015. Its package availability across Homebrew, Debian, Fedora, Arch, Nix, MacPorts, and other systems reflects its role as a low-level dependency rather than a widely invoked application.

How it is used

Users can link the C library for trie storage and lookup or use trietool to create and inspect trie data. The alphabet-map detail in the original project notes is important: applications define a compact character mapping before building trie storage.

Why package nerds care

libdatrie is the kind of package that shows why distro dependency graphs matter: a tiny C library, an old but useful data structure, a command-line utility, and years of portability fixes that keep language and dictionary packages building cleanly.

Timeline

  • 2001: The older midatrie C++ releases appeared on the original project page.
  • 2006: libdatrie 0.1.0 was released as a C rewrite with a BASE-TAIL double-array trie structure.
  • 2009: libdatrie 0.2.0 added performance APIs and started the 0.2 series.
  • 2015: libdatrie 0.2.9 renamed trietool-0.2 to trietool and documented LibThai performance improvements.
  • 2018: libdatrie 0.2.11 and 0.2.12 focused on correctness, C90 portability, and compiler-warning fixes.
  • 2021: libdatrie 0.2.13 added memory-buffer serialization APIs and more portability fixes.
  • 2025: libdatrie 0.2.14 cleaned up build dependencies, parallel-build issues, and error handling.

Related projects

  • midatrie is the direct predecessor. LibThai is a notable downstream text-processing user, and Aoe's double-array trie paper is the algorithmic reference cited by upstream.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

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
trietoolcliglobal executable
trietool-0.2cliglobal 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 version0.2.14
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/tlwg/libdatrie

  • infoNo package-manager update timestamp was available.low confidence
  • infoNo cached GitHub release or tag data was available.https://github.com/tlwg/libdatrienone confidence

install metadata

Package metadata

Package keybrew:libdatrie
Version0.2.14
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libdatrie
Homepagehttps://github.com/tlwg/libdatrie
Repositoryhttps://github.com/tlwg/libdatrie
Upstream docshttps://github.com/tlwg/libdatrie#readme
LicenseLGPL-2.1-or-later
Source archivehttps://github.com/tlwg/libdatrie/releases/download/v0.2.14/libdatrie-0.2.14.tar.xz
Build dependenciespkgconf
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 Namelibdatrie
Version Scheme0
Revision0
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.

Debian apt95%

libdatrie-dev 0.2.13-3+b1

Development files for double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libdatrie
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Libdatrie
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdatrie-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libdatrie-doc 0.2.13-3

Documentation files for double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie-doc
  • Section: doc
  • Architecture: all
  • Source Package: libdatrie
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Libdatrie
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdatrie-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libdatrie1 0.2.13-3+b1

Double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie1
  • Section: libs
  • Architecture: amd64
  • Source Package: libdatrie
  • 1 dependencies
  • normalized package name match
  • Matched by: Libdatrie
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdatrie1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libdatrie1-bin 0.2.13-3+b1

Programs for double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie1-bin
  • Section: misc
  • Architecture: amd64
  • Source Package: libdatrie
  • 2 dependencies
  • normalized package name match
  • Matched by: Libdatrie
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libdatrie1-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libdatrie

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

libdatrie-dev 0.2.13-3build1

Development files for double-array trie library

https://linux.thai.net/projects/libthai

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

libdatrie-doc 0.2.13-3build1

Documentation files for double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie-doc
  • Section: doc
  • Architecture: all
  • Source Package: libdatrie
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Libdatrie
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libdatrie-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libdatrie1 0.2.13-3build1

Double-array trie library

https://linux.thai.net/projects/libthai

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

libdatrie1-bin 0.2.13-3build1

Programs for double-array trie library

https://linux.thai.net/projects/libthai

sudo apt install libdatrie1-bin
  • Section: universe/misc
  • Architecture: amd64
  • Source Package: libdatrie
  • 2 dependencies
  • normalized package name match
  • Matched by: Libdatrie
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libdatrie1-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libdatrie 0.2.14-r1

Double-array trie library

https://github.com/tlwg/libdatrie

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

libdatrie-dev 0.2.14-r1

Double-array trie library (development files)

https://github.com/tlwg/libdatrie

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

libdatrie-doc 0.2.14-r1

Double-array trie library (documentation)

https://github.com/tlwg/libdatrie

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

libdatrie-libs 0.2.14-r1

Double-array trie library (libraries)

https://github.com/tlwg/libdatrie

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

libdatrie 0.2.14-2.fc44

Implementation of Double-Array structure for representing trie

http://linux.thai.net/projects/datrie

sudo dnf install libdatrie
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libdatrie
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libdatrie
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libdatrie from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libdatrie-devel 0.2.14-2.fc44

Development files for libdatrie

http://linux.thai.net/projects/datrie

sudo dnf install libdatrie-devel
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libdatrie
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libdatrie
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libdatrie-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

libdatrie 0.2.14-1

Double-array trie library

https://linux.thai.net/projects/datrie

sudo pacman -S libdatrie
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Libdatrie
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: libdatrie from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

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