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

Heavily optimized DEFLATE/zlib/gzip compression and decompression. Version 1.25 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libdeflate
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libdeflate
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libdeflate
```

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

### Linux

- apk (92%):

```sh
sudo apk add libdeflate
```

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

- Debian apt (92%):

```sh
sudo apt install libdeflate-dev
```

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

- dnf (92%):

```sh
sudo dnf install libdeflate
```

  Evidence: Fedora Rawhide package metadata: libdeflate 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#libdeflate
```

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

- pacman (92%):

```sh
sudo pacman -S libdeflate
```

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

- zypper (92%):

```sh
sudo zypper install libdeflate-devel
```

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

## Package facts

- **Package key:** brew:libdeflate
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libdeflate>
- **Version:** 1.25
- **Source summary:** Heavily optimized DEFLATE/zlib/gzip compression and decompression
- **Homepage:** <https://github.com/ebiggers/libdeflate>
- **Repository:** <https://github.com/ebiggers/libdeflate>
- **Upstream docs:** <https://github.com/ebiggers/libdeflate#readme>
- **License:** MIT
- **Source archive:** <https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.25.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- libdeflate-gunzip (cli)
- libdeflate-gzip (cli)
- libdeflate-gunzip (alias)
- libdeflate-gzip (alias)

## 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.25
- Local data: ok
- Upstream repository: https://github.com/ebiggers/libdeflate
- Upstream latest detected: v1.25 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

libdeflate is Eric Biggers' optimized C library for whole-buffer DEFLATE, zlib, and gzip compression and decompression. It is intentionally not a streaming zlib clone; it trades API compatibility for speed, compactness, and easy embedding.

### Project history

The README presents libdeflate as a fast whole-buffer compression library supporting raw DEFLATE, zlib-wrapped DEFLATE, and gzip-wrapped DEFLATE. It includes library APIs plus libdeflate-gzip/libdeflate-gunzip convenience programs, benchmarks, and checksum tools.

The NEWS file starts with version 0.1 as the initial official release, then records a steady sequence of compression-ratio, checksum, architecture, build, and portability improvements. Notable milestones include MIT relicensing by 0.5, CMake and compiler support work, custom allocator APIs in 1.19, RISC-V basics and new checksum acceleration in 1.20, and relocatable CMake package work in 1.25.

### Adoption history

libdeflate became attractive anywhere software needed faster in-memory DEFLATE-family compression than zlib-style streaming APIs. The README explicitly supports direct source integration and documents language bindings, helping it spread into applications, libraries, and package managers as a performance-oriented dependency.

### How it is used

Developers use libdeflate when the compressed or decompressed data fits in memory and whole-buffer APIs are acceptable. The libdeflate-gzip tool can substitute for standard gzip in some cases, but upstream warns it is a convenience program with limitations rather than the main use case.

### Why package nerds care

libdeflate is a modern compression-library package with exactly the kind of constraints packagers care about: stable C APIs, CPU-specific optimized code selected at runtime, direct embedding support, CMake/pkg-config integration, and a non-zlib-compatible API that prevents accidental semantic confusion.

### Timeline

- 2016: The author publicly announced libdeflate as a new optimized DEFLATE implementation.
- 2017: Version 0.1 was the initial official release according to upstream NEWS.
- 2018: Version 1.0-era Windows binary and API usage surfaced in upstream issue and release workflows.
- 2023: Version 1.19 added custom allocator APIs and compatibility fixes for DEFLATE streams created by libdeflate.
- 2024: Version 1.20 added VPCLMULQDQ/VNNI checksum acceleration and basic RISC-V optimizations.
- 2026: Version 1.25 fixed a GCC 16 build error and made the CMake package relocatable.

### Related projects

- zlib, gzip, and raw DEFLATE are the formats and incumbent ecosystem around libdeflate. Language bindings and bundled integrations use libdeflate when whole-buffer compression is a better fit than streaming APIs.

### Sources

- <https://encode.su/threads/2482-libdeflate-a-new-optimized-DEFLATE-implementation>
- <https://github.com/ebiggers/libdeflate>
- <https://github.com/ebiggers/libdeflate/releases>
- <https://raw.githubusercontent.com/ebiggers/libdeflate/master/NEWS.md>
- <https://raw.githubusercontent.com/ebiggers/libdeflate/master/README.md>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libdeflate
- **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 - libdeflate-dev - 1.23-2: normalized package name match | Debian stable package indexes: libdeflate-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | headers for whole-buffer compression and decompression library | https://github.com/ebiggers/libdeflate
- Debian apt - libdeflate-tools - 1.23-2: normalized package name match | Debian stable package indexes: libdeflate-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tools for whole-buffer compression and decompression library | https://github.com/ebiggers/libdeflate
- Debian apt - libdeflate0 - 1.23-2: normalized package name match | Debian stable package indexes: libdeflate0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast, whole-buffer DEFLATE-based compression and decompression | https://github.com/ebiggers/libdeflate
- Nix - libdeflate: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libdeflate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libdeflate-dev - 1.19-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libdeflate-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | headers for whole-buffer compression and decompression library | https://github.com/ebiggers/libdeflate
- Ubuntu apt - libdeflate-tools - 1.19-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libdeflate-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tools for whole-buffer compression and decompression library | https://github.com/ebiggers/libdeflate
- Ubuntu apt - libdeflate0 - 1.19-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libdeflate0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | fast, whole-buffer DEFLATE-based compression and decompression | https://github.com/ebiggers/libdeflate
- apk - libdeflate - 1.25-r0: normalized package name match | Alpine Linux edge package indexes: libdeflate from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for fast, whole-buffer DEFLATE-based compression and decompression | https://github.com/ebiggers/libdeflate
- apk - libdeflate-dev - 1.25-r0: normalized package name match | Alpine Linux edge package indexes: libdeflate-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for fast, whole-buffer DEFLATE-based compression and decompression (development files) | https://github.com/ebiggers/libdeflate
- apk - libdeflate-static - 1.25-r0: normalized package name match | Alpine Linux edge package indexes: libdeflate-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for fast, whole-buffer DEFLATE-based compression and decompression (static library) | https://github.com/ebiggers/libdeflate
- apk - libdeflate-utils - 1.25-r0: normalized package name match | Alpine Linux edge package indexes: libdeflate-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command line utilities for the DEFLATE library | https://github.com/ebiggers/libdeflate
- dnf - libdeflate - 1.25-3.fc44: normalized package name match | Fedora Rawhide package metadata: libdeflate from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fast implementation of DEFLATE, gzip, and zlib | https://github.com/ebiggers/libdeflate
- dnf - libdeflate-devel - 1.25-3.fc44: normalized package name match | Fedora Rawhide package metadata: libdeflate-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libdeflate | https://github.com/ebiggers/libdeflate
- dnf - libdeflate-utils - 1.25-3.fc44: normalized package name match | Fedora Rawhide package metadata: libdeflate-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Binaries from libdeflate | https://github.com/ebiggers/libdeflate
- dnf - mingw32-libdeflate - 1.25-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw32-libdeflate from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MinGW Windows libdeflate library | https://github.com/ebiggers/libdeflate
- dnf - mingw32-libdeflate-utils - 1.25-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw32-libdeflate-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MinGW Windows libdeflate binaries | https://github.com/ebiggers/libdeflate


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [adapterremoval](https://www.automicvault.com/pkg/brew/adapterremoval/) - Popular package that depends on this formula.
- [fastp](https://www.automicvault.com/pkg/brew/fastp/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Popular package that depends on this formula.
- [htslib](https://www.automicvault.com/pkg/brew/htslib/) - Popular package that depends on this formula.
- [notcurses](https://www.automicvault.com/pkg/brew/notcurses/) - Popular package that depends on this formula.
- [openexr](https://www.automicvault.com/pkg/brew/openexr/) - Popular package that depends on this formula.
- [ptex](https://www.automicvault.com/pkg/brew/ptex/) - Popular package that depends on this formula.
- [timg](https://www.automicvault.com/pkg/brew/timg/) - Popular package that depends on this formula.
- [zopfli](https://www.automicvault.com/pkg/brew/zopfli/) - Shares av.db curated category or tags: c, cli, compression, deflate, developer-tools.
- [pigz](https://www.automicvault.com/pkg/brew/pigz/) - Shares av.db curated category or tags: cli, compression, developer-tools, gzip, zlib.
- [flickcurl](https://www.automicvault.com/pkg/brew/flickcurl/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [gwenhywfar](https://www.automicvault.com/pkg/brew/gwenhywfar/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [hidapi](https://www.automicvault.com/pkg/brew/hidapi/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [json-glib](https://www.automicvault.com/pkg/brew/json-glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [libcmph](https://www.automicvault.com/pkg/brew/libcmph/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [ancient](https://www.automicvault.com/pkg/brew/ancient/) - Local package facts share a topical domain. Shared terms: cli, compression, decompression, developer, developer-tools.
- [libdatrie](https://www.automicvault.com/pkg/brew/libdatrie/) - Local package facts share a topical domain. Shared terms: c, cli, developer, developer-tools, libraries.

## Combined YAML source

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