How To Install iptables-devel on Rocky Linux 8

In this tutorial we learn how to install iptables-devel on Rocky Linux 8. iptables-devel is Development package for iptables

Introduction

In this tutorial we learn how to install iptables-devel on Rocky Linux 8.

What is iptables-devel

iptables development headers and libraries. The iptc libraries are marked as not public by upstream. The interface is not stable and may change with every new version. It is therefore unsupported.

We can use yum or dnf to install iptables-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install iptables-devel.

Install iptables-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install iptables-devel using dnf by running the following command:

sudo dnf -y install iptables-devel

Install iptables-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install iptables-devel using yum by running the following command:

sudo yum -y install iptables-devel

How To Uninstall iptables-devel on Rocky Linux 8

To uninstall only the iptables-devel package we can use the following command:

sudo dnf remove iptables-devel

iptables-devel Package Contents on Rocky Linux 8

/usr/include/ip6tables.h
/usr/include/iptables
/usr/include/iptables.h
/usr/include/iptables/internal.h
/usr/include/libiptc
/usr/include/libiptc/ipt_kernel_headers.h
/usr/include/libiptc/libip6tc.h
/usr/include/libiptc/libiptc.h
/usr/include/libiptc/libxtc.h
/usr/include/libiptc/xtcshared.h
/usr/include/libipulog
/usr/include/libipulog/libipulog.h
/usr/include/xtables-version.h
/usr/include/xtables.h
/usr/lib/libip4tc.so
/usr/lib/libip6tc.so
/usr/lib/libxtables.so
/usr/lib/pkgconfig/libip4tc.pc
/usr/lib/pkgconfig/libip6tc.pc
/usr/lib/pkgconfig/libiptc.pc
/usr/lib/pkgconfig/xtables.pc
/usr/include/ip6tables.h
/usr/include/iptables
/usr/include/iptables.h
/usr/include/iptables/internal.h
/usr/include/libiptc
/usr/include/libiptc/ipt_kernel_headers.h
/usr/include/libiptc/libip6tc.h
/usr/include/libiptc/libiptc.h
/usr/include/libiptc/libxtc.h
/usr/include/libiptc/xtcshared.h
/usr/include/libipulog
/usr/include/libipulog/libipulog.h
/usr/include/xtables-version.h
/usr/include/xtables.h
/usr/lib64/libip4tc.so
/usr/lib64/libip6tc.so
/usr/lib64/libxtables.so
/usr/lib64/pkgconfig/libip4tc.pc
/usr/lib64/pkgconfig/libip6tc.pc
/usr/lib64/pkgconfig/libiptc.pc
/usr/lib64/pkgconfig/xtables.pc

References

Summary

In this tutorial we learn how to install iptables-devel on Rocky Linux 8 using yum and dnf.