# Install libsoundio with Homebrew, apk, dnf, MacPorts, Nix, apt, zypper

Cross-platform audio input and output. Version 2.0.1-7 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libsoundio-dev.

## Install

```sh
sudo av install brew:libsoundio
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libsoundio
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libsoundio
```

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

### Linux

- apk (92%):

```sh
sudo apk add libsoundio
```

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

- dnf (92%):

```sh
sudo dnf install libsoundio
```

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

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

- Debian apt (92%):

```sh
sudo apt install libsoundio-dev
```

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

- zypper (92%):

```sh
sudo zypper install libsoundio-devel
```

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

## Package facts

- **Package key:** brew:libsoundio
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libsoundio>
- **Version:** 2.0.1-7
- **Source summary:** Cross-platform audio input and output
- **Homepage:** <http://libsound.io>
- **Repository:** <https://github.com/andrewrk/libsoundio>
- **Upstream docs:** <http://libsound.io>
- **License:** MIT
- **Source archive:** <https://github.com/andrewrk/libsoundio/archive/refs/tags/2.0.1-7.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- sio_list_devices (cli)
- sio_microphone (cli)
- sio_record (cli)
- sio_sine (cli)
- sio_list_devices (alias)
- sio_microphone (alias)
- sio_record (alias)
- sio_sine (alias)

## Build dependencies

- cmake

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.0.1-7
- Local data: ok
- Upstream repository: https://github.com/andrewrk/libsoundio
- Upstream latest detected: 2.0.1-7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

libsoundio is Andrew Kelley's small C library for cross-platform real-time audio input and output. It sits below applications that need a direct, backend-aware audio API without committing to JACK, PulseAudio, ALSA, CoreAudio, or WASAPI separately.

### Project history

The GitHub repository describes libsoundio as a C library suitable for real-time software such as digital audio workstations and for consumer software such as music players. Release-tag commit metadata shows version 1.0.0 on September 3, 2015 and version 2.0.0 on February 20, 2019.

### Adoption history

The project attracted packaging across Homebrew, Debian, Fedora, MacPorts, Nix, Alpine, and other Unix-like distributions because it offered a thin, MIT-licensed C abstraction over the main desktop audio backends.

### How it is used

Users link against libsoundio for real-time playback, capture, device enumeration, backend selection, channel layouts, and device-change events. The package also includes examples and utilities such as sio_list_devices, sio_sine, sio_microphone, and sio_record.

### Why package nerds care

libsoundio is a package-nerd library because it exposes the messy cross-platform audio boundary as one small C dependency. It is less historically central than libsndfile, but it is useful when applications want low-level audio I/O without bundling backend-specific code.

### Timeline

- 2015-09-03: Version 1.0.0 release-tag commit.
- 2019-02-20: Version 2.0.0 release-tag commit.
- 2019: The 2.0.0 documentation set became the referenced packaged API documentation surface.

### Related projects

- JACK, PulseAudio, ALSA, CoreAudio, and WASAPI are the backend APIs that libsoundio abstracts.
- Language bindings and wrapper packages use libsoundio as the native layer for higher-level ecosystems.

### Sources

- <http://libsound.io/>
- <http://libsound.io/doc-2.0.0>
- <https://api.github.com/repos/andrewrk/libsoundio/commits/1848add506ce053825da387e13458dda864e689b>
- <https://api.github.com/repos/andrewrk/libsoundio/commits/dc4f84339039ac518b6cd1c0e7683e88e25be470>
- <https://api.github.com/repos/andrewrk/libsoundio/tags?per_page=100>
- <https://github.com/andrewrk/libsoundio>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libsoundio
- **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

## Other Package-Manager Records

- Debian apt - libsoundio-dev - 2.0.0-2+b2: normalized package name match | Debian stable package indexes: libsoundio-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross platform audio input and output library (development files) | http://libsound.io/
- Debian apt - libsoundio2 - 2.0.0-2+b2: normalized package name match | Debian stable package indexes: libsoundio2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross-platform audio input and output library | http://libsound.io/
- Nix - libsoundio: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libsoundio/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsoundio-dev - 2.0.0-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsoundio-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cross platform audio input and output library (development files) | http://libsound.io/
- Ubuntu apt - libsoundio2 - 2.0.0-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsoundio2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cross-platform audio input and output library | http://libsound.io/
- apk - libsoundio - 2.0.0-r2: normalized package name match | Alpine Linux edge package indexes: libsoundio from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for cross-platform real-time audio input and output | http://libsound.io
- apk - libsoundio-dev - 2.0.0-r2: normalized package name match | Alpine Linux edge package indexes: libsoundio-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for cross-platform real-time audio input and output (development files) | http://libsound.io
- dnf - libsoundio - 2.0.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: libsoundio from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | C library for cross-platform real-time audio input and output | http://libsound.io/
- dnf - libsoundio-devel - 2.0.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: libsoundio-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libsoundio | http://libsound.io/
- dnf - libsoundio-doc - 2.0.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: libsoundio-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for libsoundio | http://libsound.io/
- dnf - libsoundio-utils - 2.0.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: libsoundio-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Utilities for libsoundio | http://libsound.io/
- zypper - libsoundio-devel - 2.0.0-1.21: normalized package name match | openSUSE Tumbleweed package metadata: libsoundio-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libsoundio | https://libsound.io/
- zypper - libsoundio2 - 2.0.0-1.21: normalized package name match | openSUSE Tumbleweed package metadata: libsoundio2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A C99 library for realtime audio input/output | https://libsound.io/
- MacPorts - libsoundio: normalized package name match | MacPorts ports tree: audio/libsoundio/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://pkg.so/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [cmake](https://pkg.so/brew/cmake/) - Build dependency declared by Homebrew.
- [libsndfile](https://pkg.so/brew/libsndfile/) - Shares pkgdb curated category or tags: audio, cli, media.
- [flac](https://pkg.so/brew/flac/) - Shares pkgdb curated category or tags: audio, cli, media.
- [alsa-lib](https://pkg.so/brew/alsa-lib/) - Shares pkgdb curated category or tags: audio, cli, media.
- [rubberband](https://pkg.so/brew/rubberband/) - Shares pkgdb curated category or tags: audio, cli, media.
- [pulseaudio](https://pkg.so/brew/pulseaudio/) - Shares pkgdb curated category or tags: audio, cli, media.
- [sox](https://pkg.so/brew/sox/) - Shares pkgdb curated category or tags: audio, cli, media.
- [ladspa-sdk](https://pkg.so/brew/ladspa-sdk/) - Shares pkgdb curated category or tags: audio, cli, media.
- [mpd](https://pkg.so/brew/mpd/) - Shares pkgdb curated category or tags: audio, cli, media.
- [asak](https://pkg.so/brew/asak/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, cross, cross-platform, media.
- [freealut](https://pkg.so/brew/freealut/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, cross, cross-platform, media.

## Combined YAML source

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


## Sources

- 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
