# 使用 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
- **版本:** 1.1.4
- **来源摘要:** Fast CPAN module installer
- **主页:** <https://metacpan.org/pod/cpm>
- **仓库:** <https://github.com/skaji/cpm>
- **最后更新:** 2026-06-28T18:24:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cpm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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


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