# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 zip

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

## 安装

```sh
sudo av install brew:zip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zip
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zip
```

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

### Linux

- apk (92%):

```sh
sudo apk add zip
```

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

- Debian apt (92%):

```sh
sudo apt install zip
```

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

- dnf (92%):

```sh
sudo dnf install zip
```

  证据: Fedora Rawhide package metadata: zip 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#zip
```

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

- pacman (92%):

```sh
sudo pacman -S zip
```

  证据: Arch Linux sync databases: zip from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install zip
```

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

### Windows

- Chocolatey (92%):

```sh
choco install zip
```

  证据: Chocolatey community package catalog: zip from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','zerotier-one'

- Scoop (92%):

```sh
scoop install main/zip
```

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

- winget (92%):

```sh
winget install --id Diorser.LiteMonitor -e
```

  证据: Windows Package Manager source index: Diorser.LiteMonitor from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:zip
- **软件包管理器:** Homebrew
- **版本:** 3.0
- **来源摘要:** Compression and file packaging/archive utility
- **主页:** <https://infozip.sourceforge.net/Zip.html>
- **最后更新:** 2026-07-10T18:22:27-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zip (别名)
- zipcloak (别名)
- zipnote (别名)
- zipsplit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The `zip` package is the Info-ZIP implementation of the ZIP compressor-archiver: a small command-line tool attached to one of computing's most durable archive formats. Its significance is partly technical, but mostly social: ZIP became the common archive language across DOS, Windows, Unix, macOS, Java, office documents, EPUB, mobile packages, and countless download workflows.

### 项目历史

ZIP as a file format originated with PKWARE. The Library of Congress format description identifies ZIP as a cross-platform storage and transfer format, developed and maintained by PKWARE, and notes Phil Katz as the original developer of the format. PKWARE's APPNOTE specification says the format has been publicly specified since 1989 and remains maintained for interoperability.

Info-ZIP formed in 1990 as an Internet-based workgroup and mailing list. Its stated purpose was to provide free, portable Zip and UnZip utilities compatible with PKWARE's DOS-based tools. The official Zip page emphasizes portability beyond MS-DOS and the ability to run on many operating systems.

Info-ZIP Zip developed into the portable command-line counterpart to a format that had already escaped any one vendor. The project's own pages document releases across the 1990s and 2000s, including Zip 2.1 in 1996, Zip 2.2 in 1997, Zip 2.3 in 1999, Zip 2.32 in 2006, and Zip 3.0 in 2008.

### 采用历史

Info-ZIP's adoption story is one of portability. The project says it supports hardware from microcomputers to Cray systems and operating systems including Unix, VMS, OS/2, Windows, MS-DOS, classic Mac OS, AmigaDOS, Atari TOS, MVS, VM/CMS, Tandem NSK, and others. That breadth made `zip` and `unzip` natural baseline tools in Unix-like package collections.

The ZIP format became a container substrate for other ecosystems. The Library of Congress notes adoption as the package/container for Office Open XML, OpenDocument, and EPUB, while PKWARE's APPNOTE lists common ZIP-based extensions such as JAR, WAR, DOCX, XLSX, PPTX, ODT, ODS, and ODP.

Info-ZIP code also spread into third-party software. The project page describes uses in IBM products, Sun's HotJava distribution, Novell NetWare installation, Windows products such as WinZip and DynaZIP DLLs, PGP, and the zlib compression library lineage.

### 使用方式

`zip` packages files or directory trees into a ZIP archive, with metadata such as names, paths, timestamps, protection bits, and integrity checks. It is used for software distribution, archiving, temporary compression, source release bundles, build artifacts, and portable file exchange.

The Info-ZIP implementation has historically mattered on Unix-like systems because it behaves like a scriptable CLI. The official page calls out features such as creating archives in a pipe or on a device, text-format conversion across Unix/MS-DOS/Macintosh conventions, and broad OS support.

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

`zip` is package-nerd bedrock: one of the commands you expect to exist before you know what the project is doing. It is simultaneously an end-user archive tool, a build artifact producer, and a compatibility bridge to formats that are ZIP files wearing application-specific extensions.

It also illustrates how packaging ecosystems preserve old interoperability contracts. A modern package manager carrying Info-ZIP is carrying a 1990s portability project, a 1989 archive specification, and the everyday ability to inspect or create archives used by Java, office suites, EPUB tooling, app bundles, and release pipelines.

### 时间线

- 1989: PKWARE begins public ZIP format specification through APPNOTE.
- 1990: Info-ZIP forms as an Internet mailing-list workgroup.
- 1993: PKWARE APPNOTE 2.0 introduces Deflate, later the default method used by most ZIP-compatible programs.
- 1996: Info-ZIP releases Zip 2.1 and UnZip 5.2.
- 1999: Info-ZIP releases Zip 2.3 under a BSD/X11-like license.
- 2008: Info-ZIP releases Zip 3.0 with large-file, ZIP64-scale archive, multipart, UTF-8 filename, and bzip2 support.

### Related projects

- PKWARE PKZIP and APPNOTE, the original ZIP format lineage.
- Info-ZIP UnZip, the companion extractor package.
- zlib, whose deflate implementation lineage is closely tied to Info-ZIP contributors and became a core compression library.
- gzip, 7-Zip, libarchive, minizip, Java JAR/WAR tooling, Office Open XML, OpenDocument, and EPUB.

### 来源

- <https://infozip.sourceforge.net/>
- <https://infozip.sourceforge.net/Info-ZIP2.html>
- <https://infozip.sourceforge.net/Zip.html>
- <https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT>
- <https://www.loc.gov/preservation/digital/formats/fdd/fdd000354.shtml>


## 安全说明

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

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

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

- Debian apt - zip - 3.0-15: normalized package name match | Debian stable package indexes: zip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Archiver for .zip files | https://infozip.sourceforge.net/Zip.html
- Nix - zip: normalized package name match | nixpkgs package indexes: pkgs/by-name/zi/zip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - zip - 3.0-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: zip from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Archiver for .zip files | https://infozip.sourceforge.net/Zip.html
- apk - zip - 3.0-r13: normalized package name match | Alpine Linux edge package indexes: zip from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Creates PKZIP-compatible .zip files | http://www.info-zip.org/pub/infozip/Zip.html
- apk - zip-doc - 3.0-r13: normalized package name match | Alpine Linux edge package indexes: zip-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Creates PKZIP-compatible .zip files (documentation) | http://www.info-zip.org/pub/infozip/Zip.html
- dnf - zip - 3.0-46.fc45: normalized package name match | Fedora Rawhide package metadata: zip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A file compression and packaging utility compatible with PKZIP | http://www.info-zip.org/Zip.html
- pacman - zip - 3.0-13: normalized package name match | Arch Linux sync databases: zip from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compressor/archiver for creating and modifying zipfiles | http://www.info-zip.org/Zip.html
- zypper - zip - 3.0-24.7: normalized package name match | openSUSE Tumbleweed package metadata: zip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | File compression program | https://github.com/distropatches/zip/commits/opensuse
- MacPorts - zip: normalized package name match | MacPorts ports tree: archivers/zip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - zip: normalized package name match | Chocolatey community package catalog: zip from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','zerotier-one'
- Scoop - main/zip: normalized package name match | Scoop official bucket manifest trees: bucket/zip.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Diorser.LiteMonitor: normalized package name match | Windows Package Manager source index: Diorser.LiteMonitor from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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