# 使用 Homebrew, apk, Nix 安装 confd

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

## 安装

```sh
sudo av install brew:confd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install confd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add confd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#confd
```

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

## 软件包事实

- **软件包键:** brew:confd
- **软件包管理器:** Homebrew
- **版本:** 0.16.0
- **来源摘要:** Manage local application configuration files using templates
- **主页:** <https://github.com/kelseyhightower/confd>
- **仓库:** <https://github.com/kelseyhightower/confd>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- confd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

confd is a lightweight configuration-management daemon and CLI for rendering local configuration files from templates backed by service-discovery and key-value systems. It became familiar in early container and microservice deployments because it sat beside an application, watched systems such as etcd or Consul, rendered files, and triggered reload commands.

### 项目历史

The project presents itself as a Go tool for keeping local configuration files up to date from etcd, Consul, DynamoDB, Redis, Vault, ZooKeeper, AWS SSM Parameter Store, environment variables, or files. Its default configuration model centers on TOML at /etc/confd/confd.toml plus template resources under /etc/confd.

Release notes show the project expanding alongside the infrastructure systems common in the mid-2010s: DynamoDB support appeared in the v0.10 era, Vault and Redis arrived in 0.12 alpha releases, etcd v3 and Windows support arrived in v0.13.0, and AWS SSM Parameter Store plus file backends arrived in v0.14.0.

### 采用历史

confd was adopted mainly as glue for hosts and containers that needed dynamic configuration without pulling a full configuration-management stack into the application. Its official community pointers to IRC, a mailing list, and a project website reflect the period when service discovery and sidecar-style config rendering were still being standardized in operations culture.

The Homebrew, apk, and Nix package entries in the supplied package facts reflect its continued packaging as a small operational binary rather than a language library.

### 使用方式

Typical use is to define template resources, point confd at a backend, render target files, and optionally run checks or reload commands when the rendered configuration changes. The tool is especially associated with daemon configuration, reverse proxies, and twelve-factor-ish deployments where authoritative values live outside the local filesystem.

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

For package maintainers, confd is a good example of the mid-2010s Go single-binary ops tool: statically distributable, service-discovery aware, and useful even when installed outside a larger platform. Its formula/cross-platform packaging value comes from turning distributed configuration into a conventional executable with predictable /etc/confd paths.

### 时间线

- 2015: v0.10.0 release notes list DynamoDB backend support and a build-system change to gb.
- 2016: 0.12 alpha releases added Vault, DynamoDB, and Redis backend work.
- 2017: v0.13.0 added etcd v3 and Windows support; v0.14.0 added AWS SSM Parameter Store and file backends.
- 2018: v0.16.0 included backend improvements for etcd v3, Vault, file, and Redis and shipped smaller UPX-compressed executables.

### Related projects

- Official documentation names etcd, Consul, DynamoDB, Redis, Vault, ZooKeeper, AWS SSM Parameter Store, and Go templates as core adjacent technologies.

### 来源

- <https://github.com/kelseyhightower/confd#readme>
- <https://github.com/kelseyhightower/confd/blob/master/docs/configuration-guide.md>
- <https://github.com/kelseyhightower/confd/releases>
- <https://github.com/kelseyhightower/confd/releases/tag/v0.10.0>
- <https://github.com/kelseyhightower/confd/releases/tag/v0.13.0>
- <https://github.com/kelseyhightower/confd/releases/tag/v0.14.0>
- <https://github.com/kelseyhightower/confd/releases/tag/v0.16.0>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: /etc/confd/confd.toml, /etc/confd/conf.d/*.toml, /etc/confd/templates/*.tmpl
## 其他软件包管理器记录

- Nix - confd: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/confd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - confd - 0.30.0-r5: normalized package name match | Alpine Linux edge package indexes: confd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | manage local application configuration files using templates and data from multiple backends | https://github.com/abtreece/confd
- apk - confd-doc - 0.30.0-r5: normalized package name match | Alpine Linux edge package indexes: confd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | manage local application configuration files using templates and data from multiple backends (documentation) | https://github.com/abtreece/confd
- apk - confd-openrc - 0.30.0-r5: normalized package name match | Alpine Linux edge package indexes: confd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | manage local application configuration files using templates and data from multiple backends (OpenRC init scripts) | https://github.com/abtreece/confd


## Combined YAML source

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