How To Install perl-SNMP_Session on Rocky Linux 8

In this tutorial we learn how to install perl-SNMP_Session on Rocky Linux 8. perl-SNMP_Session is SNMP support for Perl 5

Introduction

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

What is perl-SNMP_Session

Pure Perl SNMP v1 and SNMP v2 support for Perl 5. The SNMP operations currently supported are “get”, “get-next”, “get-bulk” and “set”, as well as trap generation and reception.

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

Install perl-SNMP_Session 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-SNMP_Session using dnf by running the following command:

sudo dnf -y install perl-SNMP_Session

Install perl-SNMP_Session 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-SNMP_Session using yum by running the following command:

sudo yum -y install perl-SNMP_Session

How To Uninstall perl-SNMP_Session on Rocky Linux 8

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

sudo dnf remove perl-SNMP_Session

perl-SNMP_Session Package Contents on Rocky Linux 8

/usr/share/doc/perl-SNMP_Session
/usr/share/doc/perl-SNMP_Session/Artistic
/usr/share/doc/perl-SNMP_Session/README
/usr/share/doc/perl-SNMP_Session/README.SNMP_util
/usr/share/doc/perl-SNMP_Session/index.html
/usr/share/doc/perl-SNMP_Session/test
/usr/share/doc/perl-SNMP_Session/test/README
/usr/share/doc/perl-SNMP_Session/test/SNMPAgent.pm
/usr/share/doc/perl-SNMP_Session/test/arp
/usr/share/doc/perl-SNMP_Session/test/ber-test.pl
/usr/share/doc/perl-SNMP_Session/test/capturetest.pl
/usr/share/doc/perl-SNMP_Session/test/cisco-cpus
/usr/share/doc/perl-SNMP_Session/test/cisco-memory
/usr/share/doc/perl-SNMP_Session/test/discover
/usr/share/doc/perl-SNMP_Session/test/if-counters.pl
/usr/share/doc/perl-SNMP_Session/test/if-status.pl
/usr/share/doc/perl-SNMP_Session/test/if-to-routes.pl
/usr/share/doc/perl-SNMP_Session/test/iftop
/usr/share/doc/perl-SNMP_Session/test/map-table.pl
/usr/share/doc/perl-SNMP_Session/test/set-test.pl
/usr/share/doc/perl-SNMP_Session/test/snmpwalkh.pl
/usr/share/doc/perl-SNMP_Session/test/sun-find-process
/usr/share/doc/perl-SNMP_Session/test/sun-ps
/usr/share/doc/perl-SNMP_Session/test/test-table.pl
/usr/share/doc/perl-SNMP_Session/test/test.pl
/usr/share/doc/perl-SNMP_Session/test/trap-listener
/usr/share/doc/perl-SNMP_Session/test/trap-send
/usr/share/doc/perl-SNMP_Session/test/walk-intf.pl
/usr/share/doc/perl-SNMP_Session/test/walk-test.pl
/usr/share/doc/perl-SNMP_Session/test/wwwtest
/usr/share/perl5/vendor_perl/BER.pm
/usr/share/perl5/vendor_perl/SNMP_Session.pm
/usr/share/perl5/vendor_perl/SNMP_util.pm

References

Summary

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