# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libopenmpt

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

## 安装

```sh
sudo av install brew:libopenmpt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libopenmpt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libopenmpt
```

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

### Linux

- apk (92%):

```sh
sudo apk add libopenmpt
```

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

- dnf (92%):

```sh
sudo dnf install libopenmpt
```

  证据: Fedora Rawhide package metadata: libopenmpt 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#libopenmpt
```

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

- pacman (92%):

```sh
sudo pacman -S libopenmpt
```

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

- Debian apt (92%):

```sh
sudo apt install libopenmpt-dev
```

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

- zypper (92%):

```sh
sudo zypper install libopenmpt-devel
```

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

## 软件包事实

- **软件包键:** brew:libopenmpt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libopenmpt>
- **版本:** 0.8.7
- **来源摘要:** Software library to decode tracked music files
- **主页:** <https://lib.openmpt.org/libopenmpt/>
- **上游文档:** <https://lib.openmpt.org/libopenmpt/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-0.8.7+release.autotools.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- openmpt123 (cli)
- openmpt123 (别名)

## 依赖

- flac
- libogg
- libsndfile
- libvorbis
- mpg123
- portaudio

## 构建依赖

- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.7
- 本地数据: OK
- 上游仓库: https://lib.openmpt.org/libopenmpt/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libopenmpt is a C++ and C library for decoding tracked music module files into raw PCM audio, plus the openmpt123 command-line player. It brings OpenMPT's module playback engine to Unix packages, media players, plugins, game tools, and language bindings.

### 项目历史

The project page says libopenmpt is based on the player code of OpenMPT, also known as Open ModPlug Tracker, and is developed in the same source repository to avoid code-base fragmentation. The first libopenmpt 0.2 beta release is dated 2013-12-31 in the official changelog.

The changelog shows rapid early work in 2014 and 2015 on Autotools packaging, Android and Emscripten builds, playback compatibility, C and C++ documentation, plugin support, and the openmpt123 command-line player. Later releases continued the pattern of format-loader fixes, security updates, build-system support, and compatibility with old tracker quirks.

### 采用历史

The OpenMPT wiki lists distribution packages for Alpine, Arch, Debian, Fedora, FreeBSD, Gentoo, Homebrew, MacPorts, MSYS2, NixOS, OpenBSD, Ubuntu, and other systems. That broad packaging reflects its role as the modern packaged decoder for tracker modules.

The same wiki lists software using libopenmpt across desktop players, plugins, media frameworks, streaming software, audio libraries, game engines, language bindings, websites, and games. Examples include Audacious, MPD, FFmpeg, GStreamer, Kodi-related plugins, SoLoud, and Sonic Robo Blast 2.

### 使用方式

End users get openmpt123 for terminal playback of module files. Developers use the C or C++ APIs to decode formats such as MOD, XM, S3M, IT, and many more tracker-derived formats into PCM audio.

The library also provides a libmodplug compatibility layer, which helps projects migrate from older module-decoding APIs while using OpenMPT playback behavior.

### 为什么软件包爱好者会关心

libopenmpt is significant because tracker music is a file-format archaeology problem: many formats came from different DOS, Amiga, Windows, game, and demoscene tools, and correct playback depends on preserving old quirks. Packaging one maintained decoder prevents every media player from relearning that history.

For package maintainers, it is also a useful example of a library that pairs a serious API with a small command-line tool, allowing both dependency use and quick terminal inspection or playback.

### 时间线

- 2013: Changelog records libopenmpt 0.2-beta1 as the first release on 2013-12-31.
- 2014: Changelog records Autotools tarballs, Emscripten work, plugin changes, and openmpt123 improvements across beta releases.
- 2015: Changelog records completed C and C++ documentation and additional platform/build support.
- 2016: Changelog records libopenmpt 0.2-beta17 with native MO3 support, dynamic-loading changes, and many playback fixes.
- 2025: Project news records libopenmpt 0.8.0 on 2025-05-31.
- 2026: Project news and changelog record libopenmpt 0.8.7 on 2026-05-17.

### Related projects

- OpenMPT, or Open ModPlug Tracker, is the source project whose player code underpins libopenmpt.
- libmodplug is an adjacent older module-decoding library; libopenmpt provides a compatibility layer for its interface.
- FFmpeg and GStreamer are major media-framework adopters listed by the OpenMPT wiki.
- XMPlay, Winamp, foobar2000, WACUP, and Kodi-related plugins represent the plugin ecosystem around module playback.

### 来源

- <https://formulae.brew.sh/formula/libopenmpt>
- <https://lib.openmpt.org/doc/changelog.html>
- <https://lib.openmpt.org/libopenmpt/>
- <https://source.openmpt.org/browse/openmpt/trunk>
- <https://wiki.openmpt.org/Libopenmpt>


## 安全说明

没有找到 libopenmpt 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- Debian apt - libopenmpt-dev - 0.7.13-1+b1: normalized package name match | Debian stable package indexes: libopenmpt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | module music library based on OpenMPT -- development files | https://lib.openmpt.org/libopenmpt/
- Debian apt - libopenmpt-doc - 0.7.13-1: normalized package name match | Debian stable package indexes: libopenmpt-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | module music library based on OpenMPT -- documentation | https://lib.openmpt.org/libopenmpt/
- Debian apt - libopenmpt0t64 - 0.7.13-1+b1: normalized package name match | Debian stable package indexes: libopenmpt0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | module music library based on OpenMPT -- shared library | https://lib.openmpt.org/libopenmpt/
- Debian apt - openmpt123 - 0.7.13-1+b1: normalized package name match | Debian stable package indexes: openmpt123 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | module music library based on OpenMPT -- music player | https://lib.openmpt.org/libopenmpt/
- Nix - libopenmpt: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libopenmpt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libopenmpt-dev - 0.7.3-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libopenmpt-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | module music library based on OpenMPT -- development files | https://lib.openmpt.org/libopenmpt/
- Ubuntu apt - libopenmpt-doc - 0.7.3-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libopenmpt-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | module music library based on OpenMPT -- documentation | https://lib.openmpt.org/libopenmpt/
- Ubuntu apt - libopenmpt0t64 - 0.7.3-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libopenmpt0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | module music library based on OpenMPT -- shared library | https://lib.openmpt.org/libopenmpt/
- Ubuntu apt - openmpt123 - 0.7.3-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: openmpt123 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | module music library based on OpenMPT -- music player | https://lib.openmpt.org/libopenmpt/
- apk - libopenmpt - 0.8.7-r1: normalized package name match | Alpine Linux edge package indexes: libopenmpt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross-platform library to render tracker music to a PCM audio stream | https://lib.openmpt.org/libopenmpt/
- apk - libopenmpt-dev - 0.8.7-r1: normalized package name match | Alpine Linux edge package indexes: libopenmpt-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross-platform library to render tracker music to a PCM audio stream (development files) | https://lib.openmpt.org/libopenmpt/
- apk - openmpt123 - 0.8.7-r1: normalized package name match | Alpine Linux edge package indexes: openmpt123 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line module file player | https://lib.openmpt.org/libopenmpt/
- apk - openmpt123-doc - 0.8.7-r1: normalized package name match | Alpine Linux edge package indexes: openmpt123-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross-platform library to render tracker music to a PCM audio stream (documentation) | https://lib.openmpt.org/libopenmpt/
- dnf - libopenmpt - 0.8.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: libopenmpt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | C/C++ library to decode tracker music module (MOD) files | https://lib.openmpt.org/libopenmpt/
- dnf - libopenmpt-devel - 0.8.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: libopenmpt-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for the libopenmpt library | https://lib.openmpt.org/libopenmpt/
- dnf - openmpt123 - 0.8.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: openmpt123 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command-line tracker music player based on libopenmpt | https://lib.openmpt.org/libopenmpt/


## 相关链接

- [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.
- [Package ecosystem packages](https://pkg.so/zh-hans/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [mpg123](https://pkg.so/zh-hans/brew/mpg123/) - Runtime dependency declared by Homebrew.
- [libsndfile](https://pkg.so/zh-hans/brew/libsndfile/) - Runtime dependency declared by Homebrew.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [audacious](https://pkg.so/zh-hans/brew/audacious/) - Popular package that depends on this formula.
- [scummvm](https://pkg.so/zh-hans/brew/scummvm/) - Popular package that depends on this formula.
- [musikcube](https://pkg.so/zh-hans/brew/musikcube/) - Popular package that depends on this formula.
- [mikmod](https://pkg.so/zh-hans/brew/mikmod/) - Shares pkgdb curated category or tags: audio, cli, media, tracker-music.
- [madplay](https://pkg.so/zh-hans/brew/madplay/) - Shares pkgdb curated category or tags: audio, cli, decoder, media.
- [alsa-lib](https://pkg.so/zh-hans/brew/alsa-lib/) - Shares pkgdb curated category or tags: audio, cli, media.
- [rubberband](https://pkg.so/zh-hans/brew/rubberband/) - Shares pkgdb curated category or tags: audio, cli, media.
- [pulseaudio](https://pkg.so/zh-hans/brew/pulseaudio/) - Shares pkgdb curated category or tags: audio, cli, media.
- [sox](https://pkg.so/zh-hans/brew/sox/) - Shares pkgdb curated category or tags: audio, cli, media.
- [ocp](https://pkg.so/zh-hans/brew/ocp/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, flac, libogg, libvorbis.
- [mpd](https://pkg.so/zh-hans/brew/mpd/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, flac, libogg, libsndfile.

## Combined YAML source

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