# 使用 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
- **版本:** 3.28.0
- **来源摘要:** Help manage and understand IT infrastructure
- **主页:** <https://cfengine.com/>
- **最后更新:** 2026-07-31T08:47:01+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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/


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
