# Install libsndfile with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

C library for files containing sampled sound. Version 1.2.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libsndfile
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libsndfile
```

  Evidence: 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
```

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

- Debian apt (92%):

```sh
sudo apt install libsndfile1
```

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

- dnf (92%):

```sh
sudo dnf install libsndfile
```

  Evidence: Fedora Rawhide package metadata: libsndfile 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#libsndfile
```

  Evidence: 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
```

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: libsndfile-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install libsndfile
```

  Evidence: Chocolatey community package catalog: libsndfile from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4623995','rufus.portable'

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:libsndfile
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libsndfile>
- **Version:** 1.2.2
- **Source summary:** C library for files containing sampled sound
- **Homepage:** <https://libsndfile.github.io/libsndfile/>
- **Repository:** <https://github.com/libsndfile/libsndfile>
- **Upstream docs:** <https://libsndfile.github.io/libsndfile>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sndfile-cmp (cli)
- sndfile-concat (cli)
- sndfile-convert (cli)
- sndfile-deinterleave (cli)
- sndfile-info (cli)
- sndfile-interleave (cli)
- sndfile-metadata-get (cli)
- sndfile-metadata-set (cli)
- sndfile-play (cli)
- sndfile-salvage (cli)
- sndfile-cmp (alias)
- sndfile-concat (alias)
- sndfile-convert (alias)
- sndfile-deinterleave (alias)
- sndfile-info (alias)
- sndfile-interleave (alias)
- sndfile-metadata-get (alias)
- sndfile-metadata-set (alias)
- sndfile-play (alias)
- sndfile-salvage (alias)

## Dependencies

- flac
- lame
- libogg
- libvorbis
- mpg123
- opus

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.2
- Local data: ok
- Upstream repository: https://github.com/libsndfile/libsndfile
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-r2: 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-r2: 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-r2: 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-r2: 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-11.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Library for reading and writing sound files | http://libsndfile.github.io/libsndfile/
- dnf - libsndfile-devel - 1.2.2-11.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libsndfile | http://libsndfile.github.io/libsndfile/
- dnf - libsndfile-utils - 1.2.2-11.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.1: normalized package name match | openSUSE Tumbleweed package metadata: libsndfile-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development package for the libsndfile library | https://libsndfile.github.io/libsndfile/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [flac](https://www.automicvault.com/pkg/brew/flac/) - Runtime dependency declared by Homebrew.
- [lame](https://www.automicvault.com/pkg/brew/lame/) - Runtime dependency declared by Homebrew.
- [mpg123](https://www.automicvault.com/pkg/brew/mpg123/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [aubio](https://www.automicvault.com/pkg/brew/aubio/) - Popular package that depends on this formula.
- [audacious](https://www.automicvault.com/pkg/brew/audacious/) - Popular package that depends on this formula.
- [audiowaveform](https://www.automicvault.com/pkg/brew/audiowaveform/) - Popular package that depends on this formula.
- [carla](https://www.automicvault.com/pkg/brew/carla/) - Popular package that depends on this formula.
- [csound](https://www.automicvault.com/pkg/brew/csound/) - Popular package that depends on this formula.
- [dirt](https://www.automicvault.com/pkg/brew/dirt/) - Popular package that depends on this formula.
- [dsda-doom](https://www.automicvault.com/pkg/brew/dsda-doom/) - Popular package that depends on this formula.
- [easyrpg-player](https://www.automicvault.com/pkg/brew/easyrpg-player/) - Popular package that depends on this formula.
- [normalize](https://www.automicvault.com/pkg/brew/normalize/) - Shares av.db curated category or tags: audio, cli, media, wav.
- [shntool](https://www.automicvault.com/pkg/brew/shntool/) - Shares av.db curated category or tags: audio, cli, media, wav.
- [abcde](https://www.automicvault.com/pkg/brew/abcde/) - Shares av.db curated category or tags: audio, cli, media.
- [adplay](https://www.automicvault.com/pkg/brew/adplay/) - Shares av.db curated category or tags: audio, cli, media.
- [adplug](https://www.automicvault.com/pkg/brew/adplug/) - Shares av.db curated category or tags: audio, cli, media.
- [aften](https://www.automicvault.com/pkg/brew/aften/) - Shares av.db curated category or tags: audio, cli, media.
- [alsa-lib](https://www.automicvault.com/pkg/brew/alsa-lib/) - Shares av.db curated category or tags: audio, cli, media.
- [bandcamp-dl](https://www.automicvault.com/pkg/brew/bandcamp-dl/) - Shares av.db curated category or tags: audio, cli, media.
- [mpd](https://www.automicvault.com/pkg/brew/mpd/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, flac, lame, libogg.
- [snapcast](https://www.automicvault.com/pkg/brew/snapcast/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, flac, libogg, libvorbis.

## Combined YAML source

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


## Sources

- 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
