How To Install perl-Math-Complex on AlmaLinux 8

In this tutorial we learn how to install perl-Math-Complex in AlmaLinux 8. perl-Math-Complex is Complex numbers and trigonometric functions

Introduction

In this tutorial we learn how to install perl-Math-Complex on AlmaLinux 8.

What is perl-Math-Complex

This package lets you create and manipulate complex numbers. By default, Perl limits itself to real numbers, but an extra “use” statement brings full complex support, along with a full set of mathematical functions typically associated with and/or extended to complex numbers.

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

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

sudo dnf -y install perl-Math-Complex

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

sudo yum -y install perl-Math-Complex

How To Uninstall perl-Math-Complex on AlmaLinux 8

To uninstall only the perl-Math-Complex package we can use the following command:

sudo dnf remove perl-Math-Complex

References

Summary

In this tutorial we learn how to install perl-Math-Complex on AlmaLinux 8 using yum and dnf.