How To Install libecm1-dev-common on Ubuntu 18.04

In this tutorial we learn how to install libecm1-dev-common on Ubuntu 18.04. libecm1-dev-common is factor integers using the Elliptic Curve Method – header

Introduction

In this tutorial we learn how to install libecm1-dev-common on Ubuntu 18.04.

What is libecm1-dev-common

libecm1-dev-common is:

gmp-ecm is a free implementation of the Elliptic Curve Method (ECM) for integer factorization.

The original purpose of the ECMNET project was to make Richard Brent’s prediction true, i.e. to find a factor of 50 digits or more by ECM. This goal was attained on September 14, 1998, when Conrad Curry found a 53-digit factor of 2^677-1 c150 using George Woltman’s mprime program. The new goal of ECMNET is now to find other large factors by ecm, mainly by contributing to the Cunningham project, most likely the longest, ongoing computational project in history according to Bob Silverman. A new record was set by Nik Lygeros and Michel Mizony, who found in December 1999 a prime factor of 54 digits using GMP-ECM.

See http://www.loria.fr/~zimmerma/records/ecmnet.html for more information about ecmnet.

This package provides the header needed by developers.

There are three methods to install libecm1-dev-common on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libecm1-dev-common Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libecm1-dev-common

Install libecm1-dev-common Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libecm1-dev-common using apt by running the following command:

sudo apt -y install libecm1-dev-common

Install libecm1-dev-common 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libecm1-dev-common using aptitude by running the following command:

sudo aptitude -y install libecm1-dev-common

How To Uninstall libecm1-dev-common on Ubuntu 18.04

To uninstall only the libecm1-dev-common package we can use the following command:

sudo apt-get remove libecm1-dev-common

Uninstall libecm1-dev-common And Its Dependencies

To uninstall libecm1-dev-common and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libecm1-dev-common

Remove libecm1-dev-common Configurations and Data

To remove libecm1-dev-common configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libecm1-dev-common

Remove libecm1-dev-common configuration, data, and all of its dependencies

We can use the following command to remove libecm1-dev-common configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libecm1-dev-common

References

Summary

In this tutorial we learn how to install libecm1-dev-common package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.