kwalitee-metrics command not found

In this troubleshooting guide we learn how to fix kwalitee-metrics command not found error message

Introduction

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

kwalitee-metrics: command not found

or when using sudo you get the following error message

sudo: kwalitee-metrics: command not found

Solutions to kwalitee-metrics: command not found

How To Fix kwalitee-metrics: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kwalitee-metrics is provided by libtest-kwalitee-perl package.

libtest-kwalitee-perl is:

Test::Kwalitee is an automatically-measurable gauge of how good your software is. That’s very different from quality, which a computer really can’t measure in a general sense. (If you can, you’ve solved a hard problem in computer science.)

In the world of the CPAN, the CPANTS project (CPAN Testing Service; also a funny acronym on its own) measures Kwalitee with several metrics. If you plan to release a distribution to the CPAN – or even within your own organization – testing its Kwalitee before creating a release can help you improve your quality as well.

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

sudo apt-get -y install libtest-kwalitee-perl

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

You can also use apt command to install libtest-kwalitee-perl.

sudo apt -y install libtest-kwalitee-perl

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

sudo aptitude install libtest-kwalitee-perl

Summary

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