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

Library for encoding and decoding .avif files. Version 1.4.2 via Homebrew; verified 2026-05-27.

## Install

```sh
sudo av install brew:libavif
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libavif
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libavif
```

  Evidence: MacPorts ports tree: multimedia/libavif/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libavif
```

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

- Debian apt (92%):

```sh
sudo apt install libavif-bin
```

  Evidence: Debian stable package indexes: libavif-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libavif
```

  Evidence: Fedora Rawhide package metadata: libavif from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libavif
```

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

- pacman (92%):

```sh
sudo pacman -S libavif
```

  Evidence: Arch Linux sync databases: libavif from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install avif-tools
```

  Evidence: openSUSE Tumbleweed package metadata: avif-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/libavif
```

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

## Package facts

- **Package key:** brew:libavif
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libavif>
- **Version:** 1.4.2
- **Source summary:** Library for encoding and decoding .avif files
- **Homepage:** <https://github.com/AOMediaCodec/libavif>
- **Repository:** <https://github.com/AOMediaCodec/libavif>
- **Upstream docs:** <https://github.com/AOMediaCodec/libavif#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/AOMediaCodec/libavif/archive/refs/tags/v1.4.2.tar.gz>
- **Last updated:** 2026-05-27T03:16:24Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- avifdec (cli)
- avifenc (cli)
- avifgainmaputil (cli)
- avifdec (alias)
- avifenc (alias)
- avifgainmaputil (alias)

## Dependencies

- aom
- dav1d
- jpeg-turbo
- libpng

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.4.2
- Package-manager updated: 2026-05-27
- Local data: ok
- Upstream repository: https://github.com/AOMediaCodec/libavif
- Upstream latest detected: v1.4.2 (current)
## Project history and usage

libavif is AOMedia's portable C implementation of the AV1 Image File Format. It provides the library API plus the `avifenc` and `avifdec` command-line tools used to encode, decode, inspect, and test AVIF images.

### Project history

The project was created around the AVIF specification, which maps AV1 image payloads into an ISO base media file format container. The repository copyright text names Joe Drago in 2019, and the codebase grew into an AOMedia-hosted implementation with codec back ends for libaom, dav1d, libgav1, rav1e, and SVT-AV1.

The changelog shows the project moving from fast-moving 0.x releases into a 1.0.0 release on 2023-08-24, where the maintainers stated the ABI would be more stable from that point. Later releases added gain-map work, image-sequence handling, stricter parsing, and build/dependency refinements.

### Adoption history

libavif became the practical Unix package for AVIF batch conversion because it ships simple tools and a small C API. Its README documents package-manager installation across Homebrew, MacPorts, Debian-style systems, Red Hat-style systems, MSYS2, and Windows via vcpkg or release binaries.

### How it is used

Users commonly run `avifenc` to convert JPEG, PNG, or Y4M input to AVIF and `avifdec` to decode AVIF output back to common image formats. Developers link the library when they need AVIF support without embedding the full details of AV1 codec selection, metadata handling, tiling, alpha, gain maps, and color conversion.

### Why package nerds care

libavif is the tiny command-line face of a much larger codec ecosystem. Package maintainers care about it because optional codec dependencies change feature coverage, performance, binary size, and patent-policy comfort while the same `avifenc` and `avifdec` commands appear in scripts and image pipelines.

### Timeline

- 2019: Repository license text records Joe Drago copyright for libavif.
- 2020: Version 0.8.0 adds image sequence encoding and related codec-layer refactoring.
- 2023: Version 1.0.0 marks a more stable ABI.
- 2024: Version 1.1.0 adds experimental gain-map API work.
- 2025: Version 1.2.0 installs `avifgainmaputil` and turns on gain-map API support.
- 2026: Version 1.4.2 requires C11 for compilation while keeping public headers C99.

### Related projects

- AV1 Image File Format, libaom, dav1d, libgav1, rav1e, SVT-AV1, libyuv, libjpeg, libpng, and image conversion pipelines are the main adjacent projects.

### Sources

- <https://aomediacodec.github.io/av1-avif/>
- <https://github.com/AOMediaCodec/libavif>
- <https://raw.githubusercontent.com/AOMediaCodec/libavif/main/CHANGELOG.md>


## Security Notes

library-like package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libavif
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libavif-bin - 1.2.1-1.2: normalized package name match | Debian stable package indexes: libavif-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for handling .avif files (utilities) | https://github.com/AOMediaCodec/libavif
- Debian apt - libavif-dev - 1.2.1-1.2: normalized package name match | Debian stable package indexes: libavif-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for handling .avif files (development files) | https://github.com/AOMediaCodec/libavif
- Debian apt - libavif-gdk-pixbuf - 1.2.1-1.2: normalized package name match | Debian stable package indexes: libavif-gdk-pixbuf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for handling .avif files (GDK pixbuf plugin) | https://github.com/AOMediaCodec/libavif
- Debian apt - libavif16 - 1.2.1-1.2: normalized package name match | Debian stable package indexes: libavif16 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for handling .avif files | https://github.com/AOMediaCodec/libavif
- Nix - libavif: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libavif/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libavif-bin - 1.0.4-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libavif-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for handling .avif files (utilities) | https://github.com/AOMediaCodec/libavif
- Ubuntu apt - libavif-dev - 1.0.4-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libavif-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for handling .avif files (development files) | https://github.com/AOMediaCodec/libavif
- Ubuntu apt - libavif-gdk-pixbuf - 1.0.4-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libavif-gdk-pixbuf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for handling .avif files (GDK pixbuf plugin) | https://github.com/AOMediaCodec/libavif
- Ubuntu apt - libavif16 - 1.0.4-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libavif16 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for handling .avif files | https://github.com/AOMediaCodec/libavif
- apk - libavif - 1.4.1-r0: normalized package name match | Alpine Linux edge package indexes: libavif from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for encoding and decoding .avif files | https://aomediacodec.github.io/av1-avif/
- apk - libavif-apps - 1.4.1-r0: normalized package name match | Alpine Linux edge package indexes: libavif-apps from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for encoding and decoding .avif files | https://aomediacodec.github.io/av1-avif/
- apk - libavif-dev - 1.4.1-r0: normalized package name match | Alpine Linux edge package indexes: libavif-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for encoding and decoding .avif files (development files) | https://aomediacodec.github.io/av1-avif/
- dnf - libavif - 1.3.0-4.fc44: normalized package name match | Fedora Rawhide package metadata: libavif from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Library for encoding and decoding .avif files | https://github.com/AOMediaCodec/libavif
- dnf - libavif-devel - 1.3.0-4.fc44: normalized package name match | Fedora Rawhide package metadata: libavif-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libavif | https://github.com/AOMediaCodec/libavif
- dnf - libavif-tools - 1.3.0-4.fc44: normalized package name match | Fedora Rawhide package metadata: libavif-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tools to encode and decode AVIF files | https://github.com/AOMediaCodec/libavif
- pacman - libavif - 1.4.2-1: normalized package name match | Arch Linux sync databases: libavif from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library for encoding and decoding .avif files | https://github.com/AOMediaCodec/libavif


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [aom](https://www.automicvault.com/pkg/brew/aom/) - Runtime dependency declared by Homebrew.
- [dav1d](https://www.automicvault.com/pkg/brew/dav1d/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [chafa](https://www.automicvault.com/pkg/brew/chafa/) - Popular package that depends on this formula.
- [gd](https://www.automicvault.com/pkg/brew/gd/) - Popular package that depends on this formula.
- [libsail](https://www.automicvault.com/pkg/brew/libsail/) - Popular package that depends on this formula.
- [mapnik](https://www.automicvault.com/pkg/brew/mapnik/) - Popular package that depends on this formula.
- [webkitgtk](https://www.automicvault.com/pkg/brew/webkitgtk/) - Popular package that depends on this formula.
- [jxrlib](https://www.automicvault.com/pkg/brew/jxrlib/) - Shares av.db curated category or tags: cli, decoder, encoder, image-codec, image-codecs.
- [libheif](https://www.automicvault.com/pkg/brew/libheif/) - Shares av.db curated category or tags: avif, cli, decoder, encoder, image-codec.
- [djvulibre](https://www.automicvault.com/pkg/brew/djvulibre/) - Shares av.db curated category or tags: cli, decoder, encoder, library, media.
- [jasper](https://www.automicvault.com/pkg/brew/jasper/) - Shares av.db curated category or tags: cli, image-codec, library, media.
- [jpeg-xl](https://www.automicvault.com/pkg/brew/jpeg-xl/) - Shares av.db curated category or tags: cli, decoder, encoder, image-codec, media.
- [musepack](https://www.automicvault.com/pkg/brew/musepack/) - Shares av.db curated category or tags: cli, decoder, encoder, media.
- [a52dec](https://www.automicvault.com/pkg/brew/a52dec/) - Shares av.db curated category or tags: cli, library, media.
- [aalib](https://www.automicvault.com/pkg/brew/aalib/) - Shares av.db curated category or tags: cli, library, media.
- [grokj2k](https://www.automicvault.com/pkg/brew/grokj2k/) - Both packages work with overlapping file formats or content types. Shared terms: cli, codec, image, image-codec, jpeg.
- [jbig2enc](https://www.automicvault.com/pkg/brew/jbig2enc/) - Both packages work with overlapping file formats or content types. Shared terms: cli, encoder, image, jpeg, jpeg-turbo.

## Combined YAML source

View the package source record on GitHub. [combined/libavif.yml](https://github.com/automic-vault/db/blob/main/combined/libavif.yml)


## Sources

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