How To Install iptables-utils.x86_64 on Amazon Linux 2

In this tutorial we learn how to install iptables-utils.x86_64 in Amazon Linux 2. iptables-utils.x86_64 is iptables and ip6tables services for iptables

Introduction

In this tutorial we learn how to install iptables-utils.x86_64 on Amazon Linux 2.

What is iptables-utils.x86_64

Utils for iptables. Currently only provides nfnl_osf with the pf.os database.

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

Install iptables-utils.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 iptables-utils.x86_64 using yum by running the following command:

sudo yum -y install iptables-utils.x86_64

How To Uninstall iptables-utils.x86_64 on Amazon Linux 2

To uninstall only the iptables-utils.x86_64 package we can use the following command:

sudo yum remove iptables-utils.x86_64

iptables-utils.x86_64 Package Contents on Amazon Linux 2

/usr/sbin/nfbpf_compile
/usr/sbin/nfnl_osf
/usr/share/man/man8/nfbpf_compile.8.gz
/usr/share/xtables
/usr/share/xtables/pf.os

References

Summary

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