How To Install libtest-nowarnings-perl on Debian 10

Learn how to install libtest-nowarnings-perl on Debian 10 with this tutorial. libtest-nowarnings-perl is module to make sure you didnt emit any warnings while testing

Introduction

In this tutorial we learn how to install libtest-nowarnings-perl on Debian 10.

What is libtest-nowarnings-perl

libtest-nowarnings-perl is:

In general, your tests shouldn’t produce warnings. This module causes any warnings to be captured and stored. It automatically adds an extra test that will run when your script ends to check that there were no warnings. If there were any warnings, the test will give a “not ok” and diagnostics of where, when and what the warning was, including a stack trace of what was going on when it occurred.

If some of your tests are supposed to produce warnings then you should be capturing and checking them with Test::Warn, that way Test::NoWarnings will not see them and so not complain.

The test is run by an END block in Test::NoWarnings. It will not be run when any forked children exit.

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

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

Install libtest-nowarnings-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtest-nowarnings-perl

Install libtest-nowarnings-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libtest-nowarnings-perl

How To Uninstall libtest-nowarnings-perl on Debian 10

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

sudo apt-get remove libtest-nowarnings-perl

Uninstall libtest-nowarnings-perl And Its Dependencies

To uninstall libtest-nowarnings-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

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

Remove libtest-nowarnings-perl Configurations and Data

To remove libtest-nowarnings-perl configuration and data from Debian 10 we can use the following command:

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

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

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

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

Dependencies

libtest-nowarnings-perl have the following dependencies:

References

Summary

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