# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 zpaq

查看 zpaq 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zpaq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zpaq
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zpaq
```

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

### Linux

- apk (92%):

```sh
sudo apk add zpaq
```

  证据: Alpine Linux edge package indexes: zpaq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install zpaq
```

  证据: Debian stable package indexes: zpaq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install zpaq
```

  证据: Fedora Rawhide package metadata: zpaq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#zpaq
```

  证据: nixpkgs package indexes: pkgs/by-name/zp/zpaq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install zpaq
```

  证据: openSUSE Tumbleweed package metadata: zpaq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:zpaq
- **软件包管理器:** Homebrew
- **版本:** 7.15
- **来源摘要:** Incremental, journaling command-line archiver
- **主页:** <https://mattmahoney.net/dc/zpaq.html>
- **仓库:** <https://github.com/zpaq/zpaq>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zpaq (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 7.15
## 项目历史与用法

ZPAQ is Matt Mahoney's incremental, journaling command-line archiver and backup format. It combines append-only archive history, deduplication, rollback by date or version, and a published archive specification with reference decoder.

### 项目历史

The official ZPAQ page traces readable archive compatibility back to version 1.00 in March 2009. The early format was a streaming archive format; version 5.00 in August 2012 added a level-2 format for compression with pre/post processing, version 6.00 in September 2012 introduced the journaling format with deduplication and rollback, and January 2014 versions added encryption and multipart archives.

ZPAQ belongs to Matt Mahoney's broader PAQ compression lineage. Its distinctive format design stores decompression code in a sandboxed virtual machine language called ZPAQL, which helps newer compression methods remain extractable by older readers when the archive only needs supported format features.

The final upstream package advertised on the official page is zpaq v7.15, released in August 2016, containing C++ source, libzpaq, documentation, Windows binaries, and a Makefile for Unix-like systems. The page presents ZPAQ as public-domain software and an open standard rather than a proprietary backup container.

### 采用历史

ZPAQ never became as mainstream as zip, 7-Zip, or RAR, but it earned a durable niche among compression and backup users because it solved repeated-backup storage differently from one-shot archivers. The official page compares it against backup and archiving tools and emphasizes realistic backup workloads with duplicate and already-compressed files.

The batch package metadata shows ZPAQ packaged in Homebrew, Debian, Ubuntu, Fedora, Alpine, MacPorts, Nix, and openSUSE. That broad Unix packaging footprint reflects a tool valued by technically minded users even after upstream development slowed.

### 使用方式

Typical usage is `zpaq add archive.zpaq files` for incremental backups and `zpaq extract archive.zpaq path -until DATE_OR_VERSION` to restore old states. Updates append new archive data instead of overwriting old versions, and interrupted transacted updates are ignored or overwritten on the next update.

ZPAQ is best understood as a user-level backup and archival tool. The official documentation warns against using it for complete operating-system backups and lists filesystem metadata that it does not preserve, such as ACLs, owner/group IDs, registry data, and special device files.

### 为什么软件包爱好者会关心

ZPAQ matters to package nerds because it is both a CLI and a format study: append-only backups, content-defined chunking, SHA-1 fragment deduplication, optional encryption, multipart remote archive workflows, and a published decoder specification in one small tool.

It is also a good example of a high-compression research lineage surviving as a practical package. Users install `zpaq` not because it is fashionable, but because no ordinary archive format quite has the same combination of journaling history and deduplicated backup behavior.

### 时间线

- 2009-03: ZPAQ v1.00 establishes the level-1 streaming archive format.
- 2012-08: ZPAQ v5.00 adds the level-2 format with pre/post processing.
- 2012-09: ZPAQ v6.00 adds the journaling format with deduplication and rollback.
- 2014-01: ZPAQ v6.44 adds encrypted archives.
- 2014-01: ZPAQ v6.47 adds multipart archive support.
- 2016-08-17: ZPAQ v7.15 is released on the official site.

### Related projects

- PAQ, PAQ8, LPAQ, and related Matt Mahoney compression projects are the research family around ZPAQ.
- libzpaq is the C++ compression/decompression library shipped with ZPAQ.
- zpaqfranz is a later fork that extends the ZPAQ backup idea for more operational disaster-recovery use cases.

### 来源

- <https://mattmahoney.net/dc/>
- <https://mattmahoney.net/dc/zpaq.html>
- input.json source_facts.package-manager


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - zpaq - 7.15+repack-1: normalized package name match | Debian stable package indexes: zpaq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | maximum reference compressor for ZPAQ open standard | http://mattmahoney.net/dc/zpaq.html
- Nix - zpaq: normalized package name match | nixpkgs package indexes: pkgs/by-name/zp/zpaq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - zpaq - 7.15+repack-1: normalized package name match | Ubuntu 24.04 LTS package indexes: zpaq from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | maximum reference compressor for ZPAQ open standard | http://mattmahoney.net/dc/zpaq.html
- apk - zpaq - 7.15-r0: normalized package name match | Alpine Linux edge package indexes: zpaq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A journaling archiver optimized for backup | https://mattmahoney.net/dc/zpaq.html
- apk - zpaq-doc - 7.15-r0: normalized package name match | Alpine Linux edge package indexes: zpaq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A journaling archiver optimized for backup (documentation) | https://mattmahoney.net/dc/zpaq.html
- dnf - zpaq - 7.15-26.fc45: normalized package name match | Fedora Rawhide package metadata: zpaq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Incremental journaling back-up archiver | http://mattmahoney.net/dc/zpaq.html
- dnf - zpaq-devel - 7.15-26.fc45: normalized package name match | Fedora Rawhide package metadata: zpaq-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for ZPAQ library | http://mattmahoney.net/dc/zpaq.html
- dnf - zpaq-libs - 7.15-26.fc45: normalized package name match | Fedora Rawhide package metadata: zpaq-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for ZPAQ compression and decompression | http://mattmahoney.net/dc/zpaq.html
- zypper - zpaq - 7.15-4.4: normalized package name match | openSUSE Tumbleweed package metadata: zpaq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A journaling, incremental, deduplicating archiver | http://mattmahoney.net/dc/zpaq.html
- MacPorts - zpaq: normalized package name match | MacPorts ports tree: archivers/zpaq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/zpaq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zpaq.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
