How To Install libtest-diaginc-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libtest-diaginc-perl
on Ubuntu 20.04.
What is libtest-diaginc-perl
libtest-diaginc-perl is:
Assuming you shipped your module to CPAN with working tests, test failures from CPAN Testers|http://www.cpantesters.org/ might be due to platform issues, Perl version issues or problems with dependencies. Test::DiagINC helps you diagnose deep dependency problems by showing you exactly what modules and versions were loaded during a test run.
When this module is loaded, it sets up an END block that will take action if the program is about to exit with a non-zero exit code or if $test_builder->is_passing|Test::Builder/is_passing is false by the time the END block is reached. If that happens, this module prints out the names and version numbers of non-local modules appearing in %INC|perlvar/%INC at the end of the test.
For example:
This description was automagically extracted from the module by dh-make-perl.
There are three methods to install libtest-diaginc-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-diaginc-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-diaginc-perl
using apt-get
by running the following command:
sudo apt-get -y install libtest-diaginc-perl
Install libtest-diaginc-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtest-diaginc-perl
using apt
by running the following command:
sudo apt -y install libtest-diaginc-perl
Install libtest-diaginc-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-diaginc-perl
using aptitude
by running the following command:
sudo aptitude -y install libtest-diaginc-perl
How To Uninstall libtest-diaginc-perl on Ubuntu 20.04
To uninstall only the libtest-diaginc-perl
package we can use the following command:
sudo apt-get remove libtest-diaginc-perl
Uninstall libtest-diaginc-perl And Its Dependencies
To uninstall libtest-diaginc-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-diaginc-perl
Remove libtest-diaginc-perl Configurations and Data
To remove libtest-diaginc-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libtest-diaginc-perl
Remove libtest-diaginc-perl configuration, data, and all of its dependencies
We can use the following command to remove libtest-diaginc-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtest-diaginc-perl
References
Summary
In this tutorial we learn how to install libtest-diaginc-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.