# 使用 Homebrew 安装 dtm

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

## 安装

```sh
sudo av install brew:dtm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dtm
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dtm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dtm>
- **版本:** 1.19.0
- **来源摘要:** Cross-language distributed transaction manager
- **主页:** <https://en.dtm.pub/>
- **仓库:** <https://github.com/dtm-labs/dtm>
- **上游文档:** <https://en.dtm.pub/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/dtm-labs/dtm/archive/refs/tags/v1.19.0.tar.gz>
- **最后更新:** 2026-07-29T17:00:36+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dtm (cli)
- dtm-qs (cli)
- dtm (别名)
- dtm-qs (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.19.0
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/dtm-labs/dtm
- 检测到的最新版本: v1.19.0 (当前)
## 项目历史与用法

DTM is a Go-origin distributed transaction manager for microservice systems. Its niche is cross-service data consistency: the project presents saga, TCC, XA, two-phase message, outbox, and workflow patterns behind one transaction service with SDKs for several languages.

### 项目历史

The public GitHub repository was created in 2021 and the official documentation describes DTM as a distributed transaction framework in Go. The README and documentation emphasize that the server can coordinate transaction branches over HTTP or gRPC and can use storage backends such as MySQL, Redis, BoltDB, PostgreSQL, and others.

The project grew around the operational problem of making distributed transactions usable in polyglot microservice deployments. Its examples and quick-start material center on common business flows such as inter-bank transfers, orders, flash sales, cache consistency, and event publishing.

### 采用历史

DTM's README and documentation include a 'Who's using DTM' page listing organizations such as Tencent and ByteDance as users. Homebrew packaging gives it a small but useful macOS/Linux CLI distribution channel, with the formula tracking the upstream GitHub tags.

### 使用方式

Users typically run the `dtm` service, point application SDKs at it, and model business operations as saga, TCC, XA, workflow, or message transactions. The project also ships `dtm-qs` for quick-start workflows. Configuration is optional for simple runs, with `conf.sample.yml` documenting storage, ports, timeouts, logging, and microservice discovery settings.

### 为什么软件包爱好者会关心

For package people, DTM is notable because it packages a distributed-systems coordination service as a normal installable CLI/server rather than just a Go library. It also sits at the intersection of Go services, language SDKs, database drivers, and package-manager distribution, which makes it a compact example of modern infrastructure tooling leaving the language ecosystem and entering system package indexes.

### 时间线

- 2021: Public dtm-labs/dtm GitHub repository created.
- 2021 onward: Project documentation describes saga, TCC, XA, two-phase message, outbox, and workflow support.
- 2020s: Homebrew formula distributes the `dtm` and `dtm-qs` executables from upstream GitHub releases.

### Related projects

- DTM documentation and repository topics place it near Seata, workflow engines, outbox/message-transaction implementations, and Go microservice frameworks such as go-zero and Kratos. The project also maintains quick-start and example repositories under the dtm-labs organization.

### 来源

- <https://github.com/dtm-labs/dtm>
- <https://en.dtm.pub/>
- <https://en.dtm.pub/other/using.html>
- <https://github.com/dtm-labs/dtm/blob/main/conf.sample.yml>
- <https://formulae.brew.sh/api/formula/dtm.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./conf.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dtm
- **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


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data.
- [protobuf](https://pkg.so/zh-hans/brew/protobuf/) - Shares pkgdb curated category or tags: cli, data.
- [bzip2](https://pkg.so/zh-hans/brew/bzip2/) - Shares pkgdb curated category or tags: cli, data.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cli, data.
- [gdbm](https://pkg.so/zh-hans/brew/gdbm/) - Shares pkgdb curated category or tags: cli, data.
- [freetds](https://pkg.so/zh-hans/brew/freetds/) - Shares pkgdb curated category or tags: cli, data.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data.
- [postgresql@14](https://pkg.so/zh-hans/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data.
- [vineyard](https://pkg.so/zh-hans/brew/vineyard/) - Local package facts share a topical domain. Shared terms: cli, data, distributed, manager.
- [apache-spark](https://pkg.so/zh-hans/brew/apache-spark/) - Local package facts share a topical domain. Shared terms: cli, data, distributed.
- [barman](https://pkg.so/zh-hans/brew/barman/) - Local package facts share a topical domain. Shared terms: cli, data, manager.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
