# Install libzip with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

C library for reading, creating, and modifying zip archives. Version 1.11.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libzip
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libzip
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libzip
```

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

### Linux

- apk (92%):

```sh
sudo apk add libzip
```

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

- Debian apt (92%):

```sh
sudo apt install libzip-dev
```

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

- dnf (92%):

```sh
sudo dnf install libzip
```

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

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

- pacman (92%):

```sh
sudo pacman -S libzip
```

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

- zypper (92%):

```sh
sudo zypper install libzip-devel
```

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

## Package facts

- **Package key:** brew:libzip
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libzip>
- **Version:** 1.11.4
- **Source summary:** C library for reading, creating, and modifying zip archives
- **Homepage:** <https://libzip.org/>
- **Repository:** <https://github.com/nih-at/libzip>
- **Upstream docs:** <https://libzip.org/documentation>
- **License:** BSD-3-Clause
- **Source archive:** <https://libzip.org/download/libzip-1.11.4.tar.xz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- zipcmp (cli)
- zipmerge (cli)
- ziptool (cli)
- zipcmp (alias)
- zipmerge (alias)
- ziptool (alias)

## Dependencies

- xz
- zstd

## Build dependencies

- cmake

## Uses from macOS

- bzip2

## 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.11.4
- Local data: ok
- Upstream repository: https://libzip.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

libzip is a C library by Dieter Baron and Thomas Klausner for reading, creating, and modifying ZIP archives, with small companion tools such as zipcmp, zipmerge, and ziptool.

### Project history

The libzip license page carries copyright years beginning in 1999 for Dieter Baron and Thomas Klausner. The project news records the first standalone release, libzip 0.6, on June 9, 2005, when the API was overhauled, the license changed to the three-clause BSD license, man pages were added, and zipcmp and zipmerge were installed.

libzip 1.0 was released on May 3, 2015 with an I/O abstraction layer, native Windows file API support, file modification time support, the zip_error_t type, and a security fix for CVE-2015-2331. The official repository moved from the project Mercurial server to GitHub on December 8, 2017 to make contribution via issues and pull requests easier.

### Adoption history

libzip spread because it solves the library case that Info-ZIP-style tools do not: programmatic archive editing with a C API, package-manager-friendly licensing, and no requirement to shell out to zip or unzip. Its own packages page tracks distribution packaging, and the API documentation is structured around both reading and creating or modifying archives.

The project continued to add archive-format features used by downstream software: Zip64 and UTF-8 work in 0.11 in 2013, AES encryption in 1.2.0 in 2017, bzip2 support in 1.3.0 in 2017, traditional PKWare encryption support in 1.7.0 in 2020, and zstd and lzma support in 1.8.0 in 2021.

### How it is used

Developers use libzip when an application needs structured ZIP access: opening archives, reading entries, adding or replacing files, setting comments, changing compression or encryption, working with source callbacks, and closing modified archives. The command-line programs are useful for package tests, archive comparison, merging, and scripted edits.

### Why package nerds care

libzip matters in package graphs because ZIP is not just a file-compression format: it underlies EPUB, OOXML, OpenDocument, Java archives, app bundles, firmware, and asset containers. A small C library that can modify ZIP archives safely becomes a dependency for runtimes, document tools, language bindings, and build systems.

### Timeline

- 1999: libzip copyright history begins with Dieter Baron and Thomas Klausner.
- 2005-06-09: libzip 0.6 became the first standalone release.
- 2013-03-23: libzip 0.11 added Zip64 and UTF-8 support.
- 2015-05-03: libzip 1.0 introduced an I/O abstraction layer and fixed CVE-2015-2331.
- 2017-12-08: The official repository moved from Mercurial to GitHub.
- 2021-06-18: libzip 1.8.0 added zstd and lzma compression support.

### Related projects

- libzip sits beside command-line ZIP implementations rather than replacing them. Related concepts and projects include Info-ZIP tools, PKWARE ZIP specifications, zlib, language bindings, and the many document and package formats built on ZIP containers.

### Sources

- <https://libzip.org/documentation/libzip/>
- <https://libzip.org/license/>
- <https://libzip.org/news/>
- <https://libzip.org/packages/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libzip
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libzip-dev - 1.11.3-2: normalized package name match | Debian stable package indexes: libzip-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading, creating, and modifying zip archives (development) | https://libzip.org
- Debian apt - libzip5 - 1.11.3-2: normalized package name match | Debian stable package indexes: libzip5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading, creating, and modifying zip archives (runtime) | https://libzip.org
- Debian apt - zipcmp - 1.11.3-2: normalized package name match | Debian stable package indexes: zipcmp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | compare contents of zip archives | https://libzip.org
- Debian apt - zipmerge - 1.11.3-2: normalized package name match | Debian stable package indexes: zipmerge from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | merge zip archives | https://libzip.org
- Debian apt - ziptool - 1.11.3-2: normalized package name match | Debian stable package indexes: ziptool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modify zip archives | https://libzip.org
- Nix - libzip: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libzip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libzip-dev - 1.7.3-1.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzip-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading, creating, and modifying zip archives (development) | https://libzip.org
- Ubuntu apt - libzip4t64 - 1.7.3-1.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzip4t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading, creating, and modifying zip archives (runtime) | https://libzip.org
- Ubuntu apt - zipcmp - 1.7.3-1.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: zipcmp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | compare contents of zip archives | https://libzip.org
- Ubuntu apt - zipmerge - 1.7.3-1.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: zipmerge from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | merge zip archives | https://libzip.org
- Ubuntu apt - ziptool - 1.7.3-1.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: ziptool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modify zip archives | https://libzip.org
- apk - libzip - 1.11.4-r2: normalized package name match | Alpine Linux edge package indexes: libzip from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for manipulating zip archives | https://libzip.org/
- apk - libzip-dev - 1.11.4-r2: normalized package name match | Alpine Linux edge package indexes: libzip-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for manipulating zip archives (development files) | https://libzip.org/
- apk - libzip-doc - 1.11.4-r2: normalized package name match | Alpine Linux edge package indexes: libzip-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for manipulating zip archives (documentation) | https://libzip.org/
- apk - libzip-tools - 1.11.4-r2: normalized package name match | Alpine Linux edge package indexes: libzip-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | libzip cmp and merge tools | https://libzip.org/
- dnf - libzip - 1.11.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: libzip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library for reading, creating, and modifying zip archives | https://libzip.org/


## Related links

- [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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [dsda-doom](https://www.automicvault.com/pkg/brew/dsda-doom/) - Popular package that depends on this formula.
- [ebook-tools](https://www.automicvault.com/pkg/brew/ebook-tools/) - Popular package that depends on this formula.
- [fuse-zip](https://www.automicvault.com/pkg/brew/fuse-zip/) - Popular package that depends on this formula.
- [gwyddion](https://www.automicvault.com/pkg/brew/gwyddion/) - Popular package that depends on this formula.
- [huexpress](https://www.automicvault.com/pkg/brew/huexpress/) - Popular package that depends on this formula.
- [ideviceinstaller](https://www.automicvault.com/pkg/brew/ideviceinstaller/) - Popular package that depends on this formula.
- [imagemagick-full](https://www.automicvault.com/pkg/brew/imagemagick-full/) - Popular package that depends on this formula.
- [katago](https://www.automicvault.com/pkg/brew/katago/) - Popular package that depends on this formula.
- [libzzip](https://www.automicvault.com/pkg/brew/libzzip/) - Shares av.db curated category or tags: archive, cli, library, system, zip.
- [clzip](https://www.automicvault.com/pkg/brew/clzip/) - Shares av.db curated category or tags: archive, c, cli, compression, system.
- [lunzip](https://www.automicvault.com/pkg/brew/lunzip/) - Shares av.db curated category or tags: archive, c, cli, compression, system.
- [ouch](https://www.automicvault.com/pkg/brew/ouch/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [pax](https://www.automicvault.com/pkg/brew/pax/) - Shares av.db curated category or tags: archive, cli, system.
- [borgbackup](https://www.automicvault.com/pkg/brew/borgbackup/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [chmlib](https://www.automicvault.com/pkg/brew/chmlib/) - Shares av.db curated category or tags: c, cli, library, system.
- [dtrx](https://www.automicvault.com/pkg/brew/dtrx/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [squashfs](https://www.automicvault.com/pkg/brew/squashfs/) - Local package facts share a topical domain. Shared terms: archive, cli, compression, system, xz.

## Combined YAML source

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