How To Install rpm-cron.noarch on Amazon Linux 2

In this tutorial we learn how to install rpm-cron.noarch in Amazon Linux 2. rpm-cron.noarch is Create daily logs of installed packages.

Introduction

In this tutorial we learn how to install rpm-cron.noarch on Amazon Linux 2.

What is rpm-cron.noarch

This package contains a cron job which creates daily logs of installed packages on a system.

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

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

sudo yum -y install rpm-cron.noarch

How To Uninstall rpm-cron.noarch on Amazon Linux 2

To uninstall only the rpm-cron.noarch package we can use the following command:

sudo yum remove rpm-cron.noarch

rpm-cron.noarch Package Contents on Amazon Linux 2

/etc/cron.daily/rpm
/etc/logrotate.d/rpm

References

Summary

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