How To Install perl-Term-ANSIColor on Fedora 36

In this tutorial we learn how to install perl-Term-ANSIColor in Fedora 36. perl-Term-ANSIColor is Color screen output using ANSI escape sequences

Introduction

In this tutorial we learn how to install perl-Term-ANSIColor on Fedora 36.

What is perl-Term-ANSIColor

This module has two interfaces, one through color() and colored() and the other through constants. It also offers the utility functions uncolor(), colorstrip(), colorvalid(), and coloralias(), which have to be explicitly imported to be used.

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

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

sudo dnf -y install perl-Term-ANSIColor

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

sudo yum -y install perl-Term-ANSIColor

How To Uninstall perl-Term-ANSIColor on Fedora 36

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

sudo dnf remove perl-Term-ANSIColor

perl-Term-ANSIColor Package Contents on Fedora 36

/usr/share/doc/perl-Term-ANSIColor
/usr/share/doc/perl-Term-ANSIColor/Changes
/usr/share/doc/perl-Term-ANSIColor/README
/usr/share/doc/perl-Term-ANSIColor/examples
/usr/share/doc/perl-Term-ANSIColor/examples/generate-colors
/usr/share/licenses/perl-Term-ANSIColor
/usr/share/licenses/perl-Term-ANSIColor/LICENSE
/usr/share/man/man3/Term::ANSIColor.3pm.gz
/usr/share/perl5/vendor_perl/Term
/usr/share/perl5/vendor_perl/Term/ANSIColor.pm

References

Summary

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