How To Install perl-Cache-Cache on CentOS 7

In this tutorial we learn how to install perl-Cache-Cache on CentOS 7. perl-Cache-Cache is Generic cache interface and implementations

Introduction

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

What is perl-Cache-Cache

The Cache modules are designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an easy to use abstraction of the filesystem or shared memory.

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

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

sudo yum -y install perl-Cache-Cache

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

sudo dnf -y install perl-Cache-Cache

How To Uninstall perl-Cache-Cache on CentOS 7

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

sudo dnf remove perl-Cache-Cache

References

Summary

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