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

Generic-purpose lossless compression algorithm by Google. Version 1.2.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:brotli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install brotli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install brotli
```

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

### Linux

- apk (92%):

```sh
sudo apk add brotli
```

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

- Debian apt (92%):

```sh
sudo apt install brotli
```

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

- dnf (92%):

```sh
sudo dnf install brotli
```

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

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

- pacman (92%):

```sh
sudo pacman -S brotli
```

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

- zypper (92%):

```sh
sudo zypper install brotli
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/brotli
```

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

- winget (92%):

```sh
winget install --id Google.Brotli -e
```

  Evidence: Windows Package Manager source index: Google.Brotli from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:brotli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/brotli>
- **Version:** 1.2.0
- **Source summary:** Generic-purpose lossless compression algorithm by Google
- **Homepage:** <https://github.com/google/brotli>
- **Repository:** <https://github.com/google/brotli>
- **Upstream docs:** <https://github.com/google/brotli#readme>
- **License:** MIT
- **Source archive:** <https://github.com/google/brotli/archive/refs/tags/v1.2.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

Brotli is Google's general-purpose lossless compression format and reference implementation. It became especially important on the web through the `br` HTTP content coding and through WOFF2 font compression, making the Homebrew `brotli` CLI both a developer utility and a packaging handle for a web-platform primitive.

### Project history

Google announced Brotli as an open-source compression algorithm in September 2015, positioning it as a successor in spirit to Zopfli but with a new data format rather than Deflate compatibility. The announcement credited the format's density to context modeling, entropy-code reuse, a larger sliding window, and a static dictionary, and noted that the name means small bread in Swiss German.

The IETF published RFC 7932 in July 2016 as the authoritative specification for the Brotli compressed data format. The RFC defines a lossless format using LZ77 and Huffman coding, notes that the format is independent of CPU and operating system, registers the `br` HTTP content coding, and records Brotli as an integral part of WOFF 2.0.

### Adoption history

Brotli adoption moved quickly from Google's open-source release into browser and server infrastructure. Chrome Platform Status tracks the `Accept-Encoding: br` feature for HTTPS connections, and RFC 7932's IANA registration made `br` the standard content-coding token.

Package-manager adoption is unusually broad because Brotli is both an end-user CLI and a build/runtime dependency for web servers, language bindings, font pipelines, browsers, and package ecosystems. The input package facts list Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, Winget, and openSUSE packages.

### How it is used

The command-line tool compresses and decompresses files, while the library is used by HTTP servers, CDNs, browsers, package managers, build systems, and font tooling. In web deployment, Brotli is commonly used for precompressed static assets or dynamic HTTPS responses advertised with `Content-Encoding: br`.

### Why package nerds care

Brotli is package-nerd catnip because it is a tiny-looking formula with enormous transitive significance: installable as one CLI, but embedded in the web stack as a standard content coding. It is also a reminder that compression tools are not just archivers; they become protocol features, browser compatibility questions, build-pipeline knobs, and distro security-maintenance surfaces.

### Timeline

- 2013: Google publishes Zopfli, the Deflate-compatible predecessor cited in the Brotli announcement.
- 2015-09-22: Google announces and open-sources Brotli.
- 2016: Chrome Platform Status tracks `Accept-Encoding: br` for HTTPS connections.
- 2016-07: RFC 7932 publishes the Brotli compressed data format and registers the `br` HTTP content coding.
- 2020s: Brotli is packaged broadly across Unix, Windows, and language ecosystems.

### Related projects

- Related compression projects include Zopfli, zlib/Deflate/gzip, zstd, LZMA/xz, bzip2, libdeflate, and WOFF2 tooling. Brotli's closest historical sibling is Zopfli, while its web-deployment peer is gzip and its modern compression peer is often zstd.

### Sources

- <https://chromestatus.com/feature/5420797577396224>
- <https://github.com/google/brotli#readme>
- <https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html>
- <https://www.rfc-editor.org/rfc/rfc7932.html>
- source_facts.package-manager


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

## Other Package-Manager Records

- Debian apt - brotli - 1.1.0-2+b7: normalized package name match | Debian stable package indexes: brotli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lossless compression algorithm and format (command line utility) | https://github.com/google/brotli
- Debian apt - libbrotli-dev - 1.1.0-2+b7: normalized package name match | Debian stable package indexes: libbrotli-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing brotli encoder and decoder (development files) | https://github.com/google/brotli
- Debian apt - libbrotli1 - 1.1.0-2+b7: normalized package name match | Debian stable package indexes: libbrotli1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing brotli encoder and decoder (shared libraries) | https://github.com/google/brotli
- Debian apt - python3-brotli - 1.1.0-2+b7: normalized package name match | Debian stable package indexes: python3-brotli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lossless compression algorithm and format (Python 3 version) | https://github.com/google/brotli
- Nix - brotli: normalized package name match | nixpkgs package indexes: pkgs/by-name/br/brotli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - brotli - 1.1.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: brotli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lossless compression algorithm and format (command line utility) | https://github.com/google/brotli
- Ubuntu apt - libbrotli-dev - 1.1.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libbrotli-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing brotli encoder and decoder (development files) | https://github.com/google/brotli
- Ubuntu apt - libbrotli1 - 1.1.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libbrotli1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing brotli encoder and decoder (shared libraries) | https://github.com/google/brotli
- Ubuntu apt - python3-brotli - 1.1.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-brotli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lossless compression algorithm and format (Python 3 version) | https://github.com/google/brotli
- apk - brotli - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: brotli from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor | https://github.com/google/brotli
- apk - brotli-dev - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: brotli-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor (development files) | https://github.com/google/brotli
- apk - brotli-doc - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: brotli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor (documentation) | https://github.com/google/brotli
- apk - brotli-libs - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: brotli-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor (libraries) | https://github.com/google/brotli
- apk - brotli-static - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: brotli-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor (static library) | https://github.com/google/brotli
- apk - py3-brotli - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: py3-brotli from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Generic lossless compressor (python bindings) | https://github.com/google/brotli
- apk - py3-brotli-pyc - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: py3-brotli-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for py3-brotli | https://github.com/google/brotli


## 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.
- [apache-arrow](https://www.automicvault.com/pkg/brew/apache-arrow/) - Popular package that depends on this formula.
- [chawan](https://www.automicvault.com/pkg/brew/chawan/) - Popular package that depends on this formula.
- [curl](https://www.automicvault.com/pkg/brew/curl/) - Popular package that depends on this formula.
- [dotnet](https://www.automicvault.com/pkg/brew/dotnet/) - Popular package that depends on this formula.
- [dotnet@9](https://www.automicvault.com/pkg/brew/dotnet-9/) - Popular package that depends on this formula.
- [drogon](https://www.automicvault.com/pkg/brew/drogon/) - Popular package that depends on this formula.
- [dvisvgm](https://www.automicvault.com/pkg/brew/dvisvgm/) - Popular package that depends on this formula.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - Popular package that depends on this formula.
- [advancecomp](https://www.automicvault.com/pkg/brew/advancecomp/) - 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.
- [libdeflate](https://www.automicvault.com/pkg/brew/libdeflate/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [pigz](https://www.automicvault.com/pkg/brew/pigz/) - 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.
- [upx](https://www.automicvault.com/pkg/brew/upx/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [zchunk](https://www.automicvault.com/pkg/brew/zchunk/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [brotli](https://www.automicvault.com/pkg/cargo/brotli/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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