# 使用 Homebrew, apt, MacPorts, Nix, zypper 安装 moc

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

## 安装

```sh
sudo av install brew:moc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install moc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install moc
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install moc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#moc
```

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

- zypper (92%):

```sh
sudo zypper install moc
```

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

## 软件包事实

- **软件包键:** brew:moc
- **软件包管理器:** Homebrew
- **版本:** 2.5.2
- **来源摘要:** Terminal-based music player
- **主页:** <https://moc.daper.net/>
- **最后更新:** 2026-06-19T12:32:39-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mocp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

MOC, short for Music On Console, is a Linux and Unix console audio player whose official documentation names Damian Pietras as the original author and John Fitzgerald as maintainer. The project site describes an ncurses-style player inspired by Midnight Commander: users browse directories, press enter on a file, and MOC continues playback through the directory without requiring a prebuilt playlist.

### 项目历史

Its major design milestone is the split between the text interface and a background server process. Pressing `q` detaches the interface while playback continues, and another interface can attach later. The official description also highlights a separate output-buffer thread for smooth playback under system or I/O load, gapless playback through precaching, customizable key bindings, playlist persistence, m3u support, Icecast and Shoutcast streams, and broad codec support through plugins and libraries.

### 使用方式

MOC's package niche is the lightweight terminal music-player slot: closer to a self-contained player than to networked daemons such as MPD. The executable is `mocp`, and package records show it distributed broadly through Homebrew, Debian, Ubuntu, MacPorts, Nix, and zypper for users who want local console playback without a graphical library manager.

### 来源

- <https://formulae.brew.sh/formula/moc>
- <https://moc.daper.net/about>
- <https://moc.daper.net/node/87>
- <https://moc.daper.net/taxonomy/term/2>


## 安全说明

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: ~/.moc/config
## 其他软件包管理器记录

- Debian apt - moc - 1:2.6.0~svn-r3005-6+b1: normalized package name match | Debian stable package indexes: moc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses based console audio player | https://moc.daper.net
- Debian apt - moc-ffmpeg-plugin - 1:2.6.0~svn-r3005-6+b1: normalized package name match | Debian stable package indexes: moc-ffmpeg-plugin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses based console audio player - ffmpeg plugin | https://moc.daper.net
- Nix - moc: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/moc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - moc - 1:2.6.0~svn-r3005-3.1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: moc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses based console audio player | https://moc.daper.net
- Ubuntu apt - moc-ffmpeg-plugin - 1:2.6.0~svn-r3005-3.1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: moc-ffmpeg-plugin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses based console audio player - ffmpeg plugin | https://moc.daper.net
- zypper - moc - 2.6.0~svn2994-8.4: normalized package name match | openSUSE Tumbleweed package metadata: moc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Console audio player | http://moc.daper.net/
- MacPorts - moc: normalized package name match | MacPorts ports tree: multimedia/moc/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/moc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/moc.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
