How To Install systemd on CentOS 7
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.
After updating yum database, We can install systemd
using yum
by running the following command:
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.
After updating yum database, We can install systemd
using dnf
by running the following command:
How To Uninstall systemd on CentOS 7
To uninstall only the systemd
package we can use the following command:
References
Summary
In this tutorial we learn how to install systemd
on CentOS 7 using yum
and dnf
.