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

Zstandard is a real-time compression algorithm. Version 1.5.7 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:zstd
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install zstd
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zstd
```

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

### Linux

- apk (92%):

```sh
sudo apk add zstd
```

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

- Debian apt (92%):

```sh
sudo apt install zstd
```

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

- dnf (92%):

```sh
sudo dnf install libzstd
```

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

  Evidence: nixpkgs package indexes: zstd from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S zstd
```

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

- zypper (92%):

```sh
sudo zypper install libzstd-devel
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/zstd
```

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

- winget (92%):

```sh
winget install --id Meta.Zstandard -e
```

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

## Package facts

- **Package key:** brew:zstd
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/zstd>
- **Version:** 1.5.7
- **Source summary:** Zstandard is a real-time compression algorithm
- **Homepage:** <https://facebook.github.io/zstd/>
- **Repository:** <https://github.com/facebook/zstd>
- **Upstream docs:** <https://facebook.github.io/zstd>
- **License:** (BSD-3-Clause OR GPL-2.0-only) AND BSD-2-Clause AND MIT
- **Source archive:** <https://github.com/facebook/zstd/archive/refs/tags/v1.5.7.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- pzstd (cli)
- unzstd (cli)
- zstd (cli)
- zstdcat (cli)
- zstdgrep (cli)
- zstdless (cli)
- zstdmt (cli)
- pzstd (alias)
- unzstd (alias)
- zstd (alias)
- zstdcat (alias)
- zstdgrep (alias)
- zstdless (alias)
- zstdmt (alias)

## Dependencies

- lz4
- xz

## Build dependencies

- cmake

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.5.7
- Local data: ok
- Upstream repository: https://github.com/facebook/zstd
- Upstream latest detected: v1.5.7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Zstandard, usually packaged as zstd, is Meta's fast general-purpose lossless compression format, C library, and command-line tool. It targets zlib-class compression ratios with much faster compression and decompression, plus tunable levels and dictionary training.

### Project history

Zstandard was developed at Facebook by Yann Collet and collaborators as a modern successor in the design space occupied by Deflate, gzip, zlib, lz4, and xz. Meta announced Zstandard 1.0 on 2016-08-31, describing it as a compression algorithm and implementation designed for modern CPUs, high decompression speed, and a broad range of lossless-compression scenarios.

The reference implementation lives in the facebook/zstd repository as a C library and CLI. The README describes a stable format, the libzstd API, the zstd command-line utility, support for producing and decoding .zst plus compatibility with .gz, .xz, and .lz4 files, and a list of ports and bindings for other languages.

The format moved from a popular open-source implementation into a documented Internet format. RFC 8878 describes Zstandard compression and registers the application/zstd media type, content encoding, and structured syntax suffix for transporting zstd-compressed content.

### Adoption history

zstd spread because it hit a package-maintainer sweet spot: faster decompression than gzip-class tools, better ratio than many fast compressors, a stable file format, and a normal Unix CLI. That combination made it attractive for source archives, package payloads, container layers, log compression, backup streams, and embedded compression inside larger systems.

Filesystem adoption gave zstd particular visibility among system users. Btrfs documentation records ZSTD support since Linux 4.14 alongside ZLIB and LZO, and Meta engineering later wrote about transparent zstd compression in Btrfs as a way to improve storage efficiency without a noticeable performance drop in its environment.

The project stayed active rather than freezing at the format layer. The changelog shows continuing work through the 1.5.x series and a 1.6.0 entry in Dec 2025, including CLI, API, build-system, portability, and performance improvements.

### How it is used

The package gives users commands such as zstd, unzstd, zstdcat, zstdgrep, zstdless, pzstd, and zstdmt. Common shell usage mirrors gzip-style workflows: compress a file or stream to .zst, decompress with unzstd or zstd -d, pipe through zstdcat, and tune level or --fast modes for speed/ratio trade-offs.

For developers, libzstd exposes one-shot compression/decompression, reusable contexts, streaming APIs, dictionaries, frame inspection, and advanced experimental APIs. The README also documents dictionary training with zstd --train for small repeated records, a major reason zstd appears in data stores and network protocols rather than only in file archivers.

### Why package nerds care

zstd is one of the rare compression packages that matters at every packaging layer: as a user-facing CLI, a shared library dependency, an archive format, a filesystem compressor, and a performance knob inside build and distribution infrastructure.

For package nerds it is also a case study in successful infrastructure standardization: a vendor-originated tool became a stable RFC-described format with independent implementations, many bindings, and broad distribution support while retaining the boring Unix ergonomics expected from gzip-era tools.

### Timeline

- 2016-08-31: Facebook announced Zstandard 1.0.
- 2017: ZSTD support entered Btrfs documentation as available since Linux 4.14.
- 2018-12-19: Meta engineering published notes on large-scale storage improvements with Zstandard.
- 2021: RFC 8878 documented the Zstandard format and application/zstd media type.
- 2025-02: zstd 1.5.7 changelog entry records CLI, API, performance, and portability work.
- 2025-12: zstd 1.6.0 changelog entry records legacy-format support disabled by default.

### Related projects

- Related projects include zlib, gzip, Deflate, lz4, xz, Brotli, Finite State Entropy, Huff0, Btrfs, SquashFS, libarchive-style tooling, and language bindings listed from the Zstandard homepage.

### Sources

- <https://btrfs.readthedocs.io/en/latest/Compression.html>
- <https://engineering.fb.com/2016/08/31/core-infra/smaller-and-faster-data-compression-with-zstandard/>
- <https://engineering.fb.com/2018/12/19/core-infra/zstandard/>
- <https://facebook.github.io/zstd/>
- <https://github.com/facebook/zstd>
- <https://raw.githubusercontent.com/facebook/zstd/dev/CHANGELOG>
- <https://raw.githubusercontent.com/facebook/zstd/dev/README.md>
- <https://www.rfc-editor.org/info/rfc8878/>


## 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:** zstd
- **Aliases:** pzstd
- **Version Scheme:** 0
- **Revision:** 1
- **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 - zstd - 1.5.7+dfsg-1: normalized package name match | Debian stable package indexes: zstd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast lossless compression algorithm -- CLI tool | https://github.com/facebook/zstd
- Nix - zstd: normalized package name match | nixpkgs package indexes: zstd from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - zstd - 1.5.5+dfsg2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: zstd from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | fast lossless compression algorithm -- CLI tool | https://github.com/facebook/zstd
- apk - zstd - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm | https://facebook.github.io/zstd/
- apk - zstd-dev - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm (development files) | https://facebook.github.io/zstd/
- apk - zstd-doc - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm (documentation) | https://facebook.github.io/zstd/
- apk - zstd-frugal - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd-frugal from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm (frugal cli) | https://facebook.github.io/zstd/
- apk - zstd-libs - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm (libraries) | https://facebook.github.io/zstd/
- apk - zstd-static - 1.5.7-r2: normalized package name match | Alpine Linux edge package indexes: zstd-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zstandard - Fast real-time compression algorithm (static library) | https://facebook.github.io/zstd/
- dnf - libzstd - 1.5.7-5.fc44: normalized package name match | Fedora Rawhide package metadata: libzstd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Zstd shared library | https://github.com/facebook/zstd
- dnf - libzstd-devel - 1.5.7-5.fc44: normalized package name match | Fedora Rawhide package metadata: libzstd-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Header files for Zstd library | https://github.com/facebook/zstd
- dnf - libzstd-static - 1.5.7-5.fc44: normalized package name match | Fedora Rawhide package metadata: libzstd-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Static variant of the Zstd library | https://github.com/facebook/zstd
- dnf - zstd - 1.5.7-5.fc44: normalized package name match | Fedora Rawhide package metadata: zstd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Zstd compression library | https://github.com/facebook/zstd
- pacman - zstd - 1.5.7-3: normalized package name match | Arch Linux sync databases: zstd from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | Zstandard - Fast real-time compression algorithm | https://facebook.github.io/zstd/
- zypper - libzstd-devel - 1.5.7-4.2: normalized package name match | openSUSE Tumbleweed package metadata: libzstd-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the Zstd compression library | https://github.com/facebook/zstd
- zypper - libzstd-devel-32bit - 1.5.7-4.2: normalized package name match | openSUSE Tumbleweed package metadata: libzstd-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the Zstd compression library | https://github.com/facebook/zstd


## 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.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [aarch64-elf-binutils](https://www.automicvault.com/pkg/brew/aarch64-elf-binutils/) - Popular package that depends on this formula.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Popular package that depends on this formula.
- [aarch64-elf-gdb](https://www.automicvault.com/pkg/brew/aarch64-elf-gdb/) - Popular package that depends on this formula.
- [adios2](https://www.automicvault.com/pkg/brew/adios2/) - Popular package that depends on this formula.
- [alive2](https://www.automicvault.com/pkg/brew/alive2/) - Popular package that depends on this formula.
- [apache-arrow](https://www.automicvault.com/pkg/brew/apache-arrow/) - Popular package that depends on this formula.
- [appstream](https://www.automicvault.com/pkg/brew/appstream/) - Popular package that depends on this formula.
- [apt](https://www.automicvault.com/pkg/brew/apt/) - Popular package that depends on this formula.
- [lzfse](https://www.automicvault.com/pkg/brew/lzfse/) - Shares av.db curated category or tags: cli, compression, library, system.
- [clzip](https://www.automicvault.com/pkg/brew/clzip/) - Shares av.db curated category or tags: cli, compression, system.
- [crabz](https://www.automicvault.com/pkg/brew/crabz/) - Shares av.db curated category or tags: cli, compression, system.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - Shares av.db curated category or tags: cli, compression, system.
- [gzip](https://www.automicvault.com/pkg/brew/gzip/) - Shares av.db curated category or tags: cli, compression, system.
- [lizard](https://www.automicvault.com/pkg/brew/lizard/) - Shares av.db curated category or tags: cli, compression, system.
- [lrzip](https://www.automicvault.com/pkg/brew/lrzip/) - Shares av.db curated category or tags: cli, compression, system.
- [lunzip](https://www.automicvault.com/pkg/brew/lunzip/) - Shares av.db curated category or tags: cli, compression, system.
- [squashfs](https://www.automicvault.com/pkg/brew/squashfs/) - Local package facts share a topical domain. Shared terms: cli, compression, lz4, system, xz.
- [dar](https://www.automicvault.com/pkg/brew/dar/) - Local package facts share a topical domain. Shared terms: cli, compression, lz4, system, xz.

## Combined YAML source

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