How To Install libtest-perl-critic-perl on Ubuntu 20.04

In this tutorial we learn how to install libtest-perl-critic-perl on Ubuntu 20.04. libtest-perl-critic-perl is module to use Perl

Introduction

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

What is libtest-perl-critic-perl

libtest-perl-critic-perl is:

Test::Perl::Critic wraps the Perl::Critic engine in a convenient subroutine suitable for test programs written using the Test::More framework. This makes it easy to integrate coding-standards enforcement into the build process. For ultimate convenience (at the expense of some flexibility), see the criticism pragma.

If you’d like to try Perl::Critic without installing anything, there is a web service available at http://perlcritic.com. The web service does not support all the configuration features that are available in the native Perl::Critic API, but it should give you a good idea of what it does.

There are three methods to install libtest-perl-critic-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-perl-critic-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-perl-critic-perl using apt-get by running the following command:

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

Install libtest-perl-critic-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtest-perl-critic-perl

Install libtest-perl-critic-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-perl-critic-perl using aptitude by running the following command:

sudo aptitude -y install libtest-perl-critic-perl

How To Uninstall libtest-perl-critic-perl on Ubuntu 20.04

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

sudo apt-get remove libtest-perl-critic-perl

Uninstall libtest-perl-critic-perl And Its Dependencies

To uninstall libtest-perl-critic-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-perl-critic-perl

Remove libtest-perl-critic-perl Configurations and Data

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

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

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

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

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

References

Summary

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