How To Install xinetd on CentOS 7

In this tutorial we learn how to install xinetd on CentOS 7. xinetd is A secure replacement for inetd

Introduction

In this tutorial we learn how to install xinetd on CentOS 7.

What is xinetd

Xinetd is a secure replacement for inetd, the Internet services daemon. Xinetd provides access control for all services based on the address of the remote host and/or on time of access and can prevent denial-of-access attacks. Xinetd provides extensive logging, has no limit on the number of server arguments, and lets you bind specific services to specific IP addresses on your host machine. Each service has its own specific configuration file for Xinetd; the files are located in the /etc/xinetd.d directory.

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

Install xinetd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xinetd using yum by running the following command:

sudo yum -y install xinetd

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

sudo dnf -y install xinetd

How To Uninstall xinetd on CentOS 7

To uninstall only the xinetd package we can use the following command:

sudo dnf remove xinetd

References

Summary

In this tutorial we learn how to install xinetd on CentOS 7 using yum and dnf.