How To Install systemd on CentOS 7

In this tutorial we learn how to install systemd on CentOS 7. systemd is A System and Service Manager

Introduction

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

What is systemd

systemd is a system and service manager for Linux, compatible with SysV and LSB init scripts. systemd provides aggressive parallelization capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, keeps track of processes using Linux cgroups, supports snapshotting and restoring of the system state, maintains mount and automount points and implements an elaborate transactional dependency-based service control logic. It can work as a drop-in replacement for sysvinit.

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

Install systemd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install systemd

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

sudo dnf -y install systemd

How To Uninstall systemd on CentOS 7

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

sudo dnf remove systemd

References

Summary

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