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

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

## 安装

```sh
sudo av install brew:libsndfile
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libsndfile
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libsndfile
```

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

### Linux

- apk (92%):

```sh
sudo apk add libsndfile
```

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

- dnf (92%):

```sh
sudo dnf install libsndfile
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libsndfile
```

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

- pacman (92%):

```sh
sudo pacman -S libsndfile
```

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

- Debian apt (92%):

```sh
sudo apt install libsndfile1
```

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

- zypper (92%):

```sh
sudo zypper install libsndfile-devel
```

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

### Windows

- Chocolatey (92%):

```sh
choco install libsndfile
```

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

- Scoop (92%):

```sh
scoop install extras/libsndfile
```

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

## 软件包事实

- **软件包键:** brew:libsndfile
- **软件包管理器:** Homebrew
- **版本:** 1.2.2
- **来源摘要:** C library for files containing sampled sound
- **主页:** <https://libsndfile.github.io/libsndfile/>
- **仓库:** <https://github.com/libsndfile/libsndfile>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sndfile-cmp (别名)
- sndfile-concat (别名)
- sndfile-convert (别名)
- sndfile-deinterleave (别名)
- sndfile-info (别名)
- sndfile-interleave (别名)
- sndfile-metadata-get (别名)
- sndfile-metadata-set (别名)
- sndfile-play (别名)
- sndfile-salvage (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.2.2
## 项目历史与用法

libsndfile is a long-running C library for reading and writing sampled-sound files through one API. Its package-manager importance comes from hiding the format, endian, and sample-width details of WAV, AIFF, AU, FLAC, Ogg/Vorbis, CAF, and other audio containers behind a small LGPL library and a set of command-line inspection/conversion tools.

### 项目历史

Erik de Castro Lopo developed libsndfile and published its original project site at mega-nerd.com. The project's release history records version 0.0.8 on February 15, 1999 as the first official release, version 1.0.0 on August 16, 2002 as the first stable 1.0 release, and later additions such as FLAC and CAF support in 2005 and Ogg/Vorbis support in 2009.

The GitHub README records that de Castro Lopo originally developed and maintained the project and that, after version 1.0.30, maintenance moved to the libsndfile team under the canonical GitHub organization.

### 采用历史

libsndfile became common infrastructure in Unix audio stacks because it solved a narrow but persistent portability problem: reading and writing many sampled-audio file formats without each application carrying its own parsers. Its availability across Homebrew, Debian, Fedora, Arch, Nix, MacPorts, Windows package channels, and other ecosystems reflects that library role.

### 使用方式

Developers link against the C API or use the bundled tools such as sndfile-info, sndfile-convert, sndfile-play, and metadata utilities. The package is especially useful in audio editors, batch conversion scripts, test pipelines, and DSP programs that need predictable PCM access across multiple container formats.

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

Package maintainers care about libsndfile because it sits below many higher-level audio applications and has a security-sensitive parser surface. Its release notes include multiple CVE and malformed-file fixes, so distributions tend to track it as a foundational media library rather than as an optional end-user tool.

### 时间线

- 1999-02-15: Version 0.0.8 marked the first official release.
- 2002-08-16: Version 1.0.0 became the first 1.0.x release.
- 2005-09-30: Version 1.0.12 added FLAC, Apple's CAF, and virtual I/O support.
- 2009-02-07: Version 1.0.18 added Ogg/Vorbis support and Windows binaries.
- 2020-09-19: Version 1.0.30 preceded the transfer of maintenance to the libsndfile team described in the GitHub README.

### Related projects

- SoX is a related command-line sound conversion project named by the original libsndfile site.
- libaudiofile is named by the original libsndfile site as a similar library with a different programming interface.
- libsamplerate is a related Erik de Castro Lopo audio library often packaged near libsndfile, but it solves sample-rate conversion rather than file parsing.

### 来源

- <http://www.mega-nerd.com/libsndfile/>
- <http://www.mega-nerd.com/libsndfile/NEWS>
- <https://github.com/libsndfile/libsndfile>
- <https://github.com/libsndfile/libsndfile/releases>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - libsndfile1 - 1.2.2-2+deb13u1: normalized package name match | Debian stable package indexes: libsndfile1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for reading/writing audio files | https://libsndfile.github.io/libsndfile/
- Debian apt - libsndfile1-dev - 1.2.2-2+deb13u1: normalized package name match | Debian stable package indexes: libsndfile1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libsndfile; a library for reading/writing audio files | https://libsndfile.github.io/libsndfile/
- Debian apt - sndfile-programs - 1.2.2-2+deb13u1: normalized package name match | Debian stable package indexes: sndfile-programs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sample programs that use libsndfile | https://libsndfile.github.io/libsndfile/
- Nix - libsndfile: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libsndfile/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsndfile1 - 1.2.2-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: libsndfile1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Library for reading/writing audio files | http://www.mega-nerd.com/libsndfile/
- Ubuntu apt - libsndfile1-dev - 1.2.2-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: libsndfile1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libsndfile; a library for reading/writing audio files | http://www.mega-nerd.com/libsndfile/
- Ubuntu apt - sndfile-programs - 1.2.2-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: sndfile-programs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Sample programs that use libsndfile | http://www.mega-nerd.com/libsndfile/
- apk - libsndfile - 1.2.2-r3: normalized package name match | Alpine Linux edge package indexes: libsndfile from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library for reading and writing files containing sampled sound | https://libsndfile.github.io/libsndfile/
- apk - libsndfile-dev - 1.2.2-r3: normalized package name match | Alpine Linux edge package indexes: libsndfile-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library for reading and writing files containing sampled sound (development files) | https://libsndfile.github.io/libsndfile/
- apk - libsndfile-doc - 1.2.2-r3: normalized package name match | Alpine Linux edge package indexes: libsndfile-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library for reading and writing files containing sampled sound (documentation) | https://libsndfile.github.io/libsndfile/
- apk - libsndfile-static - 1.2.2-r3: normalized package name match | Alpine Linux edge package indexes: libsndfile-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library for reading and writing files containing sampled sound (static library) | https://libsndfile.github.io/libsndfile/
- dnf - libsndfile - 1.2.2-12.fc45: normalized package name match | Fedora Rawhide package metadata: libsndfile from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for reading and writing sound files | http://libsndfile.github.io/libsndfile/
- dnf - libsndfile-devel - 1.2.2-12.fc45: normalized package name match | Fedora Rawhide package metadata: libsndfile-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libsndfile | http://libsndfile.github.io/libsndfile/
- dnf - libsndfile-utils - 1.2.2-12.fc45: normalized package name match | Fedora Rawhide package metadata: libsndfile-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command Line Utilities for libsndfile | http://libsndfile.github.io/libsndfile/
- pacman - libsndfile - 1.2.2-4: normalized package name match | Arch Linux sync databases: libsndfile from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A C library for reading and writing files containing sampled audio data | https://libsndfile.github.io/libsndfile/
- zypper - libsndfile-devel - 1.2.2-5.3: normalized package name match | openSUSE Tumbleweed package metadata: libsndfile-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development package for the libsndfile library | https://libsndfile.github.io/libsndfile/


## Combined YAML source

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


## 来源

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