How To Install perl-Text-Template on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install perl-Text-Template on Rocky Linux 8.

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 Rocky Linux 8. 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 Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Text-Template

Install perl-Text-Template on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Text-Template

How To Uninstall perl-Text-Template on Rocky Linux 8

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

sudo dnf remove perl-Text-Template

perl-Text-Template Package Contents on Rocky Linux 8

/usr/share/doc/perl-Text-Template
/usr/share/doc/perl-Text-Template/README
/usr/share/licenses/perl-Text-Template
/usr/share/licenses/perl-Text-Template/LICENSE
/usr/share/man/man3/Text::Template.3pm.gz
/usr/share/man/man3/Text::Template::Preprocess.3pm.gz
/usr/share/perl5/vendor_perl/Text
/usr/share/perl5/vendor_perl/Text/Template
/usr/share/perl5/vendor_perl/Text/Template.pm
/usr/share/perl5/vendor_perl/Text/Template/Preprocess.pm

References

Summary

In this tutorial we learn how to install perl-Text-Template on Rocky Linux 8 using yum and dnf.