How To Install perl-IPTables-Parse on CentOS 7

In this tutorial we learn how to install perl-IPTables-Parse on CentOS 7. perl-IPTables-Parse is Perl extension for parsing iptables firewall rulesets

Introduction

In this tutorial we learn how to install perl-IPTables-Parse on CentOS 7.

What is perl-IPTables-Parse

The IPTables iptables rules on Linux systems through the direct execution of iptables commands, or from parsing a file that contains an iptables policy listing. You can get the current policy applied to a table/chain, look for a specific user-defined chain, check for a default DROP policy, or determing whether or not logging rules exist.

We can use yum or dnf to install perl-IPTables-Parse on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-IPTables-Parse.

Install perl-IPTables-Parse on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-IPTables-Parse

Install perl-IPTables-Parse on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install perl-IPTables-Parse

How To Uninstall perl-IPTables-Parse on CentOS 7

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

sudo dnf remove perl-IPTables-Parse

References

Summary

In this tutorial we learn how to install perl-IPTables-Parse on CentOS 7 using yum and dnf.