# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper 安装 opus-tools

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

## 安装

```sh
sudo av install brew:opus-tools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install opus-tools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install opus-tools
```

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

### Linux

- apk (92%):

```sh
sudo apk add opus-tools
```

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

- Debian apt (92%):

```sh
sudo apt install opus-tools
```

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

- dnf (92%):

```sh
sudo dnf install opus-tools
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#opus-tools
```

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

- pacman (92%):

```sh
sudo pacman -S opus-tools
```

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

- zypper (92%):

```sh
sudo zypper install opus-tools
```

  证据: openSUSE Tumbleweed package metadata: opus-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/opus-tools
```

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

- winget (92%):

```sh
winget install --id Mozilla.opus-tools -e
```

  证据: Windows Package Manager source index: Mozilla.opus-tools from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:opus-tools
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/opus-tools>
- **版本:** 0.2
- **来源摘要:** Utilities to encode, inspect, and decode .opus files
- **主页:** <https://www.opus-codec.org/>
- **仓库:** <https://gitlab.xiph.org/xiph/opus-tools>
- **上游文档:** <https://opus-codec.org/development>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://ftp.osuosl.org/pub/xiph/releases/opus/opus-tools-0.2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- opusdec (cli)
- opusenc (cli)
- opusinfo (cli)
- opusdec (别名)
- opusenc (别名)
- opusinfo (别名)

## 依赖

- flac
- libogg
- libopusenc
- opus
- opusfile

## 构建依赖

- pkgconf

## 安装行为

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

## 版本和新鲜度

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

opus-tools is the Xiph.Org command-line toolkit for Ogg Opus files. The familiar executables are `opusenc` for encoding, `opusdec` for decoding, and `opusinfo` for inspecting stream metadata and technical validity.

### 项目历史

The package grew out of the Opus codec standardization effort. Opus was standardized by the IETF in RFC 6716 in September 2012 as a codec for interactive speech and audio, combining technology from Skype's SILK codec and Xiph.Org's CELT codec. The tools gave developers and distribution maintainers a direct way to create, decode, and inspect `.opus` files around the reference implementation.

Ogg Opus storage was standardized separately in RFC 7845 in April 2016. Xiph's implementation-status page records opusenc, opusdec, and opusinfo as the initial development implementation for that RFC, part of the opus-tools package and repository, with active public use before a 1.0 release and distribution through Linux package managers, Homebrew, and MacPorts.

The official Xiph GitLab project identifies the repository as the official Opus tools repository. Xiph's downloads page records opus-tools 0.2 on 2018-09-18, a release that moved `opusdec` to the opusfile library and `opusenc` to libopusenc, improving robust Ogg Opus reading and writing and adding features for decoding, encoding, opusinfo, and the experimental opusrtp tool.

### 采用历史

opus-tools rode the adoption curve of Opus itself: browser, WebRTC, media framework, and Linux-distribution support made Opus an everyday codec, while this package remained the low-level CLI companion for conversion, inspection, and test artifacts. The input metadata lists packaging across Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and openSUSE.

### 使用方式

`opusenc` is used to turn WAV, FLAC, and other audio inputs into Ogg Opus files; `opusdec` decodes Opus streams back to PCM/audio outputs; `opusinfo` reports stream structure, metadata, and conformance details. This makes the package useful in media pipelines, archival scripts, codec tests, and distribution build checks.

The package is especially important for Ogg Opus because RFC 7845 covers metadata, seeking, trimming, live streamability, chaining, and container behavior. Command-line tools let packagers and audio engineers inspect those details without embedding a whole player or media framework.

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

opus-tools is the thin CLI layer that turns a standards-track codec into packageable daily machinery. For package nerds, it marks the boundary between `libopus` as a codec library and Opus as a usable file format with encoders, decoders, inspectors, distro packages, and reproducible command-line workflows.

### 时间线

- 2012-09: RFC 6716 defines the Opus interactive speech and audio codec.
- 2016-04: RFC 7845 defines Ogg encapsulation for Opus audio.
- 2017-03-29: The Xiph GitLab page records the opus-tools project creation date.
- 2018-09-18: Xiph publishes opus-tools 0.2, moving the encoder and decoder onto libopusenc and opusfile.

### Related projects

- opus-tools is closely tied to libopus, libopusenc, opusfile, libogg, and the Ogg container. It is also related to media frameworks and players that implement Ogg Opus, including Firefox, Chromium, GStreamer, FFmpeg, VLC, Rockbox, and metadata libraries such as Mutagen.

### 来源

- <https://datatracker.ietf.org/doc/html/rfc6716>
- <https://datatracker.ietf.org/doc/html/rfc7845>
- <https://formulae.brew.sh/formula/opus-tools>
- <https://gitlab.xiph.org/xiph/opus-tools>
- <https://opus-codec.org/>
- <https://opus-codec.org/downloads/>
- <https://wiki.xiph.org/OggOpusImplementation>


## 安全说明

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:** opus-tools
- **Version Scheme:** 0
- **Revision:** 2
- **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 - opus-tools - 0.2-1+b3: normalized package name match | Debian stable package indexes: opus-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Opus codec command line tools | http://www.opus-codec.org
- Nix - opus-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/opus-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - opus-tools - 0.2-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: opus-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Opus codec command line tools | http://www.opus-codec.org
- apk - opus-tools - 0.2-r2: normalized package name match | Alpine Linux edge package indexes: opus-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Collection of tools for Opus audio codec | https://wiki.xiph.org/Opus-tools
- apk - opus-tools-doc - 0.2-r2: normalized package name match | Alpine Linux edge package indexes: opus-tools-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Collection of tools for Opus audio codec (documentation) | https://wiki.xiph.org/Opus-tools
- dnf - opus-tools - 0.2-20.fc44: normalized package name match | Fedora Rawhide package metadata: opus-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A set of tools for the opus audio codec | http://www.opus-codec.org/
- pacman - opus-tools - 0.2-7: normalized package name match | Arch Linux sync databases: opus-tools from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Collection of tools for Opus audio codec | https://wiki.xiph.org/Opus-tools
- zypper - opus-tools - 0.2-1.30: normalized package name match | openSUSE Tumbleweed package metadata: opus-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A set of tools for the opus audio codec | http://www.opus-codec.org/
- MacPorts - opus-tools: normalized package name match | MacPorts ports tree: audio/opus-tools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/opus-tools: normalized package name match | Scoop official bucket manifest trees: bucket/opus-tools.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Mozilla.opus-tools: normalized package name match | Windows Package Manager source index: Mozilla.opus-tools from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [flac](https://www.automicvault.com/zh-hans/pkg/brew/flac/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [abcde](https://www.automicvault.com/zh-hans/pkg/brew/abcde/) - Shares av.db curated category or tags: audio, cli, encoding, media.
- [libilbc](https://www.automicvault.com/zh-hans/pkg/brew/libilbc/) - Shares av.db curated category or tags: audio, audio-codec, cli, media.
- [adplay](https://www.automicvault.com/zh-hans/pkg/brew/adplay/) - Shares av.db curated category or tags: audio, cli, media.
- [adplug](https://www.automicvault.com/zh-hans/pkg/brew/adplug/) - Shares av.db curated category or tags: audio, cli, media.
- [aften](https://www.automicvault.com/zh-hans/pkg/brew/aften/) - Shares av.db curated category or tags: audio, cli, media.
- [alsa-lib](https://www.automicvault.com/zh-hans/pkg/brew/alsa-lib/) - Shares av.db curated category or tags: audio, cli, media.
- [bandcamp-dl](https://www.automicvault.com/zh-hans/pkg/brew/bandcamp-dl/) - Shares av.db curated category or tags: audio, cli, media.
- [carla](https://www.automicvault.com/zh-hans/pkg/brew/carla/) - Shares av.db curated category or tags: audio, cli, media.
- [icecast](https://www.automicvault.com/zh-hans/pkg/brew/icecast/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, libogg, media.
- [libshout](https://www.automicvault.com/zh-hans/pkg/brew/libshout/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, libogg, media.
- [speex](https://www.automicvault.com/zh-hans/pkg/brew/speex/) - Both packages work with overlapping file formats or content types. Shared terms: audio, audio-codec, cli, codec, libogg.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
