How To Install perl-Text-Context on Fedora 36

In this tutorial we learn how to install perl-Text-Context in Fedora 36. perl-Text-Context is Handle highlighting search result context snippets

Introduction

In this tutorial we learn how to install perl-Text-Context on Fedora 36.

What is perl-Text-Context

Given a piece of text and some search terms, produces an object which locates the search terms in the message, extracts a reasonable-length string containing all the search terms, and optionally dumps the string out as HTML text with the search terms highlighted in bold.

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

Install perl-Text-Context on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Text-Context

Install perl-Text-Context on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Text-Context

How To Uninstall perl-Text-Context on Fedora 36

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

sudo dnf remove perl-Text-Context

perl-Text-Context Package Contents on Fedora 36

/usr/share/doc/perl-Text-Context
/usr/share/doc/perl-Text-Context/Changes
/usr/share/doc/perl-Text-Context/README
/usr/share/man/man3/Text::Context.3pm.gz
/usr/share/man/man3/Text::Context::Para.3pm.gz
/usr/share/perl5/vendor_perl/Text
/usr/share/perl5/vendor_perl/Text/Context
/usr/share/perl5/vendor_perl/Text/Context.pm
/usr/share/perl5/vendor_perl/Text/Context/Para.pm

References

Summary

In this tutorial we learn how to install perl-Text-Context on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).