# 使用 Homebrew, apt 安装 mpg321

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

## 安装

```sh
sudo av install brew:mpg321
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mpg321
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mpg321
```

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

## 软件包事实

- **软件包键:** brew:mpg321
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mpg321>
- **版本:** 0.3.2
- **来源摘要:** Command-line MP3 player
- **主页:** <https://mpg321.sourceforge.net/>
- **上游文档:** <https://mpg321.sourceforge.net/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/mpg321/mpg321/0.3.2/mpg321_0.3.2.orig.tar.gz>
- **最后更新:** 2026-06-19T12:32:40-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mpg321 (cli)
- mpg321 (别名)

## 依赖

- libao
- libid3tag
- mad

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.2
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://mpg321.sourceforge.net/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

mpg321 is a GPL command-line MP3 player created as a free replacement for mpg123. Its homepage credits Joe Drew as the person who conceived and wrote the project, notes that it uses code from Rob Leslie's MAD distribution, XMMS, and plaympeg from SMPEG, and lists Nanakos Chrysostomos as maintainer for the later SourceForge-hosted releases.

### 项目历史

The tool was designed to behave like mpg123 for front ends, scripts, and software that shell out to an MP3 decoder. That compatibility goal made it especially useful for package distributions and desktop front ends during the era when mpg123's licensing caused friction: mpg321 could play MP3 files, serve as a backend for other applications, and decode MP3 to WAV for CD-recording workflows while relying on the integer-only MAD decoder.

### 使用方式

Its package-manager niche is narrow but clear: a small mpg123-compatible player rather than a general multimedia framework. Debian and Homebrew package it under its own name, and Debian describes it as a clone intended to function as a drop-in replacement in many cases, with some mpg123 functionality left unimplemented.

### 来源

- <https://formulae.brew.sh/formula/mpg321>
- <https://linux.die.net/man/1/mpg321>
- <https://mpg321.sourceforge.net/>
- <https://packages.debian.org/sid/mpg321>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - mpg321 - 0.3.2-4: normalized package name match | Debian stable package indexes: mpg321 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple and lightweight command line MP3 player | https://mpg321.sourceforge.net
- Ubuntu apt - mpg321 - 0.3.2-3.3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mpg321 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple and lightweight command line MP3 player | http://mpg321.sourceforge.net


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [mpg123](https://pkg.so/zh-hans/brew/mpg123/) - Package name indicates the same formula family.
- [lame](https://pkg.so/zh-hans/brew/lame/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [kew](https://pkg.so/zh-hans/brew/kew/) - Shares pkgdb curated category or tags: audio, audio-player, cli, media.
- [easy-tag](https://pkg.so/zh-hans/brew/easy-tag/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [abcde](https://pkg.so/zh-hans/brew/abcde/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [ocp](https://pkg.so/zh-hans/brew/ocp/) - Shares pkgdb curated category or tags: audio, audio-player, cli, media.
- [mp3gain](https://pkg.so/zh-hans/brew/mp3gain/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [mp3splt](https://pkg.so/zh-hans/brew/mp3splt/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [mp3val](https://pkg.so/zh-hans/brew/mp3val/) - Shares pkgdb curated category or tags: audio, cli, media, mp3.
- [flac123](https://pkg.so/zh-hans/brew/flac123/) - Both packages work with overlapping file formats or content types. Shared terms: audio, audio-player, cli, command-line, libao.

## Combined YAML source

View the package source record on GitHub. [combined/mpg321.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mpg321.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
