# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 tmux

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

## 安装

```sh
sudo av install brew:tmux
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tmux
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tmux
```

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

### Linux

- apk (92%):

```sh
sudo apk add tmux
```

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

- Debian apt (92%):

```sh
sudo apt install tmux
```

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

- dnf (92%):

```sh
sudo dnf install tmux
```

  证据: Fedora Rawhide package metadata: tmux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tmux
```

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

- pacman (92%):

```sh
sudo pacman -S tmux
```

  证据: Arch Linux sync databases: tmux from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install tmux
```

  证据: openSUSE Tumbleweed package metadata: tmux from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:tmux
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tmux>
- **版本:** 3.7b
- **来源摘要:** Terminal multiplexer
- **主页:** <https://tmux.github.io/>
- **仓库:** <https://github.com/tmux/tmux>
- **上游文档:** <https://tmux.github.io/>
- **许可证:** ISC
- **源码归档:** <https://github.com/tmux/tmux/releases/download/3.7b/tmux-3.7b.tar.gz>
- **最后更新:** 2026-07-01T22:33:19Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tmux (cli)
- tmux (别名)

## 依赖

- libevent
- ncurses
- utf8proc

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Example configuration has been installed to: $HOMEBREW_PREFIX/opt/tmux/share/tmux
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.7b
- 管理器更新时间: 2026-07-01
- 本地数据: OK
- 上游仓库: https://github.com/tmux/tmux
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

tmux is a terminal multiplexer: it lets users create, access, control, detach, and reattach multiple terminal sessions from one screen. It is one of the defining tools of modern command-line workflows, especially for developers, sysadmins, and package-manager users who keep reproducible terminal environments.

### 项目历史

Official OpenBSD documentation records tmux as started in 2007 by Nicholas Marriott, imported into OpenBSD on June 1, 2009, and first released with OpenBSD 4.6. The upstream CHANGES file records an initial CVS import on July 9, 2007, when detaching, reattaching, creating sessions, and listing sessions already worked well enough for shells, with status bar and customization still missing.

tmux's development model is unusual among popular developer tools: the tmux wiki states that OpenBSD CVS is the primary source repository and that GitHub carries the portable version, with a script applying OpenBSD commits to GitHub every few hours. This keeps tmux rooted in OpenBSD base-system practice while making it available as a portable package for other Unix-like systems.

### 采用历史

tmux grew from an OpenBSD base utility into a cross-platform terminal standard. The official README says current releases run on OpenBSD, FreeBSD, NetBSD, Linux, macOS, and Solaris, and the batch input records package names across apk, Homebrew, Debian, dnf, MacPorts, Nix, pacman, Ubuntu, and zypper.

By 2026, the GitHub repository and wiki showed a large public footprint, including tens of thousands of stars, a public issue tracker, a wiki, releases, and a tmux-users mailing list. The project remained volunteer-developed but widely relied on, with releases documented through GitHub release pages and the CHANGES file.

### 使用方式

tmux is used to keep long-running terminal work alive across disconnects, split a terminal into windows and panes, switch between programs, script terminal layouts, and share or inspect sessions. Its configuration files, commonly /etc/tmux.conf and ~/.tmux.conf, are central to dotfiles culture.

In the package-nerd niche, tmux is also a platform for other packages. Several packages in this same batch, including tmux-mem-cpu-load, tmux-sessionizer, and tmux-xpanes, exist because tmux exposes stable session, pane, status-line, and command interfaces that small tools can compose with.

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

tmux matters to package users because it is both an application and a substrate. It is packaged nearly everywhere, has a small and documented dependency stack, and creates an ecosystem where status monitors, pane launchers, session switchers, and dotfiles plugins can be distributed independently.

### 时间线

- 2007: Nicholas Marriott started tmux, according to OpenBSD's innovations page.
- 2007-07-09: Upstream CHANGES records the initial CVS import with sessions, detach, reattach, and shell use already working.
- 2009-06-01: tmux was imported into OpenBSD.
- 2009: tmux first shipped with OpenBSD 4.6.
- 2026: GitHub releases page listed tmux 3.7b as the latest bug-fix release.

### Related projects

- OpenBSD is the primary upstream home for tmux development.
- GNU screen is the older terminal-multiplexer tradition that tmux belongs beside, though tmux's official docs emphasize tmux's own client-server, sessions, windows, and panes model.
- tmux-mem-cpu-load, tmux-sessionizer, and tmux-xpanes are package-level examples of the tmux ecosystem.

### 来源

- <https://github.com/tmux/tmux>
- <https://github.com/tmux/tmux/blob/master/CHANGES>
- <https://github.com/tmux/tmux/wiki>
- <https://github.com/tmux/tmux/wiki/Contributing>
- <https://man.openbsd.org/tmux>
- <https://www.openbsd.org/innovations.html>
- input.json source_facts.package-manager


## 安全说明

没有找到 tmux 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: /etc/tmux.conf, ~/.tmux.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tmux
- **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 - tmux - 3.5a-3: normalized package name match | Debian stable package indexes: tmux from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal multiplexer | https://github.com/tmux/tmux/wiki
- Nix - tmux: normalized package name match | nixpkgs package indexes: pkgs/by-name/tm/tmux/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tmux - 3.4-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: tmux from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | terminal multiplexer | https://tmux.github.io/
- apk - tmux - 3.7b-r0: normalized package name match | Alpine Linux edge package indexes: tmux from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tool to control multiple terminals from a single terminal | https://tmux.github.io
- apk - tmux-doc - 3.7b-r0: normalized package name match | Alpine Linux edge package indexes: tmux-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tool to control multiple terminals from a single terminal (documentation) | https://tmux.github.io
- dnf - tmux - 3.7b-3.fc45: normalized package name match | Fedora Rawhide package metadata: tmux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A terminal multiplexer | https://tmux.github.io/
- pacman - tmux - 3.7_b-1: normalized package name match | Arch Linux sync databases: tmux from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Terminal multiplexer | https://github.com/tmux/tmux/wiki
- zypper - tmux - 3.7b-1.2: normalized package name match | openSUSE Tumbleweed package metadata: tmux from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Terminal multiplexer | https://tmux.github.io/
- MacPorts - tmux: normalized package name match | MacPorts ports tree: sysutils/tmux/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.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/zh-hans/brew/libevent/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [overmind](https://pkg.so/zh-hans/brew/overmind/) - Popular package that depends on this formula.
- [tmuxinator](https://pkg.so/zh-hans/brew/tmuxinator/) - Popular package that depends on this formula.
- [byobu](https://pkg.so/zh-hans/brew/byobu/) - Popular package that depends on this formula.
- [tmuxp](https://pkg.so/zh-hans/brew/tmuxp/) - Popular package that depends on this formula.
- [aoe](https://pkg.so/zh-hans/brew/aoe/) - Popular package that depends on this formula.
- [tmuxai](https://pkg.so/zh-hans/brew/tmuxai/) - Popular package that depends on this formula.
- [tpm](https://pkg.so/zh-hans/brew/tpm/) - Popular package that depends on this formula.
- [gitmux](https://pkg.so/zh-hans/brew/gitmux/) - Popular package that depends on this formula.
- [smug](https://pkg.so/zh-hans/brew/smug/) - Shares pkgdb curated category or tags: cli, productivity, sessions, terminal.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [midnight-commander](https://pkg.so/zh-hans/brew/midnight-commander/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [mutt](https://pkg.so/zh-hans/brew/mutt/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [tmux-fingers](https://pkg.so/zh-hans/brew/tmux-fingers/) - Package names and metadata indicate a similar tool family. Shared terms: cli, productivity, terminal, tmux.
- [tmux-sessionizer](https://pkg.so/zh-hans/brew/tmux-sessionizer/) - Package names and metadata indicate a similar tool family. Shared terms: cli, productivity, sessions, tmux.

## Combined YAML source

View the package source record on GitHub. [combined/tmux.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tmux.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
- external package-manager database matches
- cross-ecosystem install command graph
