cpanp command not found

In this troubleshooting guide we learn how to fix cpanp command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cpanp: command not found

or when using sudo you get the following error message

sudo: cpanp: command not found

Solutions to cpanp: command not found

How To Fix cpanp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cpanp is provided by libcpanplus-perl package.

libcpanplus-perl is:

The CPANPLUS library is an API to the CPAN mirrors and a collection of interactive shells, commandline programs, etc, that use this API.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libcpanplus-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libcpanplus-perl.

sudo apt -y install libcpanplus-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libcpanplus-perl

Summary

In this tutorial we learn how to fix cpanp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.