# 使用 Homebrew, Nix 安装 c2patool

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

## 安装

```sh
sudo av install brew:c2patool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install c2patool
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#c2patool
```

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

## 软件包事实

- **软件包键:** brew:c2patool
- **软件包管理器:** Homebrew
- **版本:** 0.27.3
- **来源摘要:** CLI for working with C2PA manifests and media assets
- **主页:** <https://contentauthenticity.org>
- **仓库:** <https://github.com/contentauth/c2pa-rs>
- **最后更新:** 2026-07-24T20:41:34Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- c2patool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

c2patool is the command-line tool from the c2pa-rs project for reading, validating, creating, and embedding C2PA manifests in media assets. Its history is tied to the Content Authenticity Initiative and the Coalition for Content Provenance and Authenticity push to make media provenance machine-readable.

### 项目历史

C2PA was founded in February 2021 by Adobe, Arm, the BBC, Intel, Microsoft, and Truepic to develop technical standards for certifying the source and history of media content. The c2pa-rs repository began with an initial public release on 23 May 2022 and became the Rust SDK and CLI implementation used by the Content Authenticity Initiative open-source tooling.

The c2patool README describes a CLI that works with C2PA manifests and audio, image, or video assets. It can read summary JSON, read detailed manifest data, add manifests to assets, use sidecar or remote manifests, inspect certificate chains, configure trust, and work with signing commands.

### 采用历史

The tool is distributed through Homebrew for macOS, prebuilt GitHub release archives for macOS, Windows, and Linux, and source builds from the c2pa-rs repository. source_facts also records Nix packaging.

The broader adoption story is standards-driven: c2pa-rs implements part of the C2PA technical specification and CAWG identity assertion work, so the CLI serves developers, publishers, and tool builders testing Content Credentials workflows before or alongside application integration.

### 使用方式

Common c2patool usage includes printing manifest JSON from an asset, saving manifest reports to an output directory, adding a manifest definition to a file, generating `.c2pa` sidecars, embedding remote manifest references, extracting signing certificates, and producing ingredient records for asset history.

The CLI supports a settings file, defaulting to `~/.config/c2pa/c2pa.toml` unless C2PATOOL_SETTINGS or `--settings` overrides it. Signing can be delegated to subprocess signers so private key material does not need to pass directly through the CLI in production.

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

c2patool is package-nerd interesting because it turns a large media-authenticity standard into a composable Unix-style inspection and signing tool. That makes C2PA manifests testable in CI, build pipelines, image-processing scripts, and release workflows.

It also shows a modern package pattern: a Rust SDK repository shipping libraries, C FFI, documentation, examples, release archives, and a CLI, all around a fast-moving standard rather than a single old protocol.

### 时间线

- 2021-02: C2PA is founded by Adobe, Arm, BBC, Intel, Microsoft, and Truepic.
- 2022-05-23: c2pa-rs upstream Git history begins with an initial public release.
- 2026-04-29: c2patool changelog records init trust, trust sidecars, and atomic sidecar writes.
- 2026-05-27: c2patool 0.26.60 adds intent support and create/update signing behavior.
- 2026-06-09: c2patool 0.26.65 fixes a DLL hijacking vulnerability.
- 2026-06-19: c2patool 0.26.68 is published in the upstream changelog.

### Related projects

- c2pa-rs: the Rust SDK repository that contains c2patool.
- Content Authenticity Initiative: the open-source SDK and community context for C2PA tooling.
- C2PA technical specification: the standard implemented by the Rust SDK and CLI.
- c2patool-service-example: official example repository for using c2patool from a Node.js server application.

### 来源

- <https://c2pa.org/about/>
- <https://github.com/contentauth/c2pa-rs/blob/main/README.md>
- <https://github.com/contentauth/c2pa-rs/blob/main/cli/CHANGELOG.md>
- <https://github.com/contentauth/c2pa-rs/blob/main/cli/README.md>
- <https://github.com/contentauth/c2pa-rs/blob/main/cli/docs/usage.md>
- source_facts.package-manager


## 安全说明

没有找到 c2patool 的匹配本地密钥处理 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: ~/.config/c2pa/c2pa.toml
## 其他软件包管理器记录

- Nix - c2patool: normalized package name match | nixpkgs package indexes: pkgs/by-name/c2/c2patool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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