How To Install perl-Text-Template on CentOS 7

In this tutorial we learn how to install perl-Text-Template on CentOS 7. perl-Text-Template is Expand template text with embedded Perl

Introduction

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

What is perl-Text-Template

This is a library for generating form letters, building HTML pages, or filling in templates generally. A ’template’ is a piece of text that has little Perl programs embedded in it here and there. When you ‘fill in’ a template, you evaluate the little programs and replace them with their values.

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

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

sudo yum -y install perl-Text-Template

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

sudo dnf -y install perl-Text-Template

How To Uninstall perl-Text-Template on CentOS 7

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

sudo dnf remove perl-Text-Template

References

Summary

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