How To Install perl-IPTables-ChainMgr on CentOS 7

In this tutorial we learn how to install perl-IPTables-ChainMgr on CentOS 7. perl-IPTables-ChainMgr is Perl extension for manipulating iptables policies

Introduction

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

What is perl-IPTables-ChainMgr

The IPTables iptables policies on Linux systems through the direct execution of iptables commands. Although making a perl extension of libiptc provided by the iptables project is possible, it is easy to just execute iptables commands directly in order to both parse and change the configuration of the policy. Further, this simplifies installation since the only external requirement is (in the spirit of scripting) to be able to point IPTables installed iptables binary instead of having to compile against a library.

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

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

sudo yum -y install perl-IPTables-ChainMgr

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

sudo dnf -y install perl-IPTables-ChainMgr

How To Uninstall perl-IPTables-ChainMgr on CentOS 7

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

sudo dnf remove perl-IPTables-ChainMgr

References

Summary

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