# 使用 Homebrew 安装 charmcraft

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

## 安装

```sh
sudo av install brew:charmcraft
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install charmcraft
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:charmcraft
- **软件包管理器:** Homebrew
- **版本:** 4.4.0
- **来源摘要:** Tool to build charms and publish them on Charmhub
- **主页:** <https://charmhub.io>
- **仓库:** <https://github.com/canonical/charmcraft>
- **最后更新:** 2026-07-22T21:23:16Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- charmcraft (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Charmcraft is Canonical's command-line tool for creating, packaging, and publishing charms, the operator packages used by Juju. In package-manager terms it is the build-and-release client for the Charmhub/Juju ecosystem rather than a general-purpose language package manager.

### 项目历史

The upstream GitHub repository was created in April 2020, and its README describes Charmcraft as the tool for initializing charm projects, packing charms, registering names, uploading revisions, and releasing them through Charmhub. GitHub release metadata shows the first public release, 0.1.0, published in May 2020; current releases are in the 4.x line.

### 采用历史

Charmcraft adoption follows Juju and Charmhub adoption: developers who build charmed operators use it to turn operator source trees into distributable charm artifacts. The README says the recommended Linux installation is the Snap package, while the input package-manager facts show a Homebrew formula for macOS users.

### 使用方式

Typical use starts with `charmcraft init`, then `charmcraft pack` to build, `charmcraft register` to reserve a Charmhub name, and `charmcraft upload` to publish revisions. The documented `charmcraft.yaml` file declares project metadata consumed by Charmcraft.

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

Charmcraft matters to package nerds because it is an ecosystem-specific packaging frontend: it bridges source trees, declared package metadata, build isolation, and a central registry for Juju operators. It is also a Canonical example of packaging tooling aligned with Snap distribution and Ubuntu documentation.

### 时间线

- 2020-04: Upstream GitHub repository created.
- 2020-05: First public GitHub release, 0.1.0.
- 2026-06: Upstream GitHub release metadata lists Charmcraft 4.3.0.

### Related projects

- Juju is the orchestration system whose operators are packaged as charms.
- Charmhub is the publishing and discovery service targeted by Charmcraft commands.
- Snapcraft is adjacent Canonical packaging tooling; Charmcraft's README recommends the Snap package on Linux.

### 来源

- <https://github.com/canonical/charmcraft>
- <https://api.github.com/repos/canonical/charmcraft>
- <https://api.github.com/repos/canonical/charmcraft/releases>
- <https://documentation.ubuntu.com/charmcraft/stable/reference/files/charmcraft-yaml-file/>


## 安全说明

没有找到 charmcraft 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ./charmcraft.yaml

## Combined YAML source

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


## 来源

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