The xinetd
package can be removed with the following command:
$ apt-get remove xinetd
Removing the xinetd package decreases the risk of the xinetd service's accidental (or intentional) activation.
The xinetd
service can be disabled with the following command:
$ sudo systemctl mask --now xinetd.service
The xinetd service provides a dedicated listener service for some programs, which is no longer necessary for commonly-used network services. Disabling it ensures that these uncommon services are not running, and also prevents attacks against xinetd itself.