How To Install libmath-random-mt-perl on Debian 10

Learn how to install libmath-random-mt-perl on Debian 10 with this tutorial. libmath-random-mt-perl is Perl implementation of the Mersenne Twister algorithm

Introduction

In this tutorial we learn how to install libmath-random-mt-perl on Debian 10.

What is libmath-random-mt-perl

libmath-random-mt-perl is:

Math::Random::MT provides an implementation of the Mersenne Twister pseudorandom number generator algorithm developed by Makoto Matsumoto and Takuji Nishimura.

It is related to but a different algorithm than a previous work by the same authors - the TT800 algorithm, which keeps less state data (MT uses 624 numbers compared to TT800’s 25). Consequently, the period is much larger - 2^19937-1 compared to TT800’s 2^800-1. For comparison, ISAAC’s period is 2^8295 values on average.

For more information, peruse M. Matsumoto and T. Nishimura’s paper: URL:http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/mt.pdf.

There are three methods to install libmath-random-mt-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libmath-random-mt-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libmath-random-mt-perl using apt-get by running the following command:

sudo apt-get -y install libmath-random-mt-perl

Install libmath-random-mt-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmath-random-mt-perl using apt by running the following command:

sudo apt -y install libmath-random-mt-perl

Install libmath-random-mt-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libmath-random-mt-perl using aptitude by running the following command:

sudo aptitude -y install libmath-random-mt-perl

How To Uninstall libmath-random-mt-perl on Debian 10

To uninstall only the libmath-random-mt-perl package we can use the following command:

sudo apt-get remove libmath-random-mt-perl

Uninstall libmath-random-mt-perl And Its Dependencies

To uninstall libmath-random-mt-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libmath-random-mt-perl

Remove libmath-random-mt-perl Configurations and Data

To remove libmath-random-mt-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libmath-random-mt-perl

Remove libmath-random-mt-perl configuration, data, and all of its dependencies

We can use the following command to remove libmath-random-mt-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmath-random-mt-perl

Dependencies

libmath-random-mt-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libmath-random-mt-perl package on Debian 10 using different package management tools: apt, apt-get and aptitude.