How To Install libtest-synopsis-perl on Debian 9

In this tutorial we learn how to install libtest-synopsis-perl on Debian 9. libtest-synopsis-perl is Perl module to test SYNOPSIS code in PODs

Introduction

In this tutorial we learn how to install libtest-synopsis-perl on Debian 9.

What is libtest-synopsis-perl

libtest-synopsis-perl is:

Test::Synopsis is an (author) test module to find .pm or .pod files under your lib directory and then make sure the example snippet code in your SYNOPSIS section passes the perl compile check.

Note that this module only checks the perl syntax (by wrapping the code with sub) and doesn’t actually run the code.

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

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

Install libtest-synopsis-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtest-synopsis-perl

Install libtest-synopsis-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-synopsis-perl using aptitude by running the following command:

sudo aptitude -y install libtest-synopsis-perl

How To Uninstall libtest-synopsis-perl on Debian 9

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

sudo apt-get remove libtest-synopsis-perl

Uninstall libtest-synopsis-perl And Its Dependencies

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

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

Remove libtest-synopsis-perl Configurations and Data

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

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

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

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

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

Dependencies

libtest-synopsis-perl have the following dependencies:

References

Summary

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