How To Install mdadm on Fedora 36

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

Introduction

In this tutorial we learn how to install mdadm on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mdadm.

Install mdadm on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove mdadm

mdadm Package Contents on Fedora 36

/etc/libreport/events.d/mdadm_event.conf
/etc/sysconfig/raid-check
/run/mdadm
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/c45d53887a85d028440e3d1131368e8f4177d7
/usr/lib/.build-id/73
/usr/lib/.build-id/73/b7bda520ca43d573a72e6fd7f6f3f71eee19e4
/usr/lib/systemd/system-shutdown/mdadm.shutdown
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/mdcheck_continue.service
/usr/lib/systemd/system/mdcheck_continue.timer
/usr/lib/systemd/system/mdcheck_start.service
/usr/lib/systemd/system/mdcheck_start.timer
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/mdmonitor-oneshot.service
/usr/lib/systemd/system/mdmonitor-oneshot.timer
/usr/lib/systemd/system/mdmonitor.service
/usr/lib/systemd/system/raid-check.service
/usr/lib/systemd/system/raid-check.timer
/usr/lib/tmpfiles.d/mdadm.conf
/usr/lib/udev/rules.d/01-md-raid-creating.rules
/usr/lib/udev/rules.d/63-md-raid-arrays.rules
/usr/lib/udev/rules.d/64-md-raid-assembly.rules
/usr/lib/udev/rules.d/65-md-incremental.rules
/usr/lib/udev/rules.d/69-md-clustered-confirm-device.rules
/usr/sbin/mdadm
/usr/sbin/mdmon
/usr/sbin/raid-check
/usr/share/doc/mdadm
/usr/share/doc/mdadm/mdadm.conf-example
/usr/share/doc/mdadm/mdcheck
/usr/share/doc/mdadm/syslog-events
/usr/share/licenses/mdadm
/usr/share/licenses/mdadm/COPYING
/usr/share/man/man4/md.4.gz
/usr/share/man/man5/mdadm.conf.5.gz
/usr/share/man/man8/mdadm.8.gz
/usr/share/man/man8/mdmon.8.gz

References

Summary

In this tutorial we learn how to install mdadm on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).