How To Install perl-Net-SNMP on Rocky Linux 8

In this tutorial we learn how to install perl-Net-SNMP on Rocky Linux 8. perl-Net-SNMP is Object oriented interface to SNMP

Introduction

In this tutorial we learn how to install perl-Net-SNMP on Rocky Linux 8.

What is perl-Net-SNMP

The Net Simple Network Management Protocol. Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. The module supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP version-3. The Net assumes that the user has a basic understanding of the Simple Network Management Protocol and related network management concepts.

We can use yum or dnf to install perl-Net-SNMP on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Net-SNMP.

Install perl-Net-SNMP on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Net-SNMP using dnf by running the following command:

sudo dnf -y install perl-Net-SNMP

Install perl-Net-SNMP on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Net-SNMP using yum by running the following command:

sudo yum -y install perl-Net-SNMP

How To Uninstall perl-Net-SNMP on Rocky Linux 8

To uninstall only the perl-Net-SNMP package we can use the following command:

sudo dnf remove perl-Net-SNMP

perl-Net-SNMP Package Contents on Rocky Linux 8

/usr/bin/snmpkey
/usr/share/doc/perl-Net-SNMP
/usr/share/doc/perl-Net-SNMP/Changes
/usr/share/doc/perl-Net-SNMP/README
/usr/share/doc/perl-Net-SNMP/examples
/usr/share/doc/perl-Net-SNMP/examples/example1.pl
/usr/share/doc/perl-Net-SNMP/examples/example2.pl
/usr/share/doc/perl-Net-SNMP/examples/example3.pl
/usr/share/doc/perl-Net-SNMP/examples/example4.pl
/usr/share/doc/perl-Net-SNMP/examples/snmpget.pl
/usr/share/doc/perl-Net-SNMP/examples/snmpgetbulk.pl
/usr/share/doc/perl-Net-SNMP/examples/snmpgetnext.pl
/usr/share/doc/perl-Net-SNMP/examples/snmpset.pl
/usr/share/doc/perl-Net-SNMP/examples/snmpwalk.pl
/usr/share/doc/perl-Net-SNMP/examples/table.pl
/usr/share/doc/perl-Net-SNMP/examples/trap.pl
/usr/share/man/man1/snmpkey.1.gz
/usr/share/man/man3/Net::SNMP.3pm.gz
/usr/share/perl5/vendor_perl/Net
/usr/share/perl5/vendor_perl/Net/SNMP
/usr/share/perl5/vendor_perl/Net/SNMP.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Dispatcher.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Message.pm
/usr/share/perl5/vendor_perl/Net/SNMP/MessageProcessing.pm
/usr/share/perl5/vendor_perl/Net/SNMP/PDU.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Security
/usr/share/perl5/vendor_perl/Net/SNMP/Security.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Security/Community.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Security/USM.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport
/usr/share/perl5/vendor_perl/Net/SNMP/Transport.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv4
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv4.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv4/TCP.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv4/UDP.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv6
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv6.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv6/TCP.pm
/usr/share/perl5/vendor_perl/Net/SNMP/Transport/IPv6/UDP.pm

References

Summary

In this tutorial we learn how to install perl-Net-SNMP on Rocky Linux 8 using yum and dnf.