How To Install chrony on AlmaLinux 8

In this tutorial we learn how to install chrony in AlmaLinux 8. chrony is An NTP client/server

Introduction

In this tutorial we learn how to install chrony on AlmaLinux 8.

What is chrony

chrony is a versatile implementation of the Network Time Protocol (NTP). It can synchronise the system clock with NTP servers, reference clocks (e.g. GPS receiver), and manual input using wristwatch and keyboard. It can also operate as an NTPv4 (RFC 5905) server and peer to provide a time service to other computers in the network.

We can use yum or dnf to install chrony on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install chrony.

Install chrony on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install chrony

Install chrony on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install chrony

How To Uninstall chrony on AlmaLinux 8

To uninstall only the chrony package we can use the following command:

sudo dnf remove chrony

References

Summary

In this tutorial we learn how to install chrony on AlmaLinux 8 using yum and dnf.