How To Install Cpanm In Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Cpanm In Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

cpanm

script to get, unpack, build and install modules from CPAN

Maintainer: Debian Perl Group



Section: perl

Install cpanm

  • Debian apt-get install cpanminus Click to copy
  • Ubuntu apt-get install cpanminus Click to copy
  • Arch Linux pacman -S cpanminus Click to copy
  • Kali Linux apt-get install cpanminus Click to copy
  • CentOS yum install cpanminus Click to copy
  • Fedora dnf install cpanminus Click to copy
  • Raspbian apt-get install cpanminus Click to copy
  • macOS brew install cpanminus Click to copy

cpanminus

script to get, unpack, build and install modules from CPAN

cpanminus provides a command-line (non interactive) interface to automatically download, build and install Perl modules from CPAN. It requires zero configuration, and stands alone. It also has a very low memory footprint compared to similar software: when running, it requires only 10MB of RAM. It installs to wherever ExtUtils::MakeMaker and Module::Build are configured to. So if you're using local::lib, then it installs to your local perl5 directory. Otherwise it installs to the siteperl directory. cpanminus at a boot time checks whether you have configured local::lib, or have the permission to install modules to the sitelib directory. If neither, it automatically sets up local::lib compatible installation path in a perl5 directory under your home directory.

perl-App-cpanminus

modules
Installation of latest cpanm command is available for Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.