# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 3.7b
- **来源摘要:** Terminal multiplexer
- **主页:** <https://tmux.github.io/>
- **仓库:** <https://github.com/tmux/tmux>
- **最后更新:** 2026-07-01T22:33:19Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tmux (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


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