# 使用 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
- **版本:** 1.2.1
- **来源摘要:** Micro terminal multiplexer
- **主页:** <https://github.com/deadpixi/mtm>
- **仓库:** <https://github.com/deadpixi/mtm>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mtm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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