How To Install perl-Statistics-Basic on Rocky Linux 8

In this tutorial we learn how to install perl-Statistics-Basic on Rocky Linux 8. perl-Statistics-Basic is A collection of very basic statistics modules

Introduction

In this tutorial we learn how to install perl-Statistics-Basic on Rocky Linux 8.

What is perl-Statistics-Basic

use Statistics my $median = median( 1,2,3 ); my $mean = mean( [1,2,3]); # array refs are ok too my $variance = variance( 1,2,3 ); my $stddev = stddev( 1,2,3 ); my $correlation = correlation( [1 .. 3], [1 .. 3] );

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

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

sudo dnf -y install perl-Statistics-Basic

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

sudo yum -y install perl-Statistics-Basic

How To Uninstall perl-Statistics-Basic on Rocky Linux 8

To uninstall only the perl-Statistics-Basic package we can use the following command:

sudo dnf remove perl-Statistics-Basic

perl-Statistics-Basic Package Contents on Rocky Linux 8

/usr/share/doc/perl-Statistics-Basic
/usr/share/doc/perl-Statistics-Basic/Changes
/usr/share/doc/perl-Statistics-Basic/README
/usr/share/man/man3/Statistics::Basic.3pm.gz
/usr/share/man/man3/Statistics::Basic::ComputedVector.3pm.gz
/usr/share/man/man3/Statistics::Basic::Correlation.3pm.gz
/usr/share/man/man3/Statistics::Basic::Covariance.3pm.gz
/usr/share/man/man3/Statistics::Basic::LeastSquareFit.3pm.gz
/usr/share/man/man3/Statistics::Basic::Mean.3pm.gz
/usr/share/man/man3/Statistics::Basic::Median.3pm.gz
/usr/share/man/man3/Statistics::Basic::Mode.3pm.gz
/usr/share/man/man3/Statistics::Basic::StdDev.3pm.gz
/usr/share/man/man3/Statistics::Basic::Variance.3pm.gz
/usr/share/man/man3/Statistics::Basic::Vector.3pm.gz
/usr/share/man/man3/Statistics::Basic::_OneVectorBase.3pm.gz
/usr/share/man/man3/Statistics::Basic::_TwoVectorBase.3pm.gz
/usr/share/perl5/Statistics
/usr/share/perl5/Statistics/Basic
/usr/share/perl5/Statistics/Basic.pm
/usr/share/perl5/Statistics/Basic.pod
/usr/share/perl5/Statistics/Basic/ComputedVector.pm
/usr/share/perl5/Statistics/Basic/ComputedVector.pod
/usr/share/perl5/Statistics/Basic/Correlation.pm
/usr/share/perl5/Statistics/Basic/Correlation.pod
/usr/share/perl5/Statistics/Basic/Covariance.pm
/usr/share/perl5/Statistics/Basic/Covariance.pod
/usr/share/perl5/Statistics/Basic/LeastSquareFit.pm
/usr/share/perl5/Statistics/Basic/LeastSquareFit.pod
/usr/share/perl5/Statistics/Basic/Mean.pm
/usr/share/perl5/Statistics/Basic/Mean.pod
/usr/share/perl5/Statistics/Basic/Median.pm
/usr/share/perl5/Statistics/Basic/Median.pod
/usr/share/perl5/Statistics/Basic/Mode.pm
/usr/share/perl5/Statistics/Basic/Mode.pod
/usr/share/perl5/Statistics/Basic/StdDev.pm
/usr/share/perl5/Statistics/Basic/StdDev.pod
/usr/share/perl5/Statistics/Basic/Variance.pm
/usr/share/perl5/Statistics/Basic/Variance.pod
/usr/share/perl5/Statistics/Basic/Vector.pm
/usr/share/perl5/Statistics/Basic/Vector.pod
/usr/share/perl5/Statistics/Basic/_OneVectorBase.pm
/usr/share/perl5/Statistics/Basic/_OneVectorBase.pod
/usr/share/perl5/Statistics/Basic/_TwoVectorBase.pm
/usr/share/perl5/Statistics/Basic/_TwoVectorBase.pod

References

Summary

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