How To Install libm4rie-dev on Ubuntu 18.04

In this tutorial we learn how to install libm4rie-dev on Ubuntu 18.04. libm4rie-dev is extended Method of the Four Russians Inversion library, development files

Introduction

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

What is libm4rie-dev

libm4rie-dev is:

M4RIE is a library for fast arithmetic with dense matrices over small finite fields of even characteristic. It uses the M4RI library, implementing the same operations over the finite field F2.

The name M4RI comes from the first implemented algorithm: The “Method of the Four Russians” inversion algorithm. This algorithm in turn is named after the “Method of the Four Russians” multiplication algorithm which is probably better referred to as Kronrod’s method.

This package contains development files for the M4RIE library.

There are three methods to install libm4rie-dev 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 libm4rie-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libm4rie-dev

Install libm4rie-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libm4rie-dev

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

sudo aptitude -y install libm4rie-dev

How To Uninstall libm4rie-dev on Ubuntu 18.04

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

sudo apt-get remove libm4rie-dev

Uninstall libm4rie-dev And Its Dependencies

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

sudo apt-get -y autoremove libm4rie-dev

Remove libm4rie-dev Configurations and Data

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

sudo apt-get -y purge libm4rie-dev

Remove libm4rie-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libm4rie-dev

References

Summary

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