# 使用 Homebrew, apk, MacPorts, Nix 安装 mtm

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

## 安装

```sh
sudo av install brew:mtm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mtm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mtm
```

  证据: MacPorts ports tree: sysutils/mtm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mtm
```

  证据: Alpine Linux edge package indexes: mtm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#mtm
```

  证据: nixpkgs package indexes: pkgs/by-name/mt/mtm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mtm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mtm>
- **版本:** 1.2.1
- **来源摘要:** Micro terminal multiplexer
- **主页:** <https://github.com/deadpixi/mtm>
- **仓库:** <https://github.com/deadpixi/mtm>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/deadpixi/mtm/archive/refs/tags/1.2.1/1.2.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mtm (cli)
- mtm (别名)

## 依赖

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.1
- 本地数据: OK
- 上游仓库: https://github.com/deadpixi/mtm
- 检测到的最新版本: 1.2.1/1.2.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

mtm, the Micro Terminal Multiplexer, is a deliberately tiny terminal multiplexer from the deadpixi/mtm project. Its README frames the project around four principles: few commands, broad compatibility through classic ANSI terminal emulation, a codebase of about one thousand lines, and a maintenance policy centered on bug fixes, translation/accessibility improvements, and keeping the program building on supported operating systems.

### 项目历史

The tool occupies the minimalist end of the same niche as GNU Screen and tmux. It starts virtual terminals inside one terminal, lets the user split the screen horizontally or vertically, move focus with a prefix key and arrows, close panes, redraw, and scroll. The project avoids requiring a custom terminfo entry by advertising a long-established screen-compatible terminal type by default, while also shipping optional mtm terminfo entries for users who want them.

### 使用方式

Package-manager adoption reflects that niche: mtm is useful in constrained or preference-driven environments where a user wants pane splitting without sessions, scripting layers, or a large command language. Homebrew, Alpine, MacPorts, and Nix package it as a single mtm executable, so it functions mainly as a lightweight alternative for users who find larger multiplexers excessive.

### 来源

- <https://fedoramagazine.org/4-cool-terminal-multiplexers/>
- <https://formulae.brew.sh/formula/mtm>
- <https://github.com/deadpixi/mtm>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - mtm: normalized package name match | nixpkgs package indexes: pkgs/by-name/mt/mtm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - mtm - 1.2.1-r1: normalized package name match | Alpine Linux edge package indexes: mtm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Perhaps the smallest useful terminal multiplexer in the world | https://github.com/deadpixi/mtm
- apk - mtm-doc - 1.2.1-r1: normalized package name match | Alpine Linux edge package indexes: mtm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Perhaps the smallest useful terminal multiplexer in the world (documentation) | https://github.com/deadpixi/mtm
- MacPorts - mtm: normalized package name match | MacPorts ports tree: sysutils/mtm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [screen](https://pkg.so/zh-hans/brew/screen/) - Shares pkgdb curated category or tags: cli, multiplexer, system, terminal.
- [ov](https://pkg.so/zh-hans/brew/ov/) - Shares pkgdb curated category or tags: cli, system, terminal, tui.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [less](https://pkg.so/zh-hans/brew/less/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ranger](https://pkg.so/zh-hans/brew/ranger/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [lesspipe](https://pkg.so/zh-hans/brew/lesspipe/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [picocom](https://pkg.so/zh-hans/brew/picocom/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [dtach](https://pkg.so/zh-hans/brew/dtach/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [nemu](https://pkg.so/zh-hans/brew/nemu/) - Local package facts share a topical domain. Shared terms: cli, ncurses, system, terminal, tui.
- [colortail](https://pkg.so/zh-hans/brew/colortail/) - Local package facts share a topical domain. Shared terms: cli, system, terminal.
- [diskonaut](https://pkg.so/zh-hans/brew/diskonaut/) - Local package facts share a topical domain. Shared terms: cli, system, terminal, tui.

## Combined YAML source

View the package source record on GitHub. [combined/mtm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mtm.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
