How To Install ec2-net-utils.noarch on Amazon Linux 2

In this tutorial we learn how to install ec2-net-utils.noarch in Amazon Linux 2. ec2-net-utils.noarch is A set of network tools for managing ENIs

Introduction

In this tutorial we learn how to install ec2-net-utils.noarch on Amazon Linux 2.

What is ec2-net-utils.noarch

ec2-net-utils contains a set of utilities for managing elastic network interfaces.

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

Install ec2-net-utils.noarch 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 ec2-net-utils.noarch using yum by running the following command:

sudo yum -y install ec2-net-utils.noarch

How To Uninstall ec2-net-utils.noarch on Amazon Linux 2

To uninstall only the ec2-net-utils.noarch package we can use the following command:

sudo yum remove ec2-net-utils.noarch

ec2-net-utils.noarch Package Contents on Amazon Linux 2

/etc/dhcp/dhclient-enter-hooks.d/50_ec2_rewrite_primary_enter_hook.sh
/etc/dhcp/dhclient.d/ec2dhcp.sh
/etc/modprobe.d/ixgbevf.conf
/etc/sysconfig/network-scripts/ec2net-functions
/etc/sysconfig/network-scripts/ec2net-functions-lib
/etc/sysconfig/network-scripts/ec2net.hotplug
/etc/udev/rules.d/53-ec2-network-interfaces.rules
/etc/udev/rules.d/75-persistent-net-generator.rules
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/ec2net-scan.service
/usr/lib/udev/rule_generator.functions
/usr/lib/udev/write_net_rules
/usr/sbin/ec2ifdown
/usr/sbin/ec2ifscan
/usr/sbin/ec2ifup
/usr/share/man/man8/ec2ifdown.8.gz
/usr/share/man/man8/ec2ifscan.8.gz
/usr/share/man/man8/ec2ifup.8.gz

References

Summary

In this tutorial we learn how to install ec2-net-utils.noarch on Amazon Linux 2 using yum.