How To Install perl-TermReadKey on CentOS 7

In this tutorial we learn how to install perl-TermReadKey on CentOS 7. perl-TermReadKey is A perl module for simple terminal control

Introduction

In this tutorial we learn how to install perl-TermReadKey on CentOS 7.

What is perl-TermReadKey

Term simple control over terminal driver modes (cbreak, raw, cooked, etc.) support for non-blocking reads, if the architecture allows, and some generalized handy functions for working with terminals. One of the main goals is to have the functions as portable as possible, so you can just plug in “use Term architecture and have a good likelyhood of it working.

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

Install perl-TermReadKey on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-TermReadKey

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

sudo dnf -y install perl-TermReadKey

How To Uninstall perl-TermReadKey on CentOS 7

To uninstall only the perl-TermReadKey package we can use the following command:

sudo dnf remove perl-TermReadKey

References

Summary

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