How To Install libmath-prime-util-gmp-perl on Kali Linux

In this tutorial we learn how to install libmath-prime-util-gmp-perl on Kali Linux. libmath-prime-util-gmp-perl is utilities related to prime numbers, using GMP

Introduction

In this tutorial we learn how to install libmath-prime-util-gmp-perl on Kali Linux.

What is libmath-prime-util-gmp-perl

libmath-prime-util-gmp-perl is:

Math::Prime::Util::GMP contains a set of utilities related to prime numbers, using GMP. This includes primality tests, getting primes in a range, and factoring.

While it certainly can be used directly, the main purpose of this module is for Math::Prime::Util. That module will automatically load this if it is installed, greatly speeding up many of its operations on big numbers.

Inputs and outputs for big numbers are via strings, so you do not need to use a bigint package in your program. However if you do use bigints, inputs will be converted internally so there is no need to convert before a call. Output results are returned as either Perl scalars (for native-size) or strings (for bigints). Math::Prime::Util tries to reconvert all strings back into the callers bigint type if possible, which makes it more convenient for calculations.

There are three methods to install libmath-prime-util-gmp-perl on Kali Linux. 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-prime-util-gmp-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-prime-util-gmp-perl using apt-get by running the following command:

sudo apt-get -y install libmath-prime-util-gmp-perl

Install libmath-prime-util-gmp-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmath-prime-util-gmp-perl using apt by running the following command:

sudo apt -y install libmath-prime-util-gmp-perl

Install libmath-prime-util-gmp-perl Using aptitude

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

sudo aptitude update

After updating apt database, We can install libmath-prime-util-gmp-perl using aptitude by running the following command:

sudo aptitude -y install libmath-prime-util-gmp-perl

How To Uninstall libmath-prime-util-gmp-perl on Kali Linux

To uninstall only the libmath-prime-util-gmp-perl package we can use the following command:

sudo apt-get remove libmath-prime-util-gmp-perl

Uninstall libmath-prime-util-gmp-perl And Its Dependencies

To uninstall libmath-prime-util-gmp-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libmath-prime-util-gmp-perl

Remove libmath-prime-util-gmp-perl Configurations and Data

To remove libmath-prime-util-gmp-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libmath-prime-util-gmp-perl

Remove libmath-prime-util-gmp-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmath-prime-util-gmp-perl

Dependencies

libmath-prime-util-gmp-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libmath-prime-util-gmp-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.