How To Install mdadm on AlmaLinux 8

In this tutorial we learn how to install mdadm in AlmaLinux 8. mdadm is The mdadm program controls Linux md devices (software RAID arrays)

Introduction

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

What is mdadm

The mdadm program is used to create, manage, and monitor Linux MD (software RAID) devices. As such, it provides similar functionality to the raidtools package. However, mdadm is a single program, and it can perform almost all functions without a configuration file, though a configuration file can be used to help with some common tasks.

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

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

sudo dnf -y install mdadm

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

sudo yum -y install mdadm

How To Uninstall mdadm on AlmaLinux 8

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

sudo dnf remove mdadm

References

Summary

In this tutorial we learn how to install mdadm on AlmaLinux 8 using yum and dnf.