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

New zlib (gzip, deflate) compatible compressor. Version 1.0.3 via Homebrew; verified 2026-05-19.

## Install

```sh
sudo av install brew:zopfli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install zopfli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zopfli
```

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

### Linux

- apk (92%):

```sh
sudo apk add zopfli
```

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

- Debian apt (92%):

```sh
sudo apt install libzopfli-dev
```

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

- dnf (92%):

```sh
sudo dnf install zopfli
```

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

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

- pacman (92%):

```sh
sudo pacman -S zopfli
```

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

- zypper (92%):

```sh
sudo zypper install libzopfli-devel
```

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

## Package facts

- **Package key:** brew:zopfli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/zopfli>
- **Version:** 1.0.3
- **Source summary:** New zlib (gzip, deflate) compatible compressor
- **Homepage:** <https://github.com/google/zopfli>
- **Repository:** <https://github.com/google/zopfli>
- **Upstream docs:** <https://github.com/google/zopfli#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/google/zopfli/archive/refs/tags/zopfli-1.0.3.tar.gz>
- **Last updated:** 2026-05-19T07:53:37-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- zopfli (cli)
- zopflipng (cli)
- zopfli (alias)
- zopflipng (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.0.3
- Package-manager updated: 2026-05-19
- Local data: ok
- Upstream repository: https://github.com/google/zopfli
- Upstream latest detected: zopfli-1.0.3 (current)
## Project history and usage

Zopfli is Google's deliberately slow, very dense Deflate-compatible compressor. It matters because its output can be read by ordinary gzip, zlib, ZIP, PNG, and HTTP Deflate consumers, making it a packageable optimization step rather than a new compression format users must support.

### Project history

Google announced Zopfli in February 2013 as an open-source implementation of Deflate designed to produce smaller output than previous techniques. The name came from a Swiss bread recipe, but the engineering idea was serious: spend much more CPU time during compression while keeping decompression speed and compatibility unchanged.

The GitHub project describes Zopfli as a C compression library for very good but slow Deflate or zlib compression, created by Lode Vandevenne and Jyrki Alakuijala and based on Alakuijala's algorithm. The repository also contains the zopfli CLI and zopflipng, a PNG optimizer built around the same Deflate search.

### Adoption history

Zopfli spread first through web-performance and asset-optimization workflows, where build time is cheaper than bandwidth. Because it emits standard Deflate streams, users could precompress static assets and serve them through existing HTTP and archive tooling without changing client decompression support.

ZopfliPNG extended the same idea into image optimization: PNG files already use Deflate internally, so better Deflate choices can shrink files without changing the image format. That made the package especially interesting to people tuning websites, fonts, archives, and static downloadable assets.

### How it is used

The zopfli executable is best used offline: compress a file once, keep the smaller gzip/zlib/deflate result, and let normal clients decompress it. It is usually a poor choice for live request-time compression because the whole point is spending extra CPU to find a smaller representation.

zopflipng is the companion CLI for PNGs. It tries Zopfli Deflate plus PNG-specific filter and color choices, and it may remove ancillary chunks that are not needed for typical web rendering, so visual checks and metadata awareness matter when using it in asset pipelines.

### Why package nerds care

Zopfli is a perfect package-nerd tool because it is small, sharp, and intentionally asymmetric: slow compression, standard decompression. It rewards users who understand build artifacts, static hosting, and the difference between a file format and an encoder.

It also sits in a recognizable Google compression lineage with Brotli and later web-compression work, but unlike Brotli it did not ask the ecosystem to adopt a new wire format. That compatibility is why it still shows up as a practical CLI package.

### Timeline

- 2013: Google announces Zopfli as an open-source, Deflate-compatible compressor optimized for smaller output.
- 2013: The reference implementation is published in C by Lode Vandevenne and Jyrki Alakuijala.
- 2013: ZopfliPNG appears as a PNG optimization tool using Zopfli compression for PNG Deflate streams.
- 2010s: Zopfli becomes a build-time optimization option for static web assets, archives, PNGs, and other Deflate-based formats.
- 2015: Brotli appears as a related Google compression project aimed at a newer web compression format rather than Deflate compatibility.

### Related projects

- zlib: the ubiquitous Deflate implementation whose output compatibility made Zopfli practical.
- gzip and ZIP: container formats that can benefit from better Deflate streams.
- zopflipng: the PNG optimizer shipped with the Zopfli project.
- Brotli: a later Google compression format with stronger web adoption but different compatibility tradeoffs.
- AdvanceCOMP and OxiPNG: PNG/archive optimization tools in the neighboring lossless-compression niche.

### Sources

- <https://developers.googleblog.com/compress-data-more-densely-with-zopfli/>
- <https://github.com/google/zopfli>
- <https://github.com/google/zopfli/blob/master/README.zopflipng>
- <https://opensource.googleblog.com/2013/02/compress-data-more-densely-with-zopfli.html>
- <https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html>


## 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:** zopfli
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libzopfli-dev - 1.0.3-3: normalized package name match | Debian stable package indexes: libzopfli-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header and static library files for libzopfli1 | https://github.com/google/zopfli
- Debian apt - libzopfli1 - 1.0.3-3: normalized package name match | Debian stable package indexes: libzopfli1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | zlib (gzip, deflate) compatible compressor - shared library | https://github.com/google/zopfli
- Debian apt - zopfli - 1.0.3-3: normalized package name match | Debian stable package indexes: zopfli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | zlib (gzip, deflate) compatible compressor | https://github.com/google/zopfli
- Nix - zopfli: normalized package name match | nixpkgs package indexes: pkgs/by-name/zo/zopfli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libzopfli-dev - 1.0.3-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzopfli-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Header and static library files for libzopfli1 | https://github.com/google/zopfli
- Ubuntu apt - libzopfli1 - 1.0.3-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzopfli1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | zlib (gzip, deflate) compatible compressor - shared library | https://github.com/google/zopfli
- Ubuntu apt - zopfli - 1.0.3-2: normalized package name match | Ubuntu 24.04 LTS package indexes: zopfli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | zlib (gzip, deflate) compatible compressor | https://github.com/google/zopfli
- apk - zopfli - 1.0.3_git20260213-r0: normalized package name match | Alpine Linux edge package indexes: zopfli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compression algorithm library | https://github.com/fonttools/zopfli
- apk - zopfli-dev - 1.0.3_git20260213-r0: normalized package name match | Alpine Linux edge package indexes: zopfli-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compression algorithm library (development files) | https://github.com/fonttools/zopfli
- apk - zopfli-doc - 1.0.3_git20260213-r0: normalized package name match | Alpine Linux edge package indexes: zopfli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compression algorithm library (documentation) | https://github.com/fonttools/zopfli
- dnf - zopfli - 1.0.3-15.fc44: normalized package name match | Fedora Rawhide package metadata: zopfli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Zlib compatible better compressor | https://github.com/google/zopfli
- dnf - zopfli-devel - 1.0.3-15.fc44: normalized package name match | Fedora Rawhide package metadata: zopfli-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for zopfli and zopflipng. | https://github.com/google/zopfli
- pacman - zopfli - 1.0.3-4: normalized package name match | Arch Linux sync databases: zopfli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compression algorithm library | https://github.com/google/zopfli
- zypper - libzopfli-devel - 1.0.3-2.9: normalized package name match | openSUSE Tumbleweed package metadata: libzopfli-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Header files for libzopfli, a gzip-compatible compressor | https://github.com/google/zopfli
- zypper - libzopfli1 - 1.0.3-2.9: normalized package name match | openSUSE Tumbleweed package metadata: libzopfli1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Deflate/zlib compatible compression library | https://github.com/google/zopfli
- zypper - libzopfli1-x86-64-v3 - 1.0.3-2.9: normalized package name match | openSUSE Tumbleweed package metadata: libzopfli1-x86-64-v3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Deflate/zlib compatible compression library | https://github.com/google/zopfli


## 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.
- [libdeflate](https://www.automicvault.com/pkg/brew/libdeflate/) - 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.
- [zchunk](https://www.automicvault.com/pkg/brew/zchunk/) - Shares av.db curated category or tags: c, cli, compression, developer-tools.
- [advancecomp](https://www.automicvault.com/pkg/brew/advancecomp/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [exomizer](https://www.automicvault.com/pkg/brew/exomizer/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [pixz](https://www.automicvault.com/pkg/brew/pixz/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [py7zr](https://www.automicvault.com/pkg/brew/py7zr/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [zopfli](https://www.automicvault.com/pkg/cargo/zopfli/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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