How To Install perl-Color-ANSI-Util on AlmaLinux 8

In this tutorial we learn how to install perl-Color-ANSI-Util in AlmaLinux 8. perl-Color-ANSI-Util is Routines for dealing with ANSI colors

Introduction

In this tutorial we learn how to install perl-Color-ANSI-Util on AlmaLinux 8.

What is perl-Color-ANSI-Util

This module provides routines for dealing with ANSI colors. The two main functions are ansifg and ansibg. With those functions, you can specify colors in RGB and let it output the correct ANSI color escape code according to the color depth support of the terminal (whether 16-color, 256-color, or 24bit). There are other functions to convert RGB to ANSI in specific color depths, or reverse functions to convert from ANSI to RGB codes.

We can use yum or dnf to install perl-Color-ANSI-Util on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Color-ANSI-Util.

Install perl-Color-ANSI-Util on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Color-ANSI-Util using dnf by running the following command:

sudo dnf -y install perl-Color-ANSI-Util

Install perl-Color-ANSI-Util on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Color-ANSI-Util using yum by running the following command:

sudo yum -y install perl-Color-ANSI-Util

How To Uninstall perl-Color-ANSI-Util on AlmaLinux 8

To uninstall only the perl-Color-ANSI-Util package we can use the following command:

sudo dnf remove perl-Color-ANSI-Util

References

Summary

In this tutorial we learn how to install perl-Color-ANSI-Util on AlmaLinux 8 using yum and dnf.