How To Install libtest-strict-perl on Ubuntu 20.04

In this tutorial we learn how to install libtest-strict-perl on Ubuntu 20.04. libtest-strict-perl is test module for checking the syntax of use strict and test coverage

Introduction

In this tutorial we learn how to install libtest-strict-perl on Ubuntu 20.04.

What is libtest-strict-perl

libtest-strict-perl is:

Test::Strict tests if the code compiles and inter-operates with Test::Simple modules. Another good practice this module can test is to “use strict;” in all perl files.

By setting a minimum test coverage through all_cover_ok(), a code author can ensure his code is tested above a preset level of kwalitee (CPAN quality metrics) throughout the development cycle. Along with Test::Pod, this module can provide the first tests to setup for a module author.

There are three methods to install libtest-strict-perl on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libtest-strict-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libtest-strict-perl using apt-get by running the following command:

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

Install libtest-strict-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtest-strict-perl using apt by running the following command:

sudo apt -y install libtest-strict-perl

Install libtest-strict-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libtest-strict-perl using aptitude by running the following command:

sudo aptitude -y install libtest-strict-perl

How To Uninstall libtest-strict-perl on Ubuntu 20.04

To uninstall only the libtest-strict-perl package we can use the following command:

sudo apt-get remove libtest-strict-perl

Uninstall libtest-strict-perl And Its Dependencies

To uninstall libtest-strict-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libtest-strict-perl

Remove libtest-strict-perl Configurations and Data

To remove libtest-strict-perl configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libtest-strict-perl

Remove libtest-strict-perl configuration, data, and all of its dependencies

We can use the following command to remove libtest-strict-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtest-strict-perl

References

Summary

In this tutorial we learn how to install libtest-strict-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.