How To Install libsocket-multicast6-perl on Ubuntu 18.04

In this tutorial we learn how to install libsocket-multicast6-perl on Ubuntu 18.04. libsocket-multicast6-perl is base module for IPv4 and IPv6 multicast socket operations

Introduction

In this tutorial we learn how to install libsocket-multicast6-perl on Ubuntu 18.04.

What is libsocket-multicast6-perl

libsocket-multicast6-perl is:

Socket::Multicast6 is used to gain access to constants and utility functions used when manipulating multicast socket attributes.

For simple, object-oriented way of doing the same thing, take a look at IO::Socket::Multicast6 or IO::Socket::Multicast.

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

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

sudo apt-get -y install libsocket-multicast6-perl

Install libsocket-multicast6-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsocket-multicast6-perl

Install libsocket-multicast6-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libsocket-multicast6-perl using aptitude by running the following command:

sudo aptitude -y install libsocket-multicast6-perl

How To Uninstall libsocket-multicast6-perl on Ubuntu 18.04

To uninstall only the libsocket-multicast6-perl package we can use the following command:

sudo apt-get remove libsocket-multicast6-perl

Uninstall libsocket-multicast6-perl And Its Dependencies

To uninstall libsocket-multicast6-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libsocket-multicast6-perl

Remove libsocket-multicast6-perl Configurations and Data

To remove libsocket-multicast6-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsocket-multicast6-perl

Remove libsocket-multicast6-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsocket-multicast6-perl

References

Summary

In this tutorial we learn how to install libsocket-multicast6-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.