How To Install ntsysv on CentOS 7

In this tutorial we learn how to install ntsysv on CentOS 7. ntsysv is A tool to set the stop/start of system services in a runlevel

Introduction

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

What is ntsysv

Ntsysv provides a simple interface for setting which system services are started or stopped in various runlevels (instead of directly manipulating the numerous symbolic links in /etc/rc.d). Unless you specify a runlevel or runlevels on the command line (see the man page), ntsysv configures the current runlevel (5 if you’re using X).

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

Install ntsysv on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ntsysv

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

sudo dnf -y install ntsysv

How To Uninstall ntsysv on CentOS 7

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

sudo dnf remove ntsysv

References

Summary

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