# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 mpd

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

## 安装

```sh
sudo av install brew:mpd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mpd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mpd
```

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

### Linux

- apk (92%):

```sh
sudo apk add mpd
```

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

- Debian apt (92%):

```sh
sudo apt install mpd
```

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

- dnf (92%):

```sh
sudo dnf install mpd
```

  证据: Fedora Rawhide package metadata: mpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mpd
```

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

- pacman (92%):

```sh
sudo pacman -S mpd
```

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

- zypper (92%):

```sh
sudo zypper install mpd
```

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

### Windows

- Chocolatey (92%):

```sh
choco install mpd
```

  证据: Chocolatey community package catalog: mpd from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.7216','memprofiler'

- Scoop (92%):

```sh
scoop install main/mpd
```

  证据: Scoop official bucket manifest trees: bucket/mpd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mpd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mpd>
- **版本:** 0.24.13
- **来源摘要:** Music Player Daemon
- **主页:** <https://www.musicpd.org/>
- **仓库:** <https://github.com/MusicPlayerDaemon/MPD>
- **上游文档:** <https://www.musicpd.org/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.24.13.tar.gz>
- **最后更新:** 2026-07-10T13:51:00Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mpd (cli)
- mpd (别名)

## 依赖

- chromaprint
- faad2
- ffmpeg
- flac
- fluid-synth
- fmt
- game-music-emu
- icu4c@78
- lame
- libao
- libid3tag
- libmikmod
- libmpdclient
- libnfs
- libnpupnp
- libogg
- libsamplerate
- libshout
- libsndfile
- libsoxr
- libvorbis
- mpg123
- opus
- pcre2
- sqlite
- wavpack

## 构建依赖

- meson
- ninja
- nlohmann-json
- pkgconf

## macOS 提供的库

- bzip2
- curl
- expat

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: MPD requires a config file to start. Please copy it from $HOMEBREW_PREFIX/etc/mpd/mpd.conf into one of these paths: - ~/.mpd/mpd.conf - ~/.mpdconf and tailor it to your needs.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

Music Player Daemon is a free software music server that appeared in 2003 and is associated with Max Kellermann and The Music Player Daemon Project. The project describes MPD as a flexible, powerful, server-side application for playing music, controlled through its network protocol and extended through plugins and libraries for many audio formats. The project AUTHORS file credits a broad contributor base around the daemon.

### 项目历史

MPD's defining technical milestone is its separation of playback from control. The daemon runs in the background, maintains a music database and playlist, and lets separate clients manipulate playback, browse the database, or automate it over the protocol. That model made it attractive for headless machines, remote control, hotkey scripts, terminal front ends, web clients, and embedded audio setups. The MPD documentation presents mpc as the basic CLI client, while the wider ecosystem includes richer terminal, graphical, mobile, and web clients.

### 采用历史

Adoption spread beyond hobbyist Unix desktops into commercial audio hardware. The MPD project maintains a list of commercial products known to use MPD as a backend and frames that adoption through the GPL obligations attached to shipping modified GPL components. In package managers, MPD is the central server package that related packages orbit around: mpc controls it, mpdscribble and mpdas listen to its playback state for scrobbling, and client libraries expose the protocol to other programs.

### 使用方式

In practice, users configure mpd.conf, point MPD at a music directory or streams, choose audio outputs, and control it from clients. Its niche is not an all-in-one player interface, but a long-running playback service for people who want the player decoupled from the interface.

### 来源

- <https://en.wikipedia.org/wiki/Music_Player_Daemon>
- <https://github.com/MusicPlayerDaemon/MPD>
- <https://mpd.readthedocs.io/en/stable/user.html>
- <https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/master/AUTHORS>
- <https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/master/NEWS>
- <https://www.musicpd.org/>
- <https://www.musicpd.org/commercial.html>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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/mpd/mpd.conf, ~/.config/mpd/mpd.conf, /etc/mpd.conf

## Credential files

- Unix: $XDG_CONFIG_HOME/mpd/mpd.conf, ~/.config/mpd/mpd.conf, /etc/mpd.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mpd
- **Version Scheme:** 0
- **Revision:** 0
- **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 - mpd - 0.24.4-1: normalized package name match | Debian stable package indexes: mpd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Music Player Daemon | https://www.musicpd.org/
- Nix - mpd: normalized package name match | nixpkgs package indexes: pkgs/by-name/mp/mpd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mpd - 0.23.14-2build5: normalized package name match | Ubuntu 24.04 LTS package indexes: mpd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Music Player Daemon | https://www.musicpd.org/
- apk - mpd - 0.24.13-r1: normalized package name match | Alpine Linux edge package indexes: mpd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs | https://musicpd.org/
- apk - mpd-dbg - 0.24.13-r1: normalized package name match | Alpine Linux edge package indexes: mpd-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs (debug symbols) | https://musicpd.org/
- apk - mpd-doc - 0.24.13-r1: normalized package name match | Alpine Linux edge package indexes: mpd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs (documentation) | https://musicpd.org/
- apk - mpd-openrc - 0.24.13-r1: normalized package name match | Alpine Linux edge package indexes: mpd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs (OpenRC init scripts) | https://musicpd.org/
- dnf - mpd - 0.24.13-3.fc45: normalized package name match | Fedora Rawhide package metadata: mpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Music player daemon | https://www.musicpd.org/
- pacman - mpd - 0.24.13-1: normalized package name match | Arch Linux sync databases: mpd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Flexible, powerful, server-side application for playing music | https://www.musicpd.org/
- zypper - mpd - 0.24.13-1.2: normalized package name match | openSUSE Tumbleweed package metadata: mpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Music Player Daemon | https://musicpd.org
- zypper - mpd-doc - 0.24.13-1.2: normalized package name match | openSUSE Tumbleweed package metadata: mpd-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Additional Package Documentation | https://musicpd.org
- MacPorts - mpd: normalized package name match | MacPorts ports tree: audio/mpd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - mpd: normalized package name match | Chocolatey community package catalog: mpd from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.7216','memprofiler'
- Scoop - main/mpd: normalized package name match | Scoop official bucket manifest trees: bucket/mpd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Runtime dependency declared by Homebrew.
- [mpg123](https://pkg.so/zh-hans/brew/mpg123/) - Runtime dependency declared by Homebrew.
- [lame](https://pkg.so/zh-hans/brew/lame/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [rmpc](https://pkg.so/zh-hans/brew/rmpc/) - Shares pkgdb curated category or tags: audio, cli, media, mpd, music-player.
- [mpc](https://pkg.so/zh-hans/brew/mpc/) - Shares pkgdb curated category or tags: audio, cli, media, mpd.
- [moc](https://pkg.so/zh-hans/brew/moc/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [mpdscribble](https://pkg.so/zh-hans/brew/mpdscribble/) - Shares pkgdb curated category or tags: audio, cli, media, mpd.
- [mikmod](https://pkg.so/zh-hans/brew/mikmod/) - Shares pkgdb curated category or tags: audio, cli, media, music-player.
- [mpdas](https://pkg.so/zh-hans/brew/mpdas/) - Shares pkgdb curated category or tags: audio, cli, media, mpd.
- [libsndfile](https://pkg.so/zh-hans/brew/libsndfile/) - Shares pkgdb curated category or tags: audio, cli, media.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Shares pkgdb curated category or tags: audio, cli, media.
- [audacious](https://pkg.so/zh-hans/brew/audacious/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, faad2, ffmpeg, flac.
- [musikcube](https://pkg.so/zh-hans/brew/musikcube/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, emu, ffmpeg, game.
- [cmus](https://pkg.so/zh-hans/brew/cmus/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, faad2, ffmpeg, flac.

## Combined YAML source

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