# 使用 Homebrew, MacPorts 安装 libzzip

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

## 安装

```sh
sudo av install brew:libzzip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libzzip
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libzzip
```

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

## 软件包事实

- **软件包键:** brew:libzzip
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libzzip>
- **版本:** 0.13.80
- **来源摘要:** Library providing read access on ZIP-archives
- **主页:** <https://github.com/gdraheim/zziplib>
- **仓库:** <https://github.com/gdraheim/zziplib>
- **上游文档:** <https://github.com/gdraheim/zziplib#readme>
- **许可证:** LGPL-2.0-or-later OR MPL-1.1
- **源码归档:** <https://github.com/gdraheim/zziplib/archive/refs/tags/v0.13.80.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- unzip-mem (cli)
- unzzip (cli)
- unzzip-big (cli)
- unzzip-mem (cli)
- unzzip-mix (cli)
- zzcat (cli)
- zzdir (cli)
- zzxorcat (cli)
- zzxorcopy (cli)
- zzxordir (cli)
- unzip-mem (别名)
- unzzip (别名)
- unzzip-big (别名)
- unzzip-mem (别名)
- unzzip-mix (别名)
- zzcat (别名)
- zzdir (别名)
- zzxorcat (别名)
- zzxorcopy (别名)
- zzxordir (别名)

## 构建依赖

- cmake
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.13.80
- 本地数据: OK
- 上游仓库: https://github.com/gdraheim/zziplib
- 检测到的最新版本: v0.13.80 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

ZZIPlib is a lightweight C library for read access to ZIP archives and unpacked data, best known for POSIX-shaped zzip_ functions that can make zipped resources look file-like to an application.

### 项目历史

The official history says Guido Draheim developed zziplib from Tomi Ollila's zip08x work. The API documentation says Draheim picked up Ollila's ZIP decoder routines and wrapped them with call signatures resembling POSIX file APIs, so zzip_open has the same general shape as open(2) but can open zipped files.

The SourceForge documentation dates the ZIP access page to June 1, 2000 and the programmer interface page to July 20, 2002. The project page notes that it was later hosted on GitHub, and the GitHub repository summary says the project originated in 1999, was adopted by Guido Draheim in 2000, and moved to GitHub in 2017 for easier collaboration.

### 采用历史

zziplib found its niche in applications that wanted to bundle many read-only resource files into a single ZIP while keeping code close to ordinary file and directory access. The documentation explicitly names game and graphics application developers as requesters of extension and custom I/O support.

Its model is intentionally narrower than full ZIP tools: applications can create archives with ordinary zip/unzip utilities and then ship zziplib only for final read access. That made it attractive for packaged games, resource archives, and embedded or portable software where a small zlib-based reader was enough.

### 使用方式

Developers can call direct ZIP APIs such as zzip_dir_open and zzip_file_open, or use magic wrappers such as zzip_open, zzip_read, and zzip_close. The extension I/O layer lets applications recognize ZIP-derived formats such as JAR or game-resource extensions and route reads through custom handlers.

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

ZZIPlib is interesting because it captures an old packaging trick: ship assets as ZIP files but let code pretend they are files. The LGPL/MPL licensing, zlib dependency, POSIX-like API, SDL-oriented examples, and odd collection of small tools make it a very package-nerd archive library.

### 时间线

- 1999: Tomi Ollila explored ZIP decoder routines that became part of zziplib's ancestry.
- 2000-06-01: The zziplib ZIP access documentation was created.
- 2002-04: Ollila gave up remaining zip08x copyright restrictions and pointed the zip08x README to zziplib, according to the project history.
- 2002-07-20: The programmer interface documentation described zzip_open and related POSIX-like APIs.
- 2017: The project moved to GitHub for collaboration.

### Related projects

- zziplib depends on zlib for decompression and sits near Info-ZIP, PKWARE ZIP specifications, zipios++, SDL resource-loading examples, Java JAR files, Quake PK3 files, and OpenOffice or StarOffice ZIP-based document formats.

### 来源

- <https://github.com/gdraheim/zziplib>
- <https://zziplib.sourceforge.net/history.html>
- <https://zziplib.sourceforge.net/zzip-api.html>
- <https://zziplib.sourceforge.net/zzip-extio.html>
- <https://zziplib.sourceforge.net/zzip-zip.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libzzip
- **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

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

- MacPorts - libzzip: normalized package name match | MacPorts ports tree: archivers/libzzip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/zh-hans/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libzip](https://www.automicvault.com/zh-hans/pkg/brew/libzip/) - Shares av.db curated category or tags: archive, cli, library, system, zip.
- [pax](https://www.automicvault.com/zh-hans/pkg/brew/pax/) - Shares av.db curated category or tags: archive, cli, system.
- [ouch](https://www.automicvault.com/zh-hans/pkg/brew/ouch/) - Shares av.db curated category or tags: archive, cli, system.
- [star](https://www.automicvault.com/zh-hans/pkg/brew/star/) - Shares av.db curated category or tags: archive, cli, system.
- [wimlib](https://www.automicvault.com/zh-hans/pkg/brew/wimlib/) - Shares av.db curated category or tags: archive, cli, library, system.
- [afio](https://www.automicvault.com/zh-hans/pkg/brew/afio/) - Shares av.db curated category or tags: archive, cli, system.
- [archivemount](https://www.automicvault.com/zh-hans/pkg/brew/archivemount/) - Shares av.db curated category or tags: archive, cli, system.
- [augeas](https://www.automicvault.com/zh-hans/pkg/brew/augeas/) - Shares av.db curated category or tags: cli, library, system.
- [decompress-zip](https://www.automicvault.com/zh-hans/pkg/npm/decompress-zip/) - Local package facts share a topical domain. Shared terms: archive, archives, cli, system, unzip.

## Combined YAML source

View the package source record on GitHub. [combined/libzzip.yml](https://github.com/automic-vault/db/blob/main/combined/libzzip.yml)


## 来源

- 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
