How To Install update-motd.noarch on Amazon Linux 2

In this tutorial we learn how to install update-motd.noarch in Amazon Linux 2. update-motd.noarch is Framework for dynamically generating MOTD

Introduction

In this tutorial we learn how to install update-motd.noarch on Amazon Linux 2.

What is update-motd.noarch

Framework and scripts for producing a dynamically generated Message Of The Day. Based on and compatible with the framework implemented Ubuntu.

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

Install update-motd.noarch 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 update-motd.noarch using yum by running the following command:

sudo yum -y install update-motd.noarch

How To Uninstall update-motd.noarch on Amazon Linux 2

To uninstall only the update-motd.noarch package we can use the following command:

sudo yum remove update-motd.noarch

update-motd.noarch Package Contents on Amazon Linux 2

/etc/cron.d/update-motd
/etc/update-motd.d
/etc/yum/pluginconf.d/update-motd.conf
/usr/lib/systemd/system/update-motd.service
/usr/lib/yum-plugins/update-motd.py
/usr/sbin/update-motd
/var/lib/update-motd
/var/lib/update-motd/motd

References

Summary

In this tutorial we learn how to install update-motd.noarch on Amazon Linux 2 using yum.