# 使用 Homebrew, apt 安装 cpm

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

## 安装

```sh
sudo av install brew:cpm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cpm
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cpm
```

  证据: Debian stable package indexes: cpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:cpm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cpm>
- **版本:** 1.1.4
- **来源摘要:** Fast CPAN module installer
- **主页:** <https://metacpan.org/pod/cpm>
- **仓库:** <https://github.com/skaji/cpm>
- **上游文档:** <https://metacpan.org/pod/cpm>
- **许可证:** Artistic-1.0-Perl OR GPL-1.0-or-later
- **源码归档:** <https://cpan.metacpan.org/authors/id/S/SK/SKAJI/App-cpm-v1.1.4.tar.gz>
- **最后更新:** 2026-06-28T18:24:27Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cpm (cli)
- cpm (别名)

## 依赖

- perl

## 安装行为

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

## 版本和新鲜度

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

cpm is Shoichi Kaji's fast CPAN module installer. It is packaged as the Perl distribution App-cpm and focuses on predictable dependency installation for Perl projects.

### 项目历史

The GitHub repository was created in June 2015, and MetaCPAN records the first App-cpm trial release in August 2015 as an experimental CPAN client. The current upstream README describes cpm as a fast CPAN module installer and lists self-contained and CPAN-based installation paths.

The README describes the v1 design as preparing dependencies first and performing final installation separately. That detail is significant for package users because cpm is not just a thin downloader; its installation model is meant to make larger dependency graphs and parallel work more stable.

### 采用历史

The supplied package facts list Homebrew and Debian packages, while MetaCPAN is the primary Perl distribution channel. The README also points CI users to an install-with-cpm GitHub Action, showing adoption around automated dependency installation.

### 使用方式

cpm installs requested CPAN distributions and, by default, their runtime dependency closure. It is commonly compared with cpanminus, Menlo, and Carton, which upstream lists as related tools.

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

For Perl packagers and CI maintainers, cpm matters because CPAN installation speed and dependency graph stability are recurring pain points. Its availability through both CPAN and OS package managers makes it useful as a bootstrap and automation tool.

### 时间线

- 2015: GitHub repository created.
- 2015: MetaCPAN records App-cpm 0.100-TRIAL as an experimental CPAN client.
- 2026: MetaCPAN records App-cpm v1.1.4.

### Related projects

- App::cpanminus, Menlo, and Carton are listed by upstream as related CPAN installation tools.
- install-with-cpm is listed by upstream for GitHub Actions usage.

### 来源

- <https://api.github.com/repos/skaji/cpm>
- <https://raw.githubusercontent.com/skaji/cpm/master/README.md>
- <https://fastapi.metacpan.org/v1/release/App-cpm>
- <https://fastapi.metacpan.org/v1/release/_search?q=distribution:App-cpm&size=1&sort=date:asc>


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cpm
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** yaze-ag
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - cpm - 0.32-1.6: normalized package name match | Debian stable package indexes: cpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Curses based password manager using PGP-encryption | https://github.com/comotion/cpm


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [perl](https://pkg.so/zh-hans/brew/perl/) - Runtime dependency declared by Homebrew.
- [cpanminus](https://pkg.so/zh-hans/brew/cpanminus/) - Shares pkgdb curated category or tags: cli, cpan, developer-tools, package-management, perl.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, package-management.
- [npm-check-updates](https://pkg.so/zh-hans/brew/npm-check-updates/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, package-management.
- [patch-package](https://pkg.so/zh-hans/brew/patch-package/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, package-management.
- [psc-package](https://pkg.so/zh-hans/brew/psc-package/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, package-management.
- [pipx](https://pkg.so/zh-hans/brew/pipx/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [composer](https://pkg.so/zh-hans/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [carton](https://pkg.so/zh-hans/brew/carton/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cpan, developer, developer-tools, module.
- [midgard-yarn](https://pkg.so/zh-hans/npm/midgard-yarn/) - Local package facts share a topical domain. Shared terms: cli, dependencies, developer, developer-tools, fast.

## Combined YAML source

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


## 来源

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