How To Install yum-cron.noarch on Amazon Linux 2
In this tutorial we learn how to install yum-cron.noarch in Amazon Linux 2. yum-cron.noarch is Files needed to run yum updates as a cron job
Introduction
In this tutorial we learn how to install yum-cron.noarch
on Amazon Linux 2.
What is yum-cron.noarch
These are the files needed to run yum updates as a cron job. Install this package if you want auto yum updates nightly via cron.
We can use yum
to install yum-cron.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install yum-cron.noarch.
Install yum-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 yum-cron.noarch
using yum
by running the following command:
sudo yum -y install yum-cron.noarch
How To Uninstall yum-cron.noarch on Amazon Linux 2
To uninstall only the yum-cron.noarch
package we can use the following command:
sudo yum remove yum-cron.noarch
yum-cron.noarch Package Contents on Amazon Linux 2
/etc/cron.daily/0yum-daily.cron
/etc/cron.hourly/0yum-hourly.cron
/etc/yum/yum-cron-hourly.conf
/etc/yum/yum-cron.conf
/usr/lib/systemd/system/yum-cron.service
/usr/sbin/yum-cron
/usr/share/doc/yum-cron-3.4.3
/usr/share/doc/yum-cron-3.4.3/COPYING
/usr/share/man/man8/yum-cron.8
References
Summary
In this tutorial we learn how to install yum-cron.noarch
on Amazon Linux 2 using yum.