# 使用 Homebrew, apt 安装 mtbl

查看 mtbl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mtbl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mtbl
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libmtbl-dev
```

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

## 软件包事实

- **软件包键:** brew:mtbl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mtbl>
- **版本:** 1.7.1
- **来源摘要:** Immutable sorted string table library
- **主页:** <https://github.com/farsightsec/mtbl>
- **仓库:** <https://github.com/farsightsec/mtbl>
- **许可证:** Apache-2.0
- **源码归档:** <https://dl.farsightsecurity.com/dist/mtbl/mtbl-1.7.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mtbl_dump (cli)
- mtbl_info (cli)
- mtbl_merge (cli)
- mtbl_verify (cli)
- mtbl_dump (别名)
- mtbl_info (别名)
- mtbl_merge (别名)
- mtbl_verify (别名)

## 依赖

- lz4
- snappy
- zstd

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.7.1
- 本地数据: OK
- 上游仓库: https://github.com/farsightsec/mtbl
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

mtbl is a Farsight Security C library that packages the Sorted String Table idea as a small Unix-style library rather than as a full database. Its README describes the design as based on the SSTable implementation in Google LevelDB: immutable files map sorted byte-string keys to byte-string values, with an index at the end for lookup. The project deliberately leaves database duties such as update handling, deletion, and coordinating search results across tables to the caller, exposing primitives for creating, searching, and merging SSTable files instead.

### 项目历史

In practice mtbl is used where a program wants compact, immutable, searchable key-value files and wants to control the surrounding data-management workflow itself. Writers accept already sorted, duplicate-free key-value pairs and write in a single sequential pass; readers support exact-key, prefix, and range iteration; sorter and merger interfaces support bulk-load and multi-table merge workflows with caller-provided duplicate-key merge logic. The file format changed at version 1.0.0, with newer releases retaining read support for older files.

### 使用方式

Its ecosystem role is clearest in Farsight/Internet-measurement software. CAIDA slides from ISC described mtbl alongside dnstable as an SSTable implementation for scalable, compact, sequential-I/O construction. FreeBSD's 2015 addition of dnstable records dnstable as a passive-DNS encoding library and utilities that store records in SSTable files and depend on libmtbl. For package managers, mtbl is a low-level C dependency rather than an end-user application; Homebrew exposes the companion utilities mtbl_dump, mtbl_info, mtbl_merge, and mtbl_verify for inspecting, merging, and checking table files.

### 来源

- <https://formulae.brew.sh/formula/mtbl>
- <https://github.com/farsightsec/mtbl>
- <https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=4079084+0+archive/2015/svn-ports-all/20150405.svn-ports-all>
- <https://www.caida.org/workshops/isc-caida/1210/slides/isc1210_redmonds.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - libmtbl-dev - 1.6.1-1+b1: normalized package name match | Debian stable package indexes: libmtbl-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | immutable sorted string table library (development files)
- Debian apt - libmtbl1 - 1.6.1-1+b1: normalized package name match | Debian stable package indexes: libmtbl1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | immutable sorted string table library
- Debian apt - mtbl-bin - 1.6.1-1+b1: normalized package name match | Debian stable package indexes: mtbl-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | immutable sorted string table library (utilities)
- Ubuntu apt - libmtbl-dev - 1.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtbl-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | immutable sorted string table library (development files)
- Ubuntu apt - libmtbl1 - 1.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtbl1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | immutable sorted string table library
- Ubuntu apt - mtbl-bin - 1.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mtbl-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | immutable sorted string table library (utilities)


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [expat](https://pkg.so/zh-hans/brew/expat/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [libgpg-error](https://pkg.so/zh-hans/brew/libgpg-error/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [libevent](https://pkg.so/zh-hans/brew/libevent/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [oniguruma](https://pkg.so/zh-hans/brew/oniguruma/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [libxml2](https://pkg.so/zh-hans/brew/libxml2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [wandio](https://pkg.so/zh-hans/brew/wandio/) - Local package facts share a topical domain. Shared terms: c-library, cli, developer, developer-tools, lz4.
- [fstrm](https://pkg.so/zh-hans/brew/fstrm/) - Local package facts share a topical domain. Shared terms: c-library, cli, data, developer, developer-tools.
- [marisa](https://pkg.so/zh-hans/brew/marisa/) - Local package facts share a topical domain. Shared terms: cli, data, developer, developer-tools, dump.

## Combined YAML source

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


## 来源

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