corelist command not found

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

Introduction

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

corelist: command not found

or when using sudo you get the following error message

sudo: corelist: command not found

Solutions to corelist: command not found

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

In Ubuntu corelist is provided by libmodule-corelist-perl package.

libmodule-corelist-perl is:

Module::CoreList is a Perl module that can provide various information about the versions of Perl modules that shipped with perl interpreter releases.

It contains a hash of hashes which is keyed on the perl interpreter version, as indicated in $]. The second level hash has pairs of modules and as well as their versions. It’s possible that the version of a module is unspecified, in which case it will be undef.

Other features include a hash providing ISO formatted versions of the release dates, as gleaned from perlhist, and a hash that clusters known perl releases by their major versions.

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

sudo apt-get -y install libmodule-corelist-perl

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

You can also use apt command to install libmodule-corelist-perl.

sudo apt -y install libmodule-corelist-perl

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

sudo aptitude install libmodule-corelist-perl

Summary

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