How To Install yum-updateonboot on CentOS 7

In this tutorial we learn how to install yum-updateonboot on CentOS 7. yum-updateonboot is Run yum update on system boot

Introduction

In this tutorial we learn how to install yum-updateonboot on CentOS 7.

What is yum-updateonboot

Runs yum update on system boot. This allows machines that have been turned off for an extended amount of time to become secure immediately, instead of waiting until the next early morning cron job.

We can use yum or dnf to install yum-updateonboot on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install yum-updateonboot.

Install yum-updateonboot on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install yum-updateonboot using yum by running the following command:

sudo yum -y install yum-updateonboot

Install yum-updateonboot on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install yum-updateonboot using dnf by running the following command:

sudo dnf -y install yum-updateonboot

How To Uninstall yum-updateonboot on CentOS 7

To uninstall only the yum-updateonboot package we can use the following command:

sudo dnf remove yum-updateonboot

References

Summary

In this tutorial we learn how to install yum-updateonboot on CentOS 7 using yum and dnf.