How To Install systemd on AlmaLinux 8

In this tutorial we learn how to install systemd in AlmaLinux 8. systemd is System and Service Manager

Introduction

In this tutorial we learn how to install systemd on AlmaLinux 8.

What is systemd

systemd is a system and service manager that runs as PID 1 and starts the rest of the system. It 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 control groups, maintains mount and automount points, and implements an elaborate transactional dependency-based service control logic. systemd supports SysV and LSB init scripts and works as a replacement for sysvinit. Other parts of this package are a logging daemon, utilities to control basic system configuration like the hostname, date, locale, maintain a list of logged-in users, system accounts, runtime directories and settings, and daemons to manage simple network configuration, network time synchronization, log forwarding, and name resolution.

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

Install systemd on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install systemd

Install systemd on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install systemd

How To Uninstall systemd on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.