# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 taglib

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

## 安装

```sh
sudo av install brew:taglib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install taglib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install taglib
```

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

### Linux

- apk (92%):

```sh
sudo apk add taglib
```

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

- dnf (92%):

```sh
sudo dnf install taglib
```

  证据: Fedora Rawhide package metadata: taglib 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#taglib
```

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

- pacman (92%):

```sh
sudo pacman -S taglib
```

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

- zypper (92%):

```sh
sudo zypper install taglib
```

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

- Debian apt (92%):

```sh
sudo apt install libtag-c-dev
```

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

- Ubuntu apt (92%):

```sh
sudo apt install libtag1-dev
```

  证据: Ubuntu 24.04 LTS package indexes: libtag1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:taglib
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/taglib>
- **版本:** 2.3.1
- **来源摘要:** Audio metadata library
- **主页:** <https://taglib.org/>
- **仓库:** <https://github.com/taglib/taglib>
- **上游文档:** <https://taglib.org/>
- **许可证:** LGPL-2.1-only OR MPL-1.1
- **源码归档:** <https://taglib.org/releases/taglib-2.3.1.tar.gz>
- **最后更新:** 2026-07-20T07:41:54Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- taglib-config (cli)
- taglib-config (别名)

## 依赖

- utf8cpp

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.1
- 管理器更新时间: 2026-07-20
- 本地数据: OK
- 上游仓库: https://taglib.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

TagLib is a long-lived C++ audio metadata library used for reading and editing tags across common music formats. Its package-manager footprint is broad because many desktop, media-library, and audio-tool packages need a small native library for ID3, Vorbis comments, MP4 metadata, FLAC metadata, and related tag formats.

### 项目历史

The official site describes TagLib as a library for reading and editing metadata in popular audio formats, with support for containers including ID3v1, ID3v2, Vorbis comments, MP4, Ogg, Opus, FLAC, Speex, APE, MPC, WavPack, WAV, AIFF, TrueAudio, Matroska, WebM, ASF, WMA, DSF, DFF, and tracker files. The project publishes API documentation and release archives from taglib.org, with source development now on GitHub.

### 采用历史

TagLib's adoption comes from its role as a reusable native dependency rather than an end-user CLI. The input package facts list packages in Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, and openSUSE ecosystems, reflecting the library's use as a system dependency for media applications and audio tooling.

### 使用方式

Developers usually consume TagLib through headers, the C++ API, C bindings, CMake/pkg-config integration, and the `taglib-config` helper shipped by some packages. The API documentation emphasizes a basic tag interface for common fields, a property-map abstraction for textual metadata, complex properties such as pictures, and format-specific APIs when full control is needed.

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

Package nerds care about TagLib because it is infrastructure: when it changes ABI, compiler baseline, metadata-format coverage, or CMake exports, downstream media packages notice. The 2.0 release moved to C++17, made a binary-incompatible major-version break, expanded C bindings and complex-property support, and improved CMake `find_package(TagLib)` integration.

### 时间线

- 2011: GitHub repository created for the project source.
- 2023: TagLib 1.13.1 released with parsing fixes and build-system improvements.
- 2024: TagLib 2.0 released as a binary-incompatible major version requiring C++17.
- 2025: TagLib 2.1 released with Shorten support and compile-time format configuration.
- 2026: TagLib 2.2 released with Matroska and WebM support.

### Related projects

- TagLib relates to ID3, Vorbis comments, FLAC, MP4 metadata, MusicBrainz-style tagging workflows, media players, tag editors, CMake, pkg-config, and distro packaging.

### 来源

- <https://api.github.com/repos/taglib/taglib>
- <https://github.com/taglib/taglib>
- <https://github.com/taglib/taglib/releases>
- <https://taglib.org/>
- <https://taglib.org/api/>
- source_facts.package-manager


## 安全说明

没有找到 taglib 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** taglib
- **Aliases:** libtag
- **Version Scheme:** 0
- **Revision:** 0
- **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 - libtag-c-dev - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag-c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | audio meta-data library - development files for C bindings | https://taglib.org/
- Debian apt - libtag-c2 - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag-c2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | audio meta-data library - C bindings | https://taglib.org/
- Debian apt - libtag-dev - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | audio meta-data library - development files | https://taglib.org/
- Debian apt - libtag-doc - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | audio meta-data library - API documentation | https://taglib.org/
- Debian apt - libtag1-dev - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional dummy package | https://taglib.org/
- Debian apt - libtag2 - 2.0.2-2: normalized package name match | Debian stable package indexes: libtag2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | audio meta-data library | https://taglib.org/
- Debian apt - libtagc0-dev - 2.0.2-2: normalized package name match | Debian stable package indexes: libtagc0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional dummy package | https://taglib.org/
- Nix - taglib: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/taglib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libtag1-dev - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtag1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library - development files | https://taglib.github.io/
- Ubuntu apt - libtag1-doc - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtag1-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library - API documentation | https://taglib.github.io/
- Ubuntu apt - libtag1v5 - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtag1v5 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library | https://taglib.github.io/
- Ubuntu apt - libtag1v5-vanilla - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtag1v5-vanilla from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library - vanilla flavour | https://taglib.github.io/
- Ubuntu apt - libtagc0 - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtagc0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library - C bindings | https://taglib.github.io/
- Ubuntu apt - libtagc0-dev - 1.13.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtagc0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | audio meta-data library - development files for C bindings | https://taglib.github.io/
- apk - libtag - 2.2.1-r0: normalized package name match | Alpine Linux edge package indexes: libtag from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for reading and editing metadata of several popular audio formats (libtag lib) | https://taglib.github.io/
- apk - libtag_c - 2.2.1-r0: normalized package name match | Alpine Linux edge package indexes: libtag_c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for reading and editing metadata of several popular audio formats (libtag_c lib) | https://taglib.github.io/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [gstreamer](https://pkg.so/zh-hans/brew/gstreamer/) - Popular package that depends on this formula.
- [kew](https://pkg.so/zh-hans/brew/kew/) - Popular package that depends on this formula.
- [ncmpcpp](https://pkg.so/zh-hans/brew/ncmpcpp/) - Popular package that depends on this formula.
- [navidrome](https://pkg.so/zh-hans/brew/navidrome/) - Popular package that depends on this formula.
- [musikcube](https://pkg.so/zh-hans/brew/musikcube/) - Popular package that depends on this formula.
- [rsgain](https://pkg.so/zh-hans/brew/rsgain/) - Popular package that depends on this formula.
- [qmmp](https://pkg.so/zh-hans/brew/qmmp/) - Popular package that depends on this formula.
- [ncmdump](https://pkg.so/zh-hans/brew/ncmdump/) - Popular package that depends on this formula.
- [id3v2](https://pkg.so/zh-hans/brew/id3v2/) - Shares pkgdb curated category or tags: audio, cli, id3, media, metadata.
- [id3lib](https://pkg.so/zh-hans/brew/id3lib/) - Shares pkgdb curated category or tags: audio, cli, id3, library, media.
- [easy-tag](https://pkg.so/zh-hans/brew/easy-tag/) - Shares pkgdb curated category or tags: audio, cli, flac, media, metadata.
- [mp3info](https://pkg.so/zh-hans/brew/mp3info/) - Shares pkgdb curated category or tags: audio, cli, id3, media, metadata.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Shares pkgdb curated category or tags: audio, cli, flac, media, metadata.
- [abcde](https://pkg.so/zh-hans/brew/abcde/) - Shares pkgdb curated category or tags: audio, cli, flac, media, mp3.
- [speech-tools](https://pkg.so/zh-hans/brew/speech-tools/) - Shares pkgdb curated category or tags: audio, c-plus-plus, cli, library, media.
- [mp3unicode](https://pkg.so/zh-hans/brew/mp3unicode/) - Shares pkgdb curated category or tags: audio, cli, id3, media, metadata.
- [eye-d3](https://pkg.so/zh-hans/brew/eye-d3/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, id3, media, metadata.

## Combined YAML source

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


## 来源

- 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
