How To Install net-snmp.x86_64 on Amazon Linux 2

In this tutorial we learn how to install net-snmp.x86_64 in Amazon Linux 2. net-snmp.x86_64 is A collection of SNMP protocol tools and libraries

Introduction

In this tutorial we learn how to install net-snmp.x86_64 on Amazon Linux 2.

What is net-snmp.x86_64

SNMP (Simple Network Management Protocol) is a protocol used for network management. The NET-SNMP project includes various SNMP tools or setting information from SNMP agents, tools for generating and handling SNMP traps, a version of the netstat command which uses SNMP, and a Tk/Perl mib browser. This package contains the snmpd and snmptrapd daemons, documentation, etc. You will probably also want to install the net-snmp-utils package, which contains NET-SNMP utilities.

We can use yum to install net-snmp.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install net-snmp.x86_64.

Install net-snmp.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install net-snmp.x86_64 using yum by running the following command:

sudo yum -y install net-snmp.x86_64

How To Uninstall net-snmp.x86_64 on Amazon Linux 2

To uninstall only the net-snmp.x86_64 package we can use the following command:

sudo yum remove net-snmp.x86_64

net-snmp.x86_64 Package Contents on Amazon Linux 2

/etc/snmp
/etc/snmp/snmpd.conf
/etc/snmp/snmptrapd.conf
/etc/sysconfig/snmpd
/etc/sysconfig/snmptrapd
/usr/bin/agentxtrap
/usr/bin/net-snmp-create-v3-user
/usr/bin/snmpconf
/usr/lib/systemd/system/snmpd.service
/usr/lib/systemd/system/snmptrapd.service
/usr/lib/tmpfiles.d/net-snmp.conf
/usr/sbin/snmpd
/usr/sbin/snmptrapd
/usr/share/doc/net-snmp-5.7.2
/usr/share/doc/net-snmp-5.7.2/AGENT.txt
/usr/share/doc/net-snmp-5.7.2/COPYING
/usr/share/doc/net-snmp-5.7.2/ChangeLog.trimmed
/usr/share/doc/net-snmp-5.7.2/EXAMPLE.conf
/usr/share/doc/net-snmp-5.7.2/FAQ
/usr/share/doc/net-snmp-5.7.2/NEWS
/usr/share/doc/net-snmp-5.7.2/PORTING
/usr/share/doc/net-snmp-5.7.2/README
/usr/share/doc/net-snmp-5.7.2/README.agent-mibs
/usr/share/doc/net-snmp-5.7.2/README.agentx
/usr/share/doc/net-snmp-5.7.2/README.krb5
/usr/share/doc/net-snmp-5.7.2/README.mib2c
/usr/share/doc/net-snmp-5.7.2/README.snmpv3
/usr/share/doc/net-snmp-5.7.2/README.thread
/usr/share/doc/net-snmp-5.7.2/TODO
/usr/share/doc/net-snmp-5.7.2/ipf-mod.pl
/usr/share/doc/net-snmp-5.7.2/passtest
/usr/share/man/man1/net-snmp-create-v3-user.1.gz
/usr/share/man/man1/snmpconf.1.gz
/usr/share/man/man5/snmp_config.5.gz
/usr/share/man/man5/snmpd.conf.5.gz
/usr/share/man/man5/snmpd.examples.5.gz
/usr/share/man/man5/snmpd.internal.5.gz
/usr/share/man/man5/snmptrapd.conf.5.gz
/usr/share/man/man5/variables.5.gz
/usr/share/man/man8/snmpd.8.gz
/usr/share/man/man8/snmptrapd.8.gz
/usr/share/snmp
/usr/share/snmp/snmpconf-data
/usr/share/snmp/snmpconf-data/snmp-data
/usr/share/snmp/snmpconf-data/snmp-data/authopts
/usr/share/snmp/snmpconf-data/snmp-data/debugging
/usr/share/snmp/snmpconf-data/snmp-data/mibs
/usr/share/snmp/snmpconf-data/snmp-data/output
/usr/share/snmp/snmpconf-data/snmp-data/snmpconf-config
/usr/share/snmp/snmpconf-data/snmpd-data
/usr/share/snmp/snmpconf-data/snmpd-data/acl
/usr/share/snmp/snmpconf-data/snmpd-data/basic_setup
/usr/share/snmp/snmpconf-data/snmpd-data/extending
/usr/share/snmp/snmpconf-data/snmpd-data/monitor
/usr/share/snmp/snmpconf-data/snmpd-data/operation
/usr/share/snmp/snmpconf-data/snmpd-data/snmpconf-config
/usr/share/snmp/snmpconf-data/snmpd-data/system
/usr/share/snmp/snmpconf-data/snmpd-data/trapsinks
/usr/share/snmp/snmpconf-data/snmptrapd-data
/usr/share/snmp/snmpconf-data/snmptrapd-data/authentication
/usr/share/snmp/snmpconf-data/snmptrapd-data/formatting
/usr/share/snmp/snmpconf-data/snmptrapd-data/logging
/usr/share/snmp/snmpconf-data/snmptrapd-data/runtime
/usr/share/snmp/snmpconf-data/snmptrapd-data/snmpconf-config
/usr/share/snmp/snmpconf-data/snmptrapd-data/traphandle
/var/run/net-snmp

References

Summary

In this tutorial we learn how to install net-snmp.x86_64 on Amazon Linux 2 using yum.