# Install moc with Homebrew, apt, MacPorts, Nix, zypper

Terminal-based music player. Version 2.5.2 via Homebrew; verified 2026-06-19.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install moc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install moc
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: moc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:moc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/moc>
- **Version:** 2.5.2
- **Source summary:** Terminal-based music player
- **Homepage:** <https://moc.daper.net/>
- **Upstream docs:** <https://moc.daper.net/>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://ftp.daper.net/pub/soft/moc/stable/moc-2.5.2.tar.bz2>
- **Last updated:** 2026-06-19T12:32:39-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mocp (cli)
- mocp (alias)

## Dependencies

- berkeley-db@5
- ffmpeg@4
- flac
- jack
- libmodplug
- libogg
- libsamplerate
- libsndfile
- libtool
- libvorbis
- ncurses
- speex

## Build dependencies

- autoconf
- automake
- gettext
- pkgconf

## Install behavior

- Post-install hook: not defined
- Caveats: You must start the jack daemon prior to running mocp.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.2
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://moc.daper.net/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** moc
- **Version Scheme:** 0
- **Revision:** 10
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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.2: normalized package name match | openSUSE Tumbleweed package metadata: moc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [ffmpeg@4](https://www.automicvault.com/pkg/brew/ffmpeg-4/) - Runtime dependency declared by Homebrew.
- [flac](https://www.automicvault.com/pkg/brew/flac/) - Runtime dependency declared by Homebrew.
- [jack](https://www.automicvault.com/pkg/brew/jack/) - Runtime dependency declared by Homebrew.
- [libsndfile](https://www.automicvault.com/pkg/brew/libsndfile/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmus](https://www.automicvault.com/pkg/brew/cmus/) - Shares av.db curated category or tags: audio, cli, console, media, music-player.
- [kew](https://www.automicvault.com/pkg/brew/kew/) - Shares av.db curated category or tags: audio, cli, media, music-player, terminal.
- [vimpc](https://www.automicvault.com/pkg/brew/vimpc/) - Shares av.db curated category or tags: audio, cli, media, music-player.
- [adplay](https://www.automicvault.com/pkg/brew/adplay/) - Shares av.db curated category or tags: audio, cli, media, music-player.
- [cava](https://www.automicvault.com/pkg/brew/cava/) - Shares av.db curated category or tags: audio, cli, media, terminal.
- [mikmod](https://www.automicvault.com/pkg/brew/mikmod/) - Shares av.db curated category or tags: audio, cli, media, music-player.
- [mpd](https://www.automicvault.com/pkg/brew/mpd/) - Shares av.db curated category or tags: audio, cli, media, music-player.
- [pianobar](https://www.automicvault.com/pkg/brew/pianobar/) - Shares av.db curated category or tags: cli, media, music-player, terminal.
- [audacious](https://www.automicvault.com/pkg/brew/audacious/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, ffmpeg, flac, libmodplug.

## Combined YAML source

View the package source record on GitHub. [combined/moc.yml](https://github.com/automic-vault/db/blob/main/combined/moc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
