Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, Nix, pacman, apt, zypper 安装 alsa-lib

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install alsa-lib

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add alsa-lib

Alpine Linux edge package indexes · alsa-lib · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install alsa-lib

Fedora Rawhide package metadata · alsa-lib · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#alsa-lib

nixpkgs package indexes · pkgs/by-name/al/alsa-lib/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S alsa-lib

Arch Linux sync databases · alsa-lib · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libasound2-data

Debian stable package indexes · libasound2-data · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install libasound2

openSUSE Tumbleweed package metadata · libasound2 · 来源: download.opensuse.org

概览

软件包摘要

Provides audio and MIDI functionality to the Linux operating system

命令和别名

  • aserver

历史

项目历史与用法

alsa-lib is the user-space C library for the Advanced Linux Sound Architecture, the Linux audio and MIDI stack normally abbreviated ALSA. It is the layer that lets applications talk to the ALSA kernel API through a stable library API, while adding higher-level helpers, plugin support, and configuration machinery that would be awkward for each application to implement directly.

项目历史

The ALSA project was founded by Jaroslav Kysela and grew around the goal of replacing and extending the older Open Sound System model on Linux. Official ALSA documentation describes ALSA as providing audio and MIDI functionality for Linux, with modular drivers, SMP/thread-safe design, OSS compatibility, and a user-space library named alsa-lib to simplify application programming.

alsa-lib became one of the core split-out ALSA components alongside the kernel driver code, alsa-utils, alsa-tools, and later configuration packages such as alsa-ucm-conf. The official library reference credits Jaroslav Kysela, Abramo Bagnara, Takashi Iwai, and Frank van de Pol as authors and describes the library API as the preferred interface for application programmers rather than using the kernel API directly.

采用历史

The ALSA introduction notes that ALSA driver code was included in Linux 2.6, which made the ALSA stack the default assumption for most Linux desktop, embedded, and pro-audio packaging. As a result, alsa-lib became a dependency that package maintainers encounter indirectly through audio applications, desktop environments, media players, sound servers, MIDI tools, and compatibility layers.

The library continues to be released as a separately versioned package. The ALSA project news and git history show coordinated alsa-lib releases with related ALSA components, including the 1.2.16 and 1.2.16.1 releases in June 2026.

使用方式

Developers use alsa-lib for PCM audio, mixer controls, sequencer, raw MIDI, timers, topology, and use-case manager APIs. End users usually meet it through configuration files rather than by invoking it directly: system defaults are loaded through alsa.conf and per-machine or per-user overrides are commonly placed in asound.conf or .asoundrc files.

The source configuration file loads system and user configuration snippets from locations such as /etc/asound.conf, ~/.asoundrc, and $XDG_CONFIG_HOME/alsa/asoundrc, which explains why distribution packaging and local audio troubleshooting often revolve around these paths.

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

For package people, alsa-lib is plumbing with a very large reverse-dependency shadow. It is small enough to look like a library package, but central enough that ABI, plugin paths, default configuration, UCM data, and cross-distro path choices can affect whole desktops and audio stacks.

It also matters historically because it marks the Unix audio transition from OSS compatibility toward the ALSA model that PulseAudio, JACK bridges, PipeWire compatibility layers, and many direct audio applications have had to understand.

时间线

  • 2003: ALSA driver code is included in Linux 2.6.
  • 2018: The alsa-project/alsa-lib GitHub repository is created as an official source mirror/development surface.
  • 2026-06-01: ALSA releases alsa-lib 1.2.16 with related ALSA components.
  • 2026-06-12: ALSA releases alsa-lib 1.2.16.1.

Related projects

  • alsa-utils provides command-line tools such as aplay, arecord, alsamixer, and alsactl that sit beside alsa-lib in most distributions.
  • alsa-ucm-conf and alsa-topology-conf carry machine and DSP configuration data consumed through alsa-lib interfaces.
  • PipeWire, PulseAudio, JACK, media players, and many native Linux audio applications depend on ALSA compatibility or direct ALSA access.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:audio,server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 2 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Linux
/usr/share/alsa/alsa.conf/etc/asound.conf~/.asoundrc~/.config/alsa/asoundrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
aservercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.2.16.1
管理器更新时间2026-06-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.alsa-project.org/

安装元数据

软件包元数据

软件包键brew:alsa-lib
版本1.2.16.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/alsa-lib
主页https://www.alsa-project.org/
仓库https://github.com/alsa-project/alsa-lib
上游文档https://www.alsa-project.org/alsa-doc/alsa-lib
许可证LGPL-2.1-or-later AND GPL-2.0-or-later
源码归档https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.16.1.tar.bz2
最后更新2026-06-14T23:50:54Z
Pulseupdated
Bottle可用 (于 arm64_linux, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namealsa-lib
Version Scheme0
Revision0
Requirements
  • linux
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libasound2-data 1.2.14-1

Configuration files and profiles for ALSA drivers

https://www.alsa-project.org/

sudo apt install libasound2-data
  • Section: libs
  • Architecture: all
  • Source Package: alsa-lib
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasound2-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libasound2-dev 1.2.14-1

shared library for ALSA applications -- development files

https://www.alsa-project.org/

sudo apt install libasound2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: alsa-lib
  • 1 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasound2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libasound2-doc 1.2.14-1

documentation for user-space ALSA application programming

https://www.alsa-project.org/

sudo apt install libasound2-doc
  • Section: doc
  • Architecture: all
  • Source Package: alsa-lib
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasound2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libasound2-plugin-smixer 1.2.14-1

smixer plugin for ALSA library

https://www.alsa-project.org/

sudo apt install libasound2-plugin-smixer
  • Section: libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 3 依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasound2-plugin-smixer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libasound2t64 1.2.14-1

shared library for ALSA applications

https://www.alsa-project.org/

sudo apt install libasound2t64
  • Section: libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasound2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libatopology-dev 1.2.14-1

shared library for handling ALSA topology -- development files

https://www.alsa-project.org/

sudo apt install libatopology-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libatopology-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libatopology2t64 1.2.14-1

shared library for handling ALSA topology definitions

https://www.alsa-project.org/

sudo apt install libatopology2t64
  • Section: libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Alsa Lib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libatopology2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

alsa-lib

nix profile install nixpkgs#alsa-lib
  • normalized package name match
  • 匹配方式:Alsa Lib
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/al/alsa-lib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libasound2-data 1.2.11-1build2

Configuration files and profiles for ALSA drivers

https://www.alsa-project.org/

sudo apt install libasound2-data
  • Section: libs
  • Architecture: all
  • Source Package: alsa-lib
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasound2-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libasound2-dev 1.2.11-1build2

shared library for ALSA applications -- development files

https://www.alsa-project.org/

sudo apt install libasound2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: alsa-lib
  • 1 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasound2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libasound2-doc 1.2.11-1build2

documentation for user-space ALSA application programming

https://www.alsa-project.org/

sudo apt install libasound2-doc
  • Section: libdevel
  • Architecture: all
  • Source Package: alsa-lib
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasound2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libasound2-plugin-smixer 1.2.11-1build2

smixer plugin for ALSA library

https://www.alsa-project.org/

sudo apt install libasound2-plugin-smixer
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 3 依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasound2-plugin-smixer from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libasound2t64 1.2.11-1build2

shared library for ALSA applications

https://www.alsa-project.org/

sudo apt install libasound2t64
  • Section: libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasound2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libatopology-dev 1.2.11-1build2

shared library for handling ALSA topology -- development files

https://www.alsa-project.org/

sudo apt install libatopology-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libatopology-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libatopology2t64 1.2.11-1build2

shared library for handling ALSA topology definitions

https://www.alsa-project.org/

sudo apt install libatopology2t64
  • Section: libs
  • Architecture: amd64
  • Source Package: alsa-lib
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Alsa Lib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libatopology2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

alsa-lib 1.2.15.3-r0

Advanced Linux Sound Architecture (ALSA) library

https://alsa-project.org/

sudo apk add alsa-lib
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: alsa-lib
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Alsa Lib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: alsa-lib from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment