# 使用 Homebrew, pacman, scoop, zypper 安装 kafka

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

## 安装

```sh
sudo av install brew:kafka
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kafka
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S kafka
```

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

- zypper (92%):

```sh
sudo zypper install kafka-source
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/kafka
```

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

## 软件包事实

- **软件包键:** brew:kafka
- **软件包管理器:** Homebrew
- **版本:** 4.3.1
- **来源摘要:** Open-source distributed event streaming platform
- **主页:** <https://kafka.apache.org/>
- **最后更新:** 2026-07-31T08:47:02+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- connect-distributed (别名)
- connect-mirror-maker (别名)
- connect-plugin-path (别名)
- connect-standalone (别名)
- kafka-acls (别名)
- kafka-broker-api-versions (别名)
- kafka-client-metrics (别名)
- kafka-cluster (别名)
- kafka-configs (别名)
- kafka-console-consumer (别名)
- kafka-console-producer (别名)
- kafka-console-share-consumer (别名)
- kafka-consumer-groups (别名)
- kafka-consumer-perf-test (别名)
- kafka-delegation-tokens (别名)
- kafka-delete-records (别名)
- kafka-dump-log (别名)
- kafka-e2e-latency (别名)
- kafka-features (别名)
- kafka-get-offsets (别名)
- kafka-groups (别名)
- kafka-jmx (别名)
- kafka-leader-election (别名)
- kafka-log-dirs (别名)
- kafka-metadata-quorum (别名)
- kafka-metadata-shell (别名)
- kafka-producer-perf-test (别名)
- kafka-reassign-partitions (别名)
- kafka-replica-verification (别名)
- kafka-run-class (别名)
- kafka-server-start (别名)
- kafka-server-stop (别名)
- kafka-share-consumer-perf-test (别名)
- kafka-share-groups (别名)
- kafka-storage (别名)
- kafka-streams-application-reset (别名)
- kafka-streams-groups (别名)
- kafka-topics (别名)
- kafka-transactions (别名)
- kafka-verifiable-consumer (别名)
- kafka-verifiable-producer (别名)
- kafka-verifiable-share-consumer (别名)
- trogdor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Apache Kafka is a distributed event-streaming platform that began at LinkedIn and became a major Apache Software Foundation data project. It is both a server platform and a package that installs a large family of command-line tools for brokers, topics, consumers, producers, Connect, Streams, storage, metadata, and operations.

### 项目历史

LinkedIn announced Kafka publicly on June 16, 2011 as a distributed publish-subscribe messaging system, open sourced under the Apache 2.0 license and submitted to the Apache Incubator. The announcement described Kafka as a system for high-throughput event data and noted that a paper had appeared at NetDB 2011.

The Apache GitHub repository was created in August 2011. Kafka graduated from the Apache Incubator on October 23, 2012, and Apache project records identify the Kafka committee as established in November 2012.

Over time Kafka expanded beyond a broker and client protocol into a broader event-streaming platform. Kafka Connect, Kafka Streams, MirrorMaker, security features, storage tooling, metadata tooling, and the Kafka Improvement Proposal process all became part of the operational and governance surface around the package.

### 采用历史

Kafka's adoption followed from its original LinkedIn use case: durable, high-throughput movement of event data between many producers and consumers. Its Apache governance and Java/Scala ecosystem helped it become a common foundation for streaming analytics, log aggregation, change-data capture, event-driven services, and data pipelines.

Package-manager adoption reflects two overlapping audiences. Developers install Kafka locally to run brokers and command scripts for development, while operators use the same scripts to inspect and administer clusters. Homebrew, Scoop, Pacman, and other package entries expose Kafka as a developer workstation dependency as much as a server component.

### 使用方式

The Homebrew package installs many command-line entry points, including kafka-topics, kafka-console-producer, kafka-console-consumer, kafka-consumer-groups, kafka-configs, kafka-server-start, kafka-storage, and Kafka Connect scripts. That makes it both a runnable local broker distribution and a CLI toolbox.

Kafka is used when systems need durable ordered logs, consumer groups, replayable event streams, and integration points between services and data systems. The official documentation and quickstart center the core loop: start a broker, create topics, write events, read events, and build producers, consumers, Streams, or Connect workloads.

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

Apache Kafka is significant in package databases because one formula exposes an entire infrastructure platform plus dozens of command shims. It is a good stress test for package metadata: executable lists are long, config files are distribution-relative, and the package name refers to a server, protocol ecosystem, and CLI family at once.

It is also historically important because many later packages in this batch exist to make Kafka easier to operate: kaf and kafkactl provide friendlier CLIs, while cloud-specific plugins exist because managed Kafka-compatible services introduced authentication and provider-specific edge cases.

### 时间线

- 2011-06-16: LinkedIn announced Kafka as an open-source distributed publish-subscribe messaging system.
- 2011-08: Apache Kafka GitHub repository created.
- 2012-10-23: Kafka graduated from the Apache Incubator.
- 2012-11: Apache Kafka committee established.
- 2015 onward: Kafka's ecosystem expanded around Streams, Connect, managed services, and Kafka Improvement Proposals.

### Related projects

- Kafka's close project family includes Kafka Connect, Kafka Streams, MirrorMaker, Schema Registry implementations, kcat, kaf, kafkactl, Apache Flink, Apache Pulsar, and managed Kafka-compatible services such as Amazon MSK, Confluent Cloud, and Azure Event Hubs for Kafka clients.

### 来源

- <https://api.github.com/repos/apache/kafka>
- <https://engineering.linkedin.com/27/project-kafka-distributed-publish-subscribe-messaging-system-reaches-v06>
- <https://formulae.brew.sh/formula/kafka>
- <https://github.com/apache/kafka>
- <https://incubator.apache.org/projects/kafka.html>
- <https://kafka.apache.org/documentation/>
- <https://kafka.apache.org/quickstart>
- <https://projects.apache.org/committee.html?kafka=>


## 安全说明

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

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service
- generalized runtime or code generation signal
- infrastructure mutation or orchestration signal


## 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: config/server.properties
## 其他软件包管理器记录

- pacman - kafka - 4.3.1-1: normalized package name match | Arch Linux sync databases: kafka from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An open-source distributed event streaming platform | https://kafka.apache.org/
- zypper - kafka-source - 2.1.0-3.17: normalized package name match | openSUSE Tumbleweed package metadata: kafka-source from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Source code of Apache Kafka | http://kafka.apache.org
- Scoop - main/kafka: normalized package name match | Scoop official bucket manifest trees: bucket/kafka.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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