How To Install libsnmp-multi-perl on Ubuntu 18.04

In this tutorial we learn how to install libsnmp-multi-perl on Ubuntu 18.04. libsnmp-multi-perl is Perform SNMP operations on multiple hosts simultaneously

Introduction

In this tutorial we learn how to install libsnmp-multi-perl on Ubuntu 18.04.

What is libsnmp-multi-perl

libsnmp-multi-perl is:

The SNMP::Multi package provides a mechanism to perform SNMP operations on several hosts simultaneously. SNMP::Multi builds on G. Marzot’s SNMP Perl interface to the UC-Davis SNMP libraries, using asynchronous SNMP operations to send queries/sets to multiple hosts simultaneously.

Results from all hosts are compiled into a single object, which offers methods to access the data in aggregate, or broken down by host or the individual request.

SNMP::Multi supports SNMP GET, SET, GETNEXT, GETBULK and BULKWALK requests. It also performs PDU packing in order to improve network efficiency, when packing is possible.

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

sudo apt-get -y install libsnmp-multi-perl

Install libsnmp-multi-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsnmp-multi-perl

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

sudo aptitude -y install libsnmp-multi-perl

How To Uninstall libsnmp-multi-perl on Ubuntu 18.04

To uninstall only the libsnmp-multi-perl package we can use the following command:

sudo apt-get remove libsnmp-multi-perl

Uninstall libsnmp-multi-perl And Its Dependencies

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

sudo apt-get -y autoremove libsnmp-multi-perl

Remove libsnmp-multi-perl Configurations and Data

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

sudo apt-get -y purge libsnmp-multi-perl

Remove libsnmp-multi-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsnmp-multi-perl

References

Summary

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