# Install libfyaml with Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Fully feature complete YAML parser and emitter. Version 0.9.6 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libfyaml-dev.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libfyaml
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libfyaml
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:libfyaml
- **Package manager:** Homebrew
- **Version:** 0.9.6
- **Source summary:** Fully feature complete YAML parser and emitter
- **Homepage:** <https://github.com/pantoniou/libfyaml>
- **Repository:** <https://github.com/pantoniou/libfyaml>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- fy-compose (alias)
- fy-dump (alias)
- fy-filter (alias)
- fy-join (alias)
- fy-testsuite (alias)
- fy-tool (alias)
- fy-ypath (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.9.6
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
