How To Install mcelog.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mcelog.x86_64 in Amazon Linux 2. mcelog.x86_64 is Tool to translate x86-64 CPU Machine Check Exception data

Introduction

In this tutorial we learn how to install mcelog.x86_64 on Amazon Linux 2.

What is mcelog.x86_64

mcelog is a utility that collects and decodes Machine Check Exception data on x86-32 and x86-64 systems. It can be run either as a daemon, or by cron.

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

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

sudo yum -y install mcelog.x86_64

How To Uninstall mcelog.x86_64 on Amazon Linux 2

To uninstall only the mcelog.x86_64 package we can use the following command:

sudo yum remove mcelog.x86_64

mcelog.x86_64 Package Contents on Amazon Linux 2

/etc/cron.hourly/mcelog.cron
/etc/mcelog
/etc/mcelog/mcelog.conf
/etc/mcelog/mcelog.setup
/etc/mcelog/triggers
/etc/mcelog/triggers/cache-error-trigger
/etc/mcelog/triggers/dimm-error-trigger
/etc/mcelog/triggers/page-error-trigger
/etc/mcelog/triggers/socket-memory-error-trigger
/usr/lib/systemd/system/mcelog.service
/usr/sbin/mcelog
/usr/share/doc/mcelog-144
/usr/share/doc/mcelog-144/CHANGES
/usr/share/doc/mcelog-144/README.md
/usr/share/man/man5/mcelog.conf.5.gz
/usr/share/man/man5/mcelog.triggers.5.gz
/usr/share/man/man8/mcelog.8.gz

References

Summary

In this tutorial we learn how to install mcelog.x86_64 on Amazon Linux 2 using yum.