How To Install mlucas on Debian 9

In this tutorial we learn how to install mlucas on Debian 9. mlucas is program to perform Lucas-Lehmer test on a Mersenne number

Introduction

In this tutorial we learn how to install mlucas on Debian 9.

What is mlucas

mlucas is:

mlucas is an open-source (and free/libre) program for performing Lucas-Lehmer test on prime-exponent Mersenne numbers, that is, integers of the form 2 ^ p - 1, with prime exponent p. In short, everything you need to search for world-record Mersenne primes! It has been used in the verification of various Mersenne primes, including the 45th, 46th and 48th found Mersenne prime.

You may use it to test any suitable number as you wish, but it is preferable that you do so in a coordinated fashion, as part of the Great Internet Mersenne Prime Search (GIMPS). For more information on GIMPS, see http://www.mersenne.org/prime.html for details.

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

Install mlucas Using apt-get

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

sudo apt-get update

After updating apt database, We can install mlucas using apt-get by running the following command:

sudo apt-get -y install mlucas

Install mlucas Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mlucas using apt by running the following command:

sudo apt -y install mlucas

Install mlucas 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 mlucas using aptitude by running the following command:

sudo aptitude -y install mlucas

How To Uninstall mlucas on Debian 9

To uninstall only the mlucas package we can use the following command:

sudo apt-get remove mlucas

Uninstall mlucas And Its Dependencies

To uninstall mlucas and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove mlucas

Remove mlucas Configurations and Data

To remove mlucas configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge mlucas

Remove mlucas configuration, data, and all of its dependencies

We can use the following command to remove mlucas configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mlucas

Dependencies

mlucas have the following dependencies:

References

Summary

In this tutorial we learn how to install mlucas package on Debian 9 using different package management tools: apt, apt-get and aptitude.