How To Install dmraid-events-logwatch.x86_64 on Amazon Linux 2

In this tutorial we learn how to install dmraid-events-logwatch.x86_64 in Amazon Linux 2. dmraid-events-logwatch.x86_64 is dmraid logwatch-based email reporting

Introduction

In this tutorial we learn how to install dmraid-events-logwatch.x86_64 on Amazon Linux 2.

What is dmraid-events-logwatch.x86_64

Provides device failure reporting via logwatch-based email reporting. Device failure reporting has to be activated manually by activating the /etc/cron.d/dmeventd-logwatch entry and by calling the dmevent_tool (see manual page for examples) for any active RAID sets.

We can use yum to install dmraid-events-logwatch.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install dmraid-events-logwatch.x86_64.

Install dmraid-events-logwatch.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dmraid-events-logwatch.x86_64 using yum by running the following command:

sudo yum -y install dmraid-events-logwatch.x86_64

How To Uninstall dmraid-events-logwatch.x86_64 on Amazon Linux 2

To uninstall only the dmraid-events-logwatch.x86_64 package we can use the following command:

sudo yum remove dmraid-events-logwatch.x86_64

dmraid-events-logwatch.x86_64 Package Contents on Amazon Linux 2

/etc/cron.d/dmeventd-logwatch
/etc/logwatch/conf
/etc/logwatch/conf/services
/etc/logwatch/conf/services/dmeventd.conf
/etc/logwatch/scripts
/etc/logwatch/scripts/services
/etc/logwatch/scripts/services/dmeventd
/var/cache/logwatch/dmeventd
/var/cache/logwatch/dmeventd/syslogpattern.txt

References

Summary

In this tutorial we learn how to install dmraid-events-logwatch.x86_64 on Amazon Linux 2 using yum.