cpan-upload command not found

In this troubleshooting guide we learn how to fix cpan-upload command not found error message

Introduction

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

cpan-upload: command not found

or when using sudo you get the following error message

sudo: cpan-upload: command not found

Solutions to cpan-upload: command not found

How To Fix cpan-upload: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cpan-upload is provided by libcpan-uploader-perl package.

libcpan-uploader-perl is:

CPAN::Uploader is a Perl module which allows developers to upload their modules and packages to the Comprehensive Perl Archive Network (CPAN) via the [Perl programming] Authors Upload Server (more commonly known as PAUSE).

It provides a direct programmatic interface via a singleton class, but also includes a command-line utility called `cpan-upload’ to do the same.

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

sudo apt-get -y install libcpan-uploader-perl

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

You can also use apt command to install libcpan-uploader-perl.

sudo apt -y install libcpan-uploader-perl

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

sudo aptitude install libcpan-uploader-perl

Summary

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