# Install cpanminus with Homebrew, apt, pacman, dnf, zypper

Get, unpack, build, and install modules from CPAN. Version 1.7049 via Homebrew; verified 2026-06-22. Also installable with debian: sudo apt install cpanminus.

## Install

```sh
sudo av install brew:cpanminus
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cpanminus
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cpanminus
```

  Evidence: Debian stable package indexes: cpanminus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S cpanminus
```

  Evidence: Arch Linux sync databases: cpanminus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- dnf (92%):

```sh
sudo dnf install perl-App-cpanminus
```

  Evidence: Fedora Rawhide package metadata: perl-App-cpanminus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install perl-App-cpanminus
```

  Evidence: openSUSE Tumbleweed package metadata: perl-App-cpanminus from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:cpanminus
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cpanminus>
- **Version:** 1.7049
- **Source summary:** Get, unpack, build, and install modules from CPAN
- **Homepage:** <https://github.com/miyagawa/cpanminus>
- **Repository:** <https://github.com/miyagawa/cpanminus>
- **License:** Artistic-1.0-Perl OR GPL-1.0-or-later
- **Source archive:** <https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7049.tar.gz>
- **Last updated:** 2026-06-22T14:03:05-07:00
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- cpanm (cli)
- cpanm (alias)

## Build dependencies

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.7049
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/miyagawa/cpanminus
- info: No cached GitHub release or tag data was available.
## Project history and usage

cpanminus, commonly invoked as cpanm, is a minimal Perl CPAN installer whose official description is to get, unpack, build, and install modules from CPAN and do nothing else.

### Project history

The official README presents cpanminus as a dependency-free, zero-configuration, standalone script that can bootstrap itself and run with a small memory footprint. Its copyright notice begins in 2010 under Tatsuhiko Miyagawa.

The project repository and MetaCPAN documentation identify cpanminus as App::cpanminus, with cpanm as the user-facing executable.

### Adoption history

The official README explicitly notes distribution through package management systems, including Debian packages, RPMs, FreeBSD ports, and other operating-system packages. The batch source facts also list Homebrew, Debian, Ubuntu, Fedora-family, Arch, and openSUSE-style package names.

It became popular in Perl packaging culture because it reduced CPAN installation to a small command-line tool, avoiding the heavier interactive configuration experience associated with older CPAN clients.

### How it is used

The common usage is `cpanm Module`, with installation options for system Perl, local Perl environments such as perlbrew or plenv, and standalone executable placement. cpanminus fetches and unpacks files under ~/.cpanm by default and allows PERL_CPANM_HOME to change that working area.

### Why package nerds care

cpanminus matters to package nerds because it is both a package and a package installer: distributions package it so users can install Perl modules, while Perl users use it to bridge CPAN, local::lib, system package policies, and self-contained language-runtime workflows.

### Timeline

- 2010: Copyright start year for App::cpanminus in the official README.
- 1.6004: The README notes CPAN Meta DB and MetaCPAN query behavior for cpanm 1.6004 or later.
- Current packaging: The README documents availability through Debian packages, RPMs, FreeBSD ports, and other operating-system package systems.

### Related projects

- The README compares its scope with CPAN and CPANPLUS, and points to local::lib, perlbrew, plenv, CPAN Meta DB, MetaCPAN, App::cpanoutdated, cpan-listchanges, and App::cpanminus::reporter as adjacent tools.

### Sources

- <https://github.com/miyagawa/cpanminus#readme>
- <https://metacpan.org/pod/App::cpanminus>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - cpanminus - 1.7048-1: normalized package name match | Debian stable package indexes: cpanminus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | script to get, unpack, build and install modules from CPAN | https://metacpan.org/release/App-cpanminus
- Ubuntu apt - cpanminus - 1.7047-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpanminus from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | script to get, unpack, build and install modules from CPAN | https://metacpan.org/release/App-cpanminus
- dnf - perl-App-cpanminus - 1.7049-2.fc45: normalized package name match | Fedora Rawhide package metadata: perl-App-cpanminus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Get, unpack, build and install CPAN modules | https://metacpan.org/release/App-cpanminus
- pacman - cpanminus - 1.7049-1: normalized package name match | Arch Linux sync databases: cpanminus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Get, unpack, build, and install modules from CPAN | https://github.com/miyagawa/cpanminus
- zypper - perl-App-cpanminus - 1.7049-1.3: installed executable or alias match | openSUSE Tumbleweed package metadata: perl-App-cpanminus from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Get, unpack, build and install modules from CPAN | https://metacpan.org/release/App-cpanminus


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [perl](https://pkg.so/brew/perl/) - Build dependency declared by Homebrew.
- [cpm](https://pkg.so/brew/cpm/) - Shares pkgdb curated category or tags: cli, cpan, developer-tools, package-management, perl.
- [pnpm](https://pkg.so/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [mint](https://pkg.so/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://pkg.so/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [poetry](https://pkg.so/brew/poetry/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [nuget](https://pkg.so/brew/nuget/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [conan](https://pkg.so/brew/conan/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [pixi](https://pkg.so/brew/pixi/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [corepack](https://pkg.so/brew/corepack/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, management, manager.
- [micromamba](https://pkg.so/brew/micromamba/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, management, manager.

## Combined YAML source

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


## Sources

- 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
