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

Get, unpack, build, and install modules from CPAN. Version 1.7049 via Homebrew; verified 2026-06-22.

## 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

- 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- 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

- 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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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>
- **Upstream docs:** <https://github.com/miyagawa/cpanminus#readme>
- **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-07-08T07:18:31+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-07-08
- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.1: installed executable or alias match | openSUSE Tumbleweed package metadata: perl-App-cpanminus from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Get, unpack, build and install modules from CPAN | https://metacpan.org/release/App-cpanminus


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [perl](https://www.automicvault.com/pkg/brew/perl/) - Build dependency declared by Homebrew.
- [cpm](https://www.automicvault.com/pkg/brew/cpm/) - Shares av.db curated category or tags: cli, cpan, developer-tools, package-management, perl.
- [akku](https://www.automicvault.com/pkg/brew/akku/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [bower](https://www.automicvault.com/pkg/brew/bower/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [clib](https://www.automicvault.com/pkg/brew/clib/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://www.automicvault.com/pkg/brew/composer/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conan](https://www.automicvault.com/pkg/brew/conan/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conda-lock](https://www.automicvault.com/pkg/brew/conda-lock/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [mcp-get](https://www.automicvault.com/pkg/brew/mcp-get/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, get, management.
- [spago](https://www.automicvault.com/pkg/brew/spago/) - Local metadata places this package in an adjacent workflow. Shared terms: build, cli, developer, developer-tools, management.

## Combined YAML source

View the package source record on GitHub. [combined/cpanminus.yml](https://github.com/automic-vault/db/blob/main/combined/cpanminus.yml)


## Sources

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