How To Install libtest-command-simple-perl on Debian 9
Introduction
In this tutorial we learn how to install libtest-command-simple-perl
on Debian 9.
What is libtest-command-simple-perl
libtest-command-simple-perl is:
Test::Command::Simple is a intended to simplify testing of external commands. It does so by running the command under IPC::Open3, closing the stdin immediately, and reading everything from the command’s stdout and stderr. It then makes the output available to be tested.
It is not (yet?) as feature-rich as Test::Cmd (in package libtest-cmd-perl), however the interface to this is much simpler. Tests also plug directly into the Test::Builder framework, which plays nice with Test::More.
There are three methods to install libtest-command-simple-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-command-simple-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-command-simple-perl
using apt-get
by running the following command:
sudo apt-get -y install libtest-command-simple-perl
Install libtest-command-simple-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtest-command-simple-perl
using apt
by running the following command:
sudo apt -y install libtest-command-simple-perl
Install libtest-command-simple-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-command-simple-perl
using aptitude
by running the following command:
sudo aptitude -y install libtest-command-simple-perl
How To Uninstall libtest-command-simple-perl on Debian 9
To uninstall only the libtest-command-simple-perl
package we can use the following command:
sudo apt-get remove libtest-command-simple-perl
Uninstall libtest-command-simple-perl And Its Dependencies
To uninstall libtest-command-simple-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libtest-command-simple-perl
Remove libtest-command-simple-perl Configurations and Data
To remove libtest-command-simple-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libtest-command-simple-perl
Remove libtest-command-simple-perl configuration, data, and all of its dependencies
We can use the following command to remove libtest-command-simple-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtest-command-simple-perl
Dependencies
libtest-command-simple-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libtest-command-simple-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.