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

Terminal-based music player. Version 2.5.2 via Homebrew; verified 2026-08-03. Also installable with debian: sudo apt install moc.

## 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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-08-03T23:21:31-04:00
- **Generated:** 2026-08-04T22:13:35+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-08-04
- Package-manager version: 2.5.2
- Package-manager updated: 2026-08-03
- 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.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


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/brew-utility-packages/) - Matched Homebrew package provider.
- [ncurses](https://pkg.so/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/brew/libtool/) - Runtime dependency declared by Homebrew.
- [libsndfile](https://pkg.so/brew/libsndfile/) - Runtime dependency declared by Homebrew.
- [flac](https://pkg.so/brew/flac/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/brew/gettext/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/brew/pkgconf/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/brew/automake/) - Build dependency declared by Homebrew.
- [kew](https://pkg.so/brew/kew/) - Shares pkgdb curated category or tags: audio, cli, media, music-player, terminal.
- [cmus](https://pkg.so/brew/cmus/) - Shares pkgdb curated category or tags: audio, cli, console, media, music-player.
- [mpd](https://pkg.so/brew/mpd/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [rmpc](https://pkg.so/brew/rmpc/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [pianobar](https://pkg.so/brew/pianobar/) - Shares pkgdb curated category or tags: cli, media, music-player, terminal.
- [mikmod](https://pkg.so/brew/mikmod/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [audacious](https://pkg.so/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/mxcl/pkgdb/blob/main/combined/moc.yml)


## Sources

- 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
