# 使用 Homebrew, apk 安装 cfengine

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

## 安装

```sh
sudo av install brew:cfengine
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cfengine
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cfengine
```

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

## 软件包事实

- **软件包键:** brew:cfengine
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cfengine>
- **版本:** 3.28.0
- **来源摘要:** Help manage and understand IT infrastructure
- **主页:** <https://cfengine.com/>
- **上游文档:** <https://cfengine.com/>
- **许可证:** BSD-3-Clause AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.0-or-later
- **源码归档:** <https://cfengine-package-repos.s3.amazonaws.com/tarballs/cfengine-community-3.28.0.tar.gz>
- **最后更新:** 2026-07-31T08:47:01+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cf-agent (cli)
- cf-check (cli)
- cf-execd (cli)
- cf-key (cli)
- cf-monitord (cli)
- cf-net (cli)
- cf-promises (cli)
- cf-runagent (cli)
- cf-secret (cli)
- cf-serverd (cli)
- cf-support (cli)
- cf-upgrade (cli)
- rpmvercmp (cli)
- cf-agent (别名)
- cf-check (别名)
- cf-execd (别名)
- cf-key (别名)
- cf-monitord (别名)
- cf-net (别名)
- cf-promises (别名)
- cf-runagent (别名)
- cf-secret (别名)
- cf-serverd (别名)
- cf-support (别名)
- cf-upgrade (别名)
- rpmvercmp (别名)

## 依赖

- librsync
- lmdb
- openssl@3
- pcre2

## macOS 提供的库

- curl
- libxml2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.28.0
- 管理器更新时间: 2026-07-31
- 本地数据: OK
- 上游仓库: https://cfengine.com/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

CFEngine is a long-running open source configuration management and infrastructure automation system. Official docs describe lightweight C-based agents that continually converge machines toward desired state written in the CFEngine policy language.

### 项目历史

The CFEngine core README says CFEngine was originally created by Mark Burgess and that CFEngine 3 is a popular open source configuration management system for automated configuration and maintenance of large-scale computer systems. The same README describes CFEngine 3 as a significant, incompatible generation after CFEngine 2.

### 采用历史

The official overview says CFEngine runs across many platforms, from embedded devices through servers, cloud systems, and mainframes, and can handle tens or hundreds of thousands of hosts. The input package facts show it packaged for Homebrew and Alpine.

### 使用方式

Administrators write desired state in `.cf` policy files, normally stored under `/var/cfengine/masterfiles` on policy hubs and cached into `/var/cfengine/inputs` on clients before local `cf-agent` execution.

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

CFEngine matters in package-manager culture because it is one of the classic Unix-native configuration management agents: a pile of small `cf-*` binaries, a private `/var/cfengine` workspace, local convergence, and policy-as-code before that term became fashionable.

### 时间线

- CFEngine 2 era: CFEngine 3 kept enough server protocol compatibility to support gradual upgrades.
- 2012: Official `cfengine/core` GitHub repository metadata records repository creation.
- CFEngine 3: Official README documents a more powerful but policy-language-incompatible generation.

### Related projects

- Official source repositories include `cfengine/core`, `cfengine/masterfiles`, `cfengine/documentation`, `cfengine/cf-remote`, and `cfengine/buildscripts`.
- CFEngine's documentation links the system to Promise Theory.

### 来源

- <https://api.github.com/repos/cfengine/core>
- <https://github.com/cfengine/core>
- <https://cfengine.com/>
- <https://docs.cfengine.com/>
- <https://docs.cfengine.com/docs/3.27/overview/directory-structure>
- <https://github.com/cfengine/core#readme>
- <https://formulae.brew.sh/api/formula/cfengine.json>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- 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: /var/cfengine/masterfiles, /var/cfengine/inputs

## Credential files

- Unix: /var/cfengine/ppkeys
## 源数据库详情

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

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

- apk - cfengine - 3.27.1-r0: normalized package name match | Alpine Linux edge package indexes: cfengine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A systems administration tool for networks | https://www.cfengine.com/
- apk - cfengine-doc - 3.27.1-r0: normalized package name match | Alpine Linux edge package indexes: cfengine-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A systems administration tool for networks (documentation) | https://www.cfengine.com/
- apk - cfengine-masterfiles - 3.27.1-r0: normalized package name match | Alpine Linux edge package indexes: cfengine-masterfiles from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cfengine default masterfiles | https://www.cfengine.com/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [lmdb](https://pkg.so/zh-hans/brew/lmdb/) - Runtime dependency declared by Homebrew.
- [librsync](https://pkg.so/zh-hans/brew/librsync/) - Runtime dependency declared by Homebrew.
- [nrpe](https://pkg.so/zh-hans/brew/nrpe/) - Shares pkgdb curated category or tags: agent, cli, system.
- [rex](https://pkg.so/zh-hans/brew/rex/) - Shares pkgdb curated category or tags: cli, configuration-management, system.
- [confd](https://pkg.so/zh-hans/brew/confd/) - Shares pkgdb curated category or tags: cli, configuration-management, system.
- [comtrya](https://pkg.so/zh-hans/brew/comtrya/) - Shares pkgdb curated category or tags: cli, configuration-management, system.
- [bork](https://pkg.so/zh-hans/brew/bork/) - Shares pkgdb curated category or tags: cli, configuration-management, system.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Shares pkgdb curated category or tags: cli, system.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Shares pkgdb curated category or tags: cli, system.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Shares pkgdb curated category or tags: cli, system.
- [monit](https://pkg.so/zh-hans/brew/monit/) - Local package facts share a topical domain. Shared terms: cli, manage, management, openssl, openssl-3.
- [monitoring-plugins](https://pkg.so/zh-hans/brew/monitoring-plugins/) - Local package facts share a topical domain. Shared terms: check, cli, openssl, openssl-3, system.

## Combined YAML source

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


## 来源

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