How To Install libsnmp-info-perl on Debian 9

In this tutorial we learn how to install libsnmp-info-perl on Debian 9. libsnmp-info-perl is Object Oriented Perl5 Interface to Network devices and MIBs through SNMP

Introduction

In this tutorial we learn how to install libsnmp-info-perl on Debian 9.

What is libsnmp-info-perl

libsnmp-info-perl is:

SNMP::Info gives an object oriented interface to information obtained through SNMP.

The idea behind this module is to give a common interface to data from network devices, leaving the device-specific hacks behind the scenes in subclasses.

The interface avoids use of OIDs in favour of methods representing leaf names, either for single values or tables represented as Perl hashes.

Information is grouped more logically than in the MIB trees. Adding support for new devices is easy, and takes little or no SNMP knowledge.

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

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

Install libsnmp-info-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsnmp-info-perl

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

sudo aptitude -y install libsnmp-info-perl

How To Uninstall libsnmp-info-perl on Debian 9

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

sudo apt-get remove libsnmp-info-perl

Uninstall libsnmp-info-perl And Its Dependencies

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

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

Remove libsnmp-info-perl Configurations and Data

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

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

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

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

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

Dependencies

libsnmp-info-perl have the following dependencies:

References

Summary

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