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

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

## 安装

```sh
sudo av install brew:flac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flac
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flac
```

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

### Linux

- apk (92%):

```sh
sudo apk add flac
```

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

- Debian apt (92%):

```sh
sudo apt install flac
```

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

- dnf (92%):

```sh
sudo dnf install flac
```

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

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

- pacman (92%):

```sh
sudo pacman -S flac
```

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

- zypper (92%):

```sh
sudo zypper install flac
```

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

### Windows

- Chocolatey (92%):

```sh
choco install flac
```

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

- Scoop (92%):

```sh
scoop install main/flac
```

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

- winget (92%):

```sh
winget install --id Xiph.FLAC -e
```

  证据: Windows Package Manager source index: Xiph.FLAC from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:flac
- **软件包管理器:** Homebrew
- **版本:** 1.5.0
- **来源摘要:** Free lossless audio codec
- **主页:** <https://xiph.org/flac/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- flac (别名)
- metaflac (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

FLAC, the Free Lossless Audio Codec, is the standard open lossless audio format and toolchain used for archival-quality audio compression, playback, tagging, and transcoding.

### 项目历史

The FLAC project dates its specification document to 2000 and its long-running official pages carry Josh Coalson's early copyright followed by Xiph.Org Foundation stewardship. The project supplies both the format and the reference implementation: command-line tools, libFLAC, libFLAC++, metadata tooling, API documentation, and the formal bitstream specification.

Development moved from SourceForge to Xiph.org in 2012. A 2013 1.3.0 release was described by the project as the first release in more than six years from the new Xiph.Org maintainer team, starting the modern maintenance era.

The format was formally published as RFC 9639 in December 2024. The FLAC project describes this as codifying a format that already had a specification and reference implementation, making independent decoder implementations and long-term archival confidence easier. FLAC 1.5.0 followed in February 2025 with multithreaded encoding in libFLAC and the flac command-line tool.

### 采用历史

The official site emphasizes FLAC's combination of open specification, patent-unencumbered design, open-source reference implementation, documented format and API, and independent implementations. It also lists support across common operating systems and notes many programs and devices that support the format.

Official news items show FLAC moving from enthusiast and archival circles into broad consumer playback: Android native FLAC playback in 2011, hardware and receiver support through the early 2010s, high-resolution music stores and streaming services using FLAC in 2014, and continuing support from players, devices, and audio software.

### 使用方式

The Homebrew package exposes the official flac encoder/decoder and metaflac metadata editor. Typical package-manager usage is installing these tools for lossless CD ripping, audio verification, transcoding to or from WAV/AIFF-style sources, metadata inspection and editing, and scripts that need a stable codec utility.

Developers use libFLAC and libFLAC++ when embedding FLAC support in applications, while format implementers use the specification, API docs, Ogg FLAC mapping, and conformance material.

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

FLAC is one of the packages that turns a Unix system into a serious media workstation: small command-line tools, stable libraries, strong archival semantics, and a file format that can be decoded independently decades later.

For package maintainers, FLAC matters because many other media packages link against libFLAC or shell out to flac/metaflac. Its release notes track ABI versions, build-system changes, fuzzing, Windows and Unix portability, and security-hardening details that ripple across audio stacks.

### 时间线

- 2000: FLAC specification document existed alongside the open-source reference implementation.
- 2011: Android 3.1 added native FLAC playback.
- 2012: FLAC development moved from SourceForge to Xiph.org.
- 2013: FLAC 1.3.0 released by the new Xiph.Org maintainer team.
- 2014: FLAC 1.3.1 released after security-triggered maintenance; FLAC also appeared in high-resolution stores and streaming announcements.
- 2024: RFC 9639 formally specified the FLAC format.
- 2025: FLAC 1.5.0 added multithreaded encoding in libFLAC and the flac CLI.

### Related projects

- Xiph.Org, libFLAC, libFLAC++, metaflac, Ogg FLAC, RFC 9639, Hydrogenaudio, Vorbis.

### 来源

- <https://xiph.org/flac/index.html>
- <https://xiph.org/flac/features.html>
- <https://xiph.org/flac/documentation.html>
- <https://xiph.org/flac/documentation_tools.html>
- <https://xiph.org/flac/news.html>
- <https://xiph.org/flac/changelog.html>
- <https://xiph.org/flac/2024/12/19/rfc-9639-published.html>
- <https://datatracker.ietf.org/doc/html/rfc9639>
- <https://github.com/xiph/flac>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - flac - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: flac from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - command line tools | https://xiph.org/flac/
- Debian apt - libflac++-dev - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: libflac++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - C++ development library | https://xiph.org/flac/
- Debian apt - libflac++11 - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: libflac++11 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - C++ runtime library | https://xiph.org/flac/
- Debian apt - libflac-dev - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: libflac-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - C development library | https://xiph.org/flac/
- Debian apt - libflac-doc - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: libflac-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - library documentation | https://xiph.org/flac/
- Debian apt - libflac14 - 1.5.0+ds-2: normalized package name match | Debian stable package indexes: libflac14 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Lossless Audio Codec - runtime C library | https://xiph.org/flac/
- Nix - flac: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flac/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - flac - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: flac from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Free Lossless Audio Codec - command line tools | https://xiph.org/flac/
- Ubuntu apt - libflac++-dev - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libflac++-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Free Lossless Audio Codec - C++ development library | https://xiph.org/flac/
- Ubuntu apt - libflac++10 - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libflac++10 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Free Lossless Audio Codec - C++ runtime library | https://xiph.org/flac/
- Ubuntu apt - libflac-dev - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libflac-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Free Lossless Audio Codec - C development library | https://xiph.org/flac/
- Ubuntu apt - libflac-doc - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libflac-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Free Lossless Audio Codec - library documentation | https://xiph.org/flac/
- Ubuntu apt - libflac12t64 - 1.4.3+ds-2.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libflac12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Free Lossless Audio Codec - runtime C library | https://xiph.org/flac/
- apk - flac - 1.5.0-r0: normalized package name match | Alpine Linux edge package indexes: flac from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Free Lossless Audio Codec | https://xiph.org/flac/
- apk - flac-dev - 1.5.0-r0: normalized package name match | Alpine Linux edge package indexes: flac-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Free Lossless Audio Codec (development files) | https://xiph.org/flac/
- apk - flac-doc - 1.5.0-r0: normalized package name match | Alpine Linux edge package indexes: flac-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Free Lossless Audio Codec (documentation) | https://xiph.org/flac/


## Combined YAML source

View the package source record on GitHub. [combined/flac.yml](https://github.com/mxcl/pkgdb/blob/main/combined/flac.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
