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

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

## 安装

```sh
sudo av install brew:cmus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cmus
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmus
```

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

### Linux

- apk (92%):

```sh
sudo apk add cmus
```

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

- Debian apt (92%):

```sh
sudo apt install cmus
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cmus
```

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

- pacman (92%):

```sh
sudo pacman -S cmus
```

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

- zypper (92%):

```sh
sudo zypper install cmus
```

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

## 软件包事实

- **软件包键:** brew:cmus
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cmus>
- **版本:** 2.12.0
- **来源摘要:** Music player with an ncurses based interface
- **主页:** <https://cmus.github.io/>
- **仓库:** <https://github.com/cmus/cmus>
- **上游文档:** <https://cmus.github.io/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/cmus/cmus/archive/refs/tags/v2.12.0.tar.gz>
- **最后更新:** 2026-08-02T21:33:27+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cmus (cli)
- cmus-remote (cli)
- cmus (别名)
- cmus-remote (别名)

## 依赖

- faad2
- ffmpeg
- flac
- libao
- libvorbis
- mad
- ncurses
- opusfile

## 构建依赖

- pkgconf

## 安装行为

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

## 版本和新鲜度

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

cmus is a small, fast console music player for Unix-like systems, built around an ncurses interface, plugin-based audio I/O, a keyboard-driven library, playlists, filters, and the cmus-remote control tool.

### 项目历史

The official repository credits Timo Hirvonen for 2004-2008 copyright and later work to various authors, reflecting a long-running community-maintained C project. The project now lives at github.com/cmus/cmus with an official website at cmus.github.io.

### 采用历史

cmus became a standard terminal-audio package across Unix package managers. The batch input lists packages in Alpine, Homebrew, Debian, MacPorts, Nix, Arch, Ubuntu, and openSUSE, and the upstream README documents build dependency sets for Debian/Ubuntu, Fedora/RHEL, Arch, Alpine, Termux, and Homebrew.

### 使用方式

Users run cmus in a terminal, add music to the library, switch among numbered views for library, sorted library, playlist, queue, browser, filters, and settings, and control playback through keybindings or cmus-remote.

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

cmus is a classic package-manager favorite because it is small, ncurses-native, scriptable, and useful on headless machines or minimal desktops. It also exercises distro audio stacks through optional input and output plugins while remaining a compact C package.

### 时间线

- 2004: Earliest copyright year credited to Timo Hirvonen in the official README.
- 2008: Copyright attribution expands to various authors.
- 2015: 2.6.x and 2.7.x releases added features such as JACK, Opus, sndio, and optional mouse support.
- 2019: 2.8.0 added CoreAudio output, D-Bus MPRIS support, and multiple-playlist support.
- 2024: 2.11.0 and 2.12.0 releases continued UI, build, and plugin maintenance.

### Related projects

- cmusfm integrates with cmus as a Last.fm scrobbler via cmus status_display_program.
- mpd and MOC occupy nearby terminal/daemon music-player space, while cmus-remote is the official companion control command.

### 来源

- <https://cmus.github.io/>
- <https://github.com/cmus/cmus#readme>
- <https://github.com/cmus/cmus/blob/master/Doc/cmus.txt>
- <https://github.com/cmus/cmus.github.io/blob/master/index.html>


## 安全说明

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: $XDG_CONFIG_HOME/cmus/rc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cmus
- **Version Scheme:** 0
- **Revision:** 3
- **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 - cmus - 2.12.0-1: normalized package name match | Debian stable package indexes: cmus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight ncurses audio player | https://cmus.github.io/
- Debian apt - cmus-plugin-ffmpeg - 2.12.0-1: normalized package name match | Debian stable package indexes: cmus-plugin-ffmpeg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight ncurses audio player (FFmpeg plugin) | https://cmus.github.io/
- Nix - cmus: normalized package name match | nixpkgs package indexes: pkgs/by-name/cm/cmus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cmus - 2.10.0-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: cmus from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight ncurses audio player | https://cmus.github.io/
- Ubuntu apt - cmus-plugin-ffmpeg - 2.10.0-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: cmus-plugin-ffmpeg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight ncurses audio player (FFmpeg plugin) | https://cmus.github.io/
- apk - cmus - 2.12.0-r4: normalized package name match | Alpine Linux edge package indexes: cmus from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | feature-rich ncurses-based music player | https://cmus.github.io/
- apk - cmus-bash-completion - 2.12.0-r4: normalized package name match | Alpine Linux edge package indexes: cmus-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for cmus | https://cmus.github.io/
- apk - cmus-doc - 2.12.0-r4: normalized package name match | Alpine Linux edge package indexes: cmus-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | feature-rich ncurses-based music player (documentation) | https://cmus.github.io/
- apk - cmus-zsh-completion - 2.12.0-r4: normalized package name match | Alpine Linux edge package indexes: cmus-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for cmus | https://cmus.github.io/
- pacman - cmus - 2.12.0-5: normalized package name match | Arch Linux sync databases: cmus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Feature-rich ncurses-based music player | https://cmus.github.io/
- zypper - cmus - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Text-mode music player | https://cmus.github.io/
- zypper - cmus-plugin-cdio - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus-plugin-cdio from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CDIO plugin for the C* Music Player | https://cmus.github.io/
- zypper - cmus-plugin-cue - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus-plugin-cue from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CUE input plugin for the C* Music Player | https://cmus.github.io/
- zypper - cmus-plugin-ffmpeg - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus-plugin-ffmpeg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | FFmpeg input plugin for the C* Music Player | https://cmus.github.io/
- zypper - cmus-plugin-flac - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus-plugin-flac from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | FLAC input plugin for the C* Music Player | https://cmus.github.io/
- zypper - cmus-plugin-jack - 2.12.0-3.7: normalized package name match | openSUSE Tumbleweed package metadata: cmus-plugin-jack from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | JACK output plugin for the C* Music Player | https://cmus.github.io/


## 相关链接

- [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.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Runtime dependency declared by Homebrew.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Runtime dependency declared by Homebrew.
- [faad2](https://pkg.so/zh-hans/brew/faad2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [moc](https://pkg.so/zh-hans/brew/moc/) - Shares pkgdb curated category or tags: audio, cli, console, media, music-player.
- [kew](https://pkg.so/zh-hans/brew/kew/) - Shares pkgdb curated category or tags: audio, cli, media, music-player, terminal.
- [pianobar](https://pkg.so/zh-hans/brew/pianobar/) - Shares pkgdb curated category or tags: cli, media, music-player, terminal.
- [mpd](https://pkg.so/zh-hans/brew/mpd/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [cava](https://pkg.so/zh-hans/brew/cava/) - Shares pkgdb curated category or tags: audio, cli, media, terminal.
- [audacious](https://pkg.so/zh-hans/brew/audacious/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [musikcube](https://pkg.so/zh-hans/brew/musikcube/) - Shares pkgdb curated category or tags: cli, media, music-player, terminal.
- [rmpc](https://pkg.so/zh-hans/brew/rmpc/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.

## Combined YAML source

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