How To Install libsys-sigaction-perl on Debian 10

Learn how to install libsys-sigaction-perl on Debian 10 with this tutorial. libsys-sigaction-perl is Perl extension for consistent signal handling

Introduction

In this tutorial we learn how to install libsys-sigaction-perl on Debian 10.

What is libsys-sigaction-perl

libsys-sigaction-perl is:

Sig::SigAction implements set_sig_handler(), which sets up a signal handler and (optionally) returns an object which causes the signal handler to be reset to the previous value, when it goes out of scope.

Also implemented is timeout_call() which takes a timeout value and a code reference, and executes the code reference wrapped with an alarm timeout.

Finally, two convenience routines are defined which allow one to get the signal name from the number – sig_name(), and get the signal number from the name – sig_number().

There are three methods to install libsys-sigaction-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libsys-sigaction-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 libsys-sigaction-perl using apt-get by running the following command:

sudo apt-get -y install libsys-sigaction-perl

Install libsys-sigaction-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsys-sigaction-perl

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

sudo aptitude -y install libsys-sigaction-perl

How To Uninstall libsys-sigaction-perl on Debian 10

To uninstall only the libsys-sigaction-perl package we can use the following command:

sudo apt-get remove libsys-sigaction-perl

Uninstall libsys-sigaction-perl And Its Dependencies

To uninstall libsys-sigaction-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libsys-sigaction-perl

Remove libsys-sigaction-perl Configurations and Data

To remove libsys-sigaction-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libsys-sigaction-perl

Remove libsys-sigaction-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsys-sigaction-perl

Dependencies

libsys-sigaction-perl have the following dependencies:

References

Summary

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