How To Install libtest-needs-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libtest-needs-perl
on Ubuntu 20.04.
What is libtest-needs-perl
libtest-needs-perl is:
Test::Needs allows one to skip test scripts if modules are not available. The requested modules will be loaded, and optionally have their versions checked. If the module is missing, the test script will be skipped. Modules that are found but fail to compile will exit with an error rather than skip.
If used in a subtest, the rest of the subtest will be skipped.
If the “RELEASE_TESTING” environment variable is set, the tests will fail rather than skip. Subtests will be aborted, but the test script will continue running after that point.
There are three methods to install libtest-needs-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-needs-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-needs-perl
using apt-get
by running the following command:
sudo apt-get -y install libtest-needs-perl
Install libtest-needs-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtest-needs-perl
using apt
by running the following command:
sudo apt -y install libtest-needs-perl
Install libtest-needs-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-needs-perl
using aptitude
by running the following command:
sudo aptitude -y install libtest-needs-perl
How To Uninstall libtest-needs-perl on Ubuntu 20.04
To uninstall only the libtest-needs-perl
package we can use the following command:
sudo apt-get remove libtest-needs-perl
Uninstall libtest-needs-perl And Its Dependencies
To uninstall libtest-needs-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-needs-perl
Remove libtest-needs-perl Configurations and Data
To remove libtest-needs-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libtest-needs-perl
Remove libtest-needs-perl configuration, data, and all of its dependencies
We can use the following command to remove libtest-needs-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtest-needs-perl
References
Summary
In this tutorial we learn how to install libtest-needs-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.