# Install zookeeper with Homebrew, apt, Nix, scoop

Centralized server for distributed coordination of services. Version 3.9.5 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:zookeeper
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install zookeeper
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libzookeeper-java
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#zookeeper
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/zookeeper
```

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

## Package facts

- **Package key:** brew:zookeeper
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/zookeeper>
- **Version:** 3.9.5
- **Source summary:** Centralized server for distributed coordination of services
- **Homepage:** <https://zookeeper.apache.org/>
- **Repository:** <https://github.com/apache/zookeeper>
- **Upstream docs:** <https://zookeeper.apache.org/doc/current>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=zookeeper/zookeeper-3.9.5/apache-zookeeper-3.9.5.tar.gz>
- **Last updated:** 2026-06-22T14:06:45-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- zkCleanup (cli)
- zkCli (cli)
- zkServer (cli)
- zkServer-initialize (cli)
- zkSnapShotToolkit (cli)
- zkSnapshotComparer (cli)
- zkSnapshotRecursiveSummaryToolkit (cli)
- zkTxnLogToolkit (cli)
- zkCleanup (alias)
- zkCli (alias)
- zkServer (alias)
- zkServer-initialize (alias)
- zkSnapShotToolkit (alias)
- zkSnapshotComparer (alias)
- zkSnapshotRecursiveSummaryToolkit (alias)
- zkTxnLogToolkit (alias)

## Dependencies

- openjdk
- openssl@3

## Build dependencies

- autoconf
- automake
- cppunit
- libtool
- maven
- pkgconf

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.9.5
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://zookeeper.apache.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Apache ZooKeeper is one of the canonical packages for distributed coordination: a replicated service that gives clustered applications naming, configuration, synchronization, membership, watches, and ordered state changes. It came out of Yahoo's large-scale infrastructure work and became a foundation block for much of the Hadoop-era data stack.

### Project history

ZooKeeper was developed at Yahoo to simplify coordination problems in large distributed systems. The 2010 USENIX paper by Hunt, Konar, Junqueira, and Reed describes it as a high-performance coordination kernel rather than a full application framework: clients build locks, leader election, group membership, and configuration patterns on top of a small, ordered data model.

The project moved into the Apache ecosystem through Hadoop and later became a top-level Apache project. Its model of znodes in a hierarchical namespace made it familiar to Unix-minded operators, while the ensemble architecture made it reliable enough for service discovery and cluster metadata in production systems.

### Adoption history

ZooKeeper became deeply associated with the Hadoop generation of infrastructure because projects such as Hadoop, HBase, Kafka, SolrCloud, and other distributed systems used it to coordinate cluster state. The Apache ZooKeeper site still describes it as trusted by Kafka, Hadoop, HBase, and many other distributed systems.

The project's own PoweredBy page records adoption across companies and Apache projects for leader election, service discovery, sharding, locking, group membership, and configuration management. In the 2020s, Kafka's move toward KRaft reduced one famous dependency, but ZooKeeper remains an active Apache project and still appears in older Kafka deployments and other distributed stacks.

### How it is used

Operators run ZooKeeper as an odd-sized ensemble and connect applications through client libraries or zkCli. Common package-level tasks include creating znodes for configuration, watching paths for changes, tracking live members through ephemeral nodes, and supporting recipes such as leader election, distributed locks, barriers, and service discovery.

The practical caution is that ZooKeeper is coordination infrastructure, not a general database. It is strongest for small metadata, ordered updates, and read-heavy coordination workloads; using it as bulk storage or chatty application state works against the design.

### Why package nerds care

ZooKeeper is package-nerd significant because it explains why so many distributed packages ship with zk-prefixed tools, conf/zoo.cfg examples, and operational advice about ensembles. For years, installing parts of the big-data stack meant also understanding ZooKeeper.

It also marks a historical transition in open-source infrastructure packaging: distributed systems stopped being single daemons and became small constellations of daemons, CLIs, config files, and service dependencies. ZooKeeper was often the coordination daemon in that constellation.

### Timeline

- 2000s: Yahoo develops ZooKeeper for coordination problems in large distributed infrastructure.
- Late 2000s: ZooKeeper moves through the Apache Hadoop ecosystem and gains use in Hadoop-adjacent projects.
- 2010: The USENIX ATC paper formalizes ZooKeeper as a wait-free coordination service for Internet-scale systems.
- 2010s: ZooKeeper becomes common infrastructure for Kafka, HBase, SolrCloud, Hadoop deployments, and company service platforms.
- 2020s: Some major users, especially Kafka, reduce or remove their ZooKeeper dependency, while ZooKeeper itself remains maintained for coordination workloads.

### Related projects

- Google Chubby: an earlier lock service often discussed as a conceptual predecessor for distributed coordination services.
- Apache Curator: a higher-level Java client and recipe library built to make ZooKeeper applications easier to write.
- etcd and Consul: later coordination/service-discovery systems that occupy adjacent operational territory.
- Apache Kafka, HBase, SolrCloud, Hadoop, and NiFi: distributed systems historically associated with ZooKeeper deployments.

### Sources

- <https://cwiki.apache.org/confluence/display/zookeeper/poweredby>
- <https://www.openlogic.com/blog/using-kafka-zookeeper>
- <https://www.usenix.org/legacy/event/atc10/tech/full_papers/Hunt.pdf>
- <https://zookeeper.apache.org/>


## Security Notes

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: conf/zoo.cfg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zookeeper
- **Version Scheme:** 0
- **Revision:** 0
- **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 - libzookeeper-java - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Core Java libraries for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-java-doc - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-java-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | API Documentation for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-mt-dev - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-mt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for multi threaded zookeeper C bindings | https://zookeeper.apache.org
- Debian apt - libzookeeper-mt2 - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-mt2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multi threaded C bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - libzookeeper-st-dev - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-st-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for single threaded zookeeper C bindings | https://zookeeper.apache.org
- Debian apt - libzookeeper-st2 - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: libzookeeper-st2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Single threaded C bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - python3-zookeeper - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: python3-zookeeper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python bindings for zookeeper | https://zookeeper.apache.org
- Debian apt - zookeeper - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | High-performance coordination service for distributed applications | https://zookeeper.apache.org
- Debian apt - zookeeper-bin - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeper-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line utilities for zookeeper | https://zookeeper.apache.org
- Debian apt - zookeeperd - 3.9.3-1+deb13u1: normalized package name match | Debian stable package indexes: zookeeperd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Init control scripts for zookeeper | https://zookeeper.apache.org
- Nix - zookeeper: normalized package name match | nixpkgs package indexes: pkgs/by-name/zo/zookeeper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libzookeeper-java - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Core Java libraries for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-java-doc - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-java-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | API Documentation for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-mt-dev - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-mt-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for multi threaded zookeeper C bindings | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-mt2 - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-mt2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multi threaded C bindings for zookeeper | https://zookeeper.apache.org
- Ubuntu apt - libzookeeper-st-dev - 3.9.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libzookeeper-st-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for single threaded zookeeper C bindings | https://zookeeper.apache.org


## Related links

- [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.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [cppunit](https://www.automicvault.com/pkg/brew/cppunit/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [flume](https://www.automicvault.com/pkg/brew/flume/) - Shares av.db curated category or tags: apache, cli, data, distributed-systems.
- [apache-arrow](https://www.automicvault.com/pkg/brew/apache-arrow/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-drill](https://www.automicvault.com/pkg/brew/apache-drill/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-flink](https://www.automicvault.com/pkg/brew/apache-flink/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-flink-cdc](https://www.automicvault.com/pkg/brew/apache-flink-cdc/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-geode](https://www.automicvault.com/pkg/brew/apache-geode/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-polaris](https://www.automicvault.com/pkg/brew/apache-polaris/) - Shares av.db curated category or tags: apache, cli, data.
- [apache-spark](https://www.automicvault.com/pkg/brew/apache-spark/) - Shares av.db curated category or tags: apache, cli, data.
- [kafka](https://www.automicvault.com/pkg/brew/kafka/) - Local package facts share a topical domain. Shared terms: cli, data, distributed, distributed-systems, openjdk.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
