# 使用 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
- **版本:** 1.7.1
- **来源摘要:** Immutable sorted string table library
- **主页:** <https://github.com/farsightsec/mtbl>
- **仓库:** <https://github.com/farsightsec/mtbl>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.7.1
## 项目历史与用法

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

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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
