# 使用 Homebrew, apk, chocolatey, Nix, pacman, zypper, apt, scoop, winget 安装 etcd

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

## 安装

```sh
sudo av install brew:etcd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install etcd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add etcd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#etcd
```

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

- pacman (92%):

```sh
sudo pacman -S etcd
```

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

- zypper (92%):

```sh
sudo zypper install etcd
```

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

- Debian apt (92%):

```sh
sudo apt install etcd-client
```

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

### Windows

- Chocolatey (92%):

```sh
choco install etcd
```

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

- Scoop (92%):

```sh
scoop install main/etcd
```

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

- winget (92%):

```sh
winget install --id etcd-io.etcd -e
```

  证据: Windows Package Manager source index: etcd-io.etcd from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:etcd
- **软件包管理器:** Homebrew
- **版本:** 3.7.1
- **来源摘要:** Key value store for shared configuration and service discovery
- **主页:** <https://etcd.io>
- **仓库:** <https://github.com/etcd-io/etcd>
- **最后更新:** 2026-08-02T12:51:37+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- etcd (别名)
- etcdctl (别名)
- etcdutl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

etcd is a strongly consistent, distributed key-value store for critical distributed-system data, especially cluster state, configuration, service discovery, leader election, and coordination.

### 项目历史

The etcd project was created at CoreOS in 2013. Its design centers on a reliable key-value store written in Go and backed by the Raft consensus algorithm, with a user-facing gRPC API and a simple command-line client, `etcdctl`.

The project's own README emphasizes simplicity, TLS support, performance, and reliability through Raft. That positioning made etcd less a general database and more the small, dependable coordination store that other distributed systems could build around.

### 采用历史

Kubernetes made etcd famous: CNCF described it as the primary data store for all Kubernetes clusters, storing and replicating cluster state while Raft handles failures and partitions. CNCF also named Cloud Foundry, CoreDNS, M3, Rook, TiKV, and other systems among etcd users or dependents.

In December 2018, CNCF accepted etcd as an incubation-level hosted project. In November 2020, CNCF announced etcd's graduation after demonstrating growing adoption, open governance, feature maturity, security audits, and community sustainability.

### 使用方式

The everyday package workflow is split between the `etcd` server and the `etcdctl` client. A user starts a single-node or clustered server listening on the standard client and peer ports, then uses commands such as `etcdctl put` and `etcdctl get` for key-value operations or higher-level features such as watches, leases, locks, and member management.

Operationally, etcd is treated as infrastructure state: it needs backups, monitoring, TLS, careful upgrade and downgrade paths, and cluster maintenance. That is why the documentation has substantial operations guides rather than only API examples.

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

etcd is a package-manager landmark because a tiny set of binaries can become the persistence layer for a whole orchestration platform. The package ships server, client, and utility commands, and its versioning affects Kubernetes control planes, cloud products, and distribution test matrices.

It also represents the Go single-binary cloud-native packaging style: official release binaries for Linux, macOS, Windows, and Docker, a Homebrew formula, distro packages for clients, and source-level module boundaries for libraries.

### 时间线

- 2013: etcd is created at CoreOS.
- 2018: CNCF accepts etcd as an incubating project.
- 2020: etcd graduates from CNCF incubation.
- 2022: etcd integrates continuous fuzzing through OSS-Fuzz work.

### Related projects

- Kubernetes is the best-known etcd user. The project is also associated with CoreOS, CNCF, Raft, CoreDNS, Cloud Foundry, M3, Rook, TiKV, and related cloud-native coordination systems.

### 来源

- <https://github.com/etcd-io/etcd>
- <https://etcd.io/docs>
- <https://etcd.io/blog/2022/etcd-integrates-continuous-fuzzing/>
- <https://www.cncf.io/blog/2018/12/11/cncf-to-host-etcd/>
- <https://www.cncf.io/announcements/2020/11/24/cloud-native-computing-foundation-announces-etcd-graduation/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

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

- Debian apt - etcd-client - 3.5.16-4: normalized package name match | Debian stable package indexes: etcd-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | highly-available key value store -- client | https://etcd.io
- Debian apt - etcd-server - 3.5.16-4: normalized package name match | Debian stable package indexes: etcd-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | highly-available key value store -- daemon | https://etcd.io
- Debian apt - golang-etcd-server-dev - 3.5.16-4: normalized package name match | Debian stable package indexes: golang-etcd-server-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | highly-available key value store -- source | https://etcd.io
- Nix - etcd: normalized package name match | nixpkgs package indexes: pkgs/by-name/et/etcd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - etcd-client - 3.4.30-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: etcd-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | highly-available key value store -- client | https://etcd.io
- Ubuntu apt - etcd-server - 3.4.30-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: etcd-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | highly-available key value store -- daemon | https://etcd.io
- Ubuntu apt - golang-etcd-server-dev - 3.4.30-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-etcd-server-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | highly-available key value store -- source | https://etcd.io
- apk - etcd - 3.6.13-r0: normalized package name match | Alpine Linux edge package indexes: etcd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A highly-available key value store for shared configuration and service discovery | https://github.com/etcd-io/etcd
- apk - etcd-ctl - 3.6.13-r0: normalized package name match | Alpine Linux edge package indexes: etcd-ctl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A command-line client for etcd | https://github.com/etcd-io/etcd
- apk - etcd-doc - 3.6.13-r0: normalized package name match | Alpine Linux edge package indexes: etcd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A highly-available key value store for shared configuration and service discovery (documentation) | https://github.com/etcd-io/etcd
- apk - etcd-openrc - 3.6.13-r0: normalized package name match | Alpine Linux edge package indexes: etcd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A highly-available key value store for shared configuration and service discovery (OpenRC init scripts) | https://github.com/etcd-io/etcd
- pacman - etcd - 3.7.1-1: normalized package name match | Arch Linux sync databases: etcd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A distributed, reliable key-value store for the most critical data of a distributed system | https://github.com/etcd-io/etcd
- zypper - etcd - 3.7.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: etcd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Reliable key-value store for the most critical data of a distributed system | https://github.com/etcd-io/etcd
- zypper - etcdctl - 3.7.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: etcdctl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A simple command line client for etcd | https://github.com/etcd-io/etcd
- zypper - etcdutl - 3.7.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: etcdutl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A simple command line client for etcd | https://github.com/etcd-io/etcd
- Chocolatey - etcd: normalized package name match | Chocolatey community package catalog: etcd from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','edrawings-viewer'


## Combined YAML source

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