How To Install libio-socket-ssl-perl on Debian 9

In this tutorial we learn how to install libio-socket-ssl-perl on Debian 9. libio-socket-ssl-perl is Perl module implementing object oriented interface to SSL sockets

Introduction

In this tutorial we learn how to install libio-socket-ssl-perl on Debian 9.

What is libio-socket-ssl-perl

libio-socket-ssl-perl is:

This module is a true drop-in replacement for IO::Socket::INET that uses SSL to encrypt data before it is transferred to a remote server or client. IO::Socket::SSL supports all the extra features that one needs to write a full-featured SSL client or server application: multiple SSL contexts, cipher selection, certificate verification, and SSL version selection. As an extra bonus, it works perfectly with mod_perl.

IO::Socket::SSL uses IPv6 if libio-socket-ip-perl (>= 0.20) or libio-socket-inet6-perl is installed.

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

sudo apt-get -y install libio-socket-ssl-perl

Install libio-socket-ssl-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libio-socket-ssl-perl using apt by running the following command:

sudo apt -y install libio-socket-ssl-perl

Install libio-socket-ssl-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 libio-socket-ssl-perl using aptitude by running the following command:

sudo aptitude -y install libio-socket-ssl-perl

How To Uninstall libio-socket-ssl-perl on Debian 9

To uninstall only the libio-socket-ssl-perl package we can use the following command:

sudo apt-get remove libio-socket-ssl-perl

Uninstall libio-socket-ssl-perl And Its Dependencies

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

sudo apt-get -y autoremove libio-socket-ssl-perl

Remove libio-socket-ssl-perl Configurations and Data

To remove libio-socket-ssl-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libio-socket-ssl-perl

Remove libio-socket-ssl-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libio-socket-ssl-perl

Dependencies

libio-socket-ssl-perl have the following dependencies:

References

Summary

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