How To Install xinetd on Rocky Linux 8

In this tutorial we learn how to install xinetd on Rocky Linux 8. xinetd is A secure replacement for inetd

Introduction

In this tutorial we learn how to install xinetd on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install xinetd.

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

sudo dnf -y install xinetd

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

sudo yum -y install xinetd

How To Uninstall xinetd on Rocky Linux 8

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

sudo dnf remove xinetd

xinetd Package Contents on Rocky Linux 8

/etc/xinetd.conf
/etc/xinetd.d/chargen-dgram
/etc/xinetd.d/chargen-stream
/etc/xinetd.d/daytime-dgram
/etc/xinetd.d/daytime-stream
/etc/xinetd.d/discard-dgram
/etc/xinetd.d/discard-stream
/etc/xinetd.d/echo-dgram
/etc/xinetd.d/echo-stream
/etc/xinetd.d/tcpmux-server
/etc/xinetd.d/time-dgram
/etc/xinetd.d/time-stream
/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/67acad54132d83ee37005c4be513bf8448014b
/usr/lib/systemd/system/xinetd.service
/usr/sbin/xinetd
/usr/share/doc/xinetd
/usr/share/doc/xinetd/CHANGELOG
/usr/share/doc/xinetd/COPYRIGHT
/usr/share/doc/xinetd/README
/usr/share/doc/xinetd/empty.conf
/usr/share/doc/xinetd/sample.conf
/usr/share/man/man5/xinetd.conf.5.gz
/usr/share/man/man5/xinetd.log.5.gz
/usr/share/man/man8/xinetd.8.gz

References

Summary

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