How To Install libtest-hasversion-perl on Debian 9
Introduction
In this tutorial we learn how to install libtest-hasversion-perl
on Debian 9.
What is libtest-hasversion-perl
libtest-hasversion-perl is:
Do you wanna check that every one of your Perl modules in a distribution has a version number? You wanna make sure you don’t forget the brand new modules you just added? Well, that’s the module you have been looking for. Use it!
Do you wanna check someone else’s distribution to make sure the author have not committed the sin of leaving Perl modules without a version that can be used to tell if you have this or that feature? Test::HasVersion is also for you, nasty little fellow.
There’s a script test_version which is installed with this distribution. You may invoke it from within the root directory of a distribution you just unpacked, and it will check every .pm file in the directory and under lib/ (if any).
There are three methods to install libtest-hasversion-perl
on Debian 9. 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-hasversion-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-hasversion-perl
using apt-get
by running the following command:
sudo apt-get -y install libtest-hasversion-perl
Install libtest-hasversion-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtest-hasversion-perl
using apt
by running the following command:
sudo apt -y install libtest-hasversion-perl
Install libtest-hasversion-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-hasversion-perl
using aptitude
by running the following command:
sudo aptitude -y install libtest-hasversion-perl
How To Uninstall libtest-hasversion-perl on Debian 9
To uninstall only the libtest-hasversion-perl
package we can use the following command:
sudo apt-get remove libtest-hasversion-perl
Uninstall libtest-hasversion-perl And Its Dependencies
To uninstall libtest-hasversion-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libtest-hasversion-perl
Remove libtest-hasversion-perl Configurations and Data
To remove libtest-hasversion-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libtest-hasversion-perl
Remove libtest-hasversion-perl configuration, data, and all of its dependencies
We can use the following command to remove libtest-hasversion-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtest-hasversion-perl
Dependencies
libtest-hasversion-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libtest-hasversion-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.