How To Install rktime on CentOS 7

In this tutorial we learn how to install rktime on CentOS 7. rktime is Multi-zone time display utility

Introduction

In this tutorial we learn how to install rktime on CentOS 7.

What is rktime

A command-line utility which displays the time in multiple timezones in an easy-to-read way, using color to help indicate which locations are currently in business hours.

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

Install rktime on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install rktime

Install rktime 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 rktime using dnf by running the following command:

sudo dnf -y install rktime

How To Uninstall rktime on CentOS 7

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

sudo dnf remove rktime

References

Summary

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