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

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

## 安装

```sh
sudo av install brew:libfyaml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libfyaml
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libfyaml
```

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

### Linux

- apk (92%):

```sh
sudo apk add libfyaml
```

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

- dnf (92%):

```sh
sudo dnf install libfyaml
```

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

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

- pacman (92%):

```sh
sudo pacman -S libfyaml
```

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

- Debian apt (92%):

```sh
sudo apt install libfyaml-dev
```

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

- zypper (92%):

```sh
sudo zypper install libfyaml-devel
```

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

## 软件包事实

- **软件包键:** brew:libfyaml
- **软件包管理器:** Homebrew
- **版本:** 0.9.6
- **来源摘要:** Fully feature complete YAML parser and emitter
- **主页:** <https://github.com/pantoniou/libfyaml>
- **仓库:** <https://github.com/pantoniou/libfyaml>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fy-compose (别名)
- fy-dump (别名)
- fy-filter (别名)
- fy-join (别名)
- fy-testsuite (别名)
- fy-tool (别名)
- fy-ypath (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libfyaml is Pantelis Antoniou’s MIT-licensed C library and tool suite for YAML 1.2 and JSON parsing and emitting, emphasizing zero-copy parsing, document and event APIs, diagnostics, and YAML test-suite coverage.

### 项目历史

GitHub repository metadata records pantoniou/libfyaml creation on 2019-09-16, and the project documentation copyright spans 2019-2026. The README describes the library as a high-performance YAML 1.2 and JSON parser/emitter with zero-copy operation, full document and event APIs, and no artificial key or document size limits.

GitHub release metadata records v0.9 on 2023-09-25, v0.9.6 on 2026-03-15, and a 1.0.0-alpha series beginning on 2026-03-16. The alpha series added generics, reflection/meta-type support, Python binding work, parse caching, optimized generic emission, and wider binary packaging.

### 采用历史

libfyaml’s adoption is narrower than older C YAML libraries, but package records in the input show it in Homebrew, Debian, Ubuntu, Fedora, Arch, MacPorts, Nix, Alpine, and openSUSE. It appeals to projects that need a modern C YAML parser with event, document-tree, path, JSON, and command-line tooling in one package.

### 使用方式

The package ships utilities such as fy-tool, fy-dump, fy-compose, fy-filter, fy-join, fy-ypath, and fy-testsuite. Developers can link it through CMake or pkg-config and use core, generic, or reflection APIs depending on whether they need streaming events, document manipulation, schema-light values, or typed C structure serialization.

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

libfyaml matters to package maintainers because YAML parsing is deceptively hard, security-sensitive, and specification-heavy. A compact C implementation with test-suite emphasis, JSON interop, command-line tools, and optional Python bindings gives distributions another choice besides older libyaml-style stacks.

### 时间线

- 2019-09-16: GitHub repository metadata records creation of pantoniou/libfyaml.
- 2023-09-25: GitHub release metadata records v0.9.
- 2026-03-15: GitHub release metadata records v0.9.6.
- 2026-03-16: GitHub release metadata records v1.0.0-alpha1.
- 2026-05-28: GitHub release metadata records v1.0.0-alpha7.

### Related projects

- The YAML test suite is part of libfyaml’s correctness story.
- The Python binding in python-libfyaml bridges the C generic runtime into Python workflows.
- libyaml is the older C YAML library against which newer C YAML parsers are often compared.

### 来源

- <https://api.github.com/repos/pantoniou/libfyaml>
- <https://api.github.com/repos/pantoniou/libfyaml/releases?per_page=100>
- <https://github.com/pantoniou/libfyaml>
- <https://pantoniou.github.io/libfyaml/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - libfyaml-dev - 0.8-1+b2: normalized package name match | Debian stable package indexes: libfyaml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fully feature complete YAML parser and emitter (headers) | https://github.com/pantoniou/libfyaml
- Debian apt - libfyaml-utils - 0.8-1+b2: normalized package name match | Debian stable package indexes: libfyaml-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fully feature complete YAML parser and emitter (CLI tools) | https://github.com/pantoniou/libfyaml
- Debian apt - libfyaml0 - 0.8-1+b2: normalized package name match | Debian stable package indexes: libfyaml0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fully feature complete YAML parser and emitter (library) | https://github.com/pantoniou/libfyaml
- Nix - libfyaml: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libfyaml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libfyaml-dev - 0.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libfyaml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fully feature complete YAML parser and emitter (headers) | https://github.com/pantoniou/libfyaml
- Ubuntu apt - libfyaml-utils - 0.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libfyaml-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fully feature complete YAML parser and emitter (CLI tools) | https://github.com/pantoniou/libfyaml
- Ubuntu apt - libfyaml0 - 0.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libfyaml0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fully feature complete YAML parser and emitter (library) | https://github.com/pantoniou/libfyaml
- apk - libfyaml - 0.9.6-r1: normalized package name match | Alpine Linux edge package indexes: libfyaml from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fully feature complete YAML parser and emitter | https://github.com/pantoniou/libfyaml
- apk - libfyaml-dev - 0.9.6-r1: normalized package name match | Alpine Linux edge package indexes: libfyaml-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fully feature complete YAML parser and emitter (development files) | https://github.com/pantoniou/libfyaml
- apk - libfyaml-doc - 0.9.6-r1: normalized package name match | Alpine Linux edge package indexes: libfyaml-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fully feature complete YAML parser and emitter (documentation) | https://github.com/pantoniou/libfyaml
- dnf - fyaml-utils - 0.8-10.fc45: normalized package name match | Fedora Rawhide package metadata: fyaml-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Utility tools for libfyaml | https://github.com/pantoniou/libfyaml
- dnf - libfyaml - 0.8-10.fc45: normalized package name match | Fedora Rawhide package metadata: libfyaml from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Complete YAML parser and emitter | https://github.com/pantoniou/libfyaml
- dnf - libfyaml-devel - 0.8-10.fc45: normalized package name match | Fedora Rawhide package metadata: libfyaml-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Complete YAML parser and emitter | https://github.com/pantoniou/libfyaml
- pacman - libfyaml - 0.9.6-2: normalized package name match | Arch Linux sync databases: libfyaml from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fully feature complete YAML parser and emitter | https://pantoniou.github.io/libfyaml/
- zypper - libfyaml-devel - 0.9.5-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libfyaml-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libfyaml | https://github.com/pantoniou/libfyaml
- zypper - libfyaml-fy-tool - 0.9.5-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libfyaml-fy-tool from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command line tools for libfyaml | https://github.com/pantoniou/libfyaml


## Combined YAML source

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