How To Install libopenlibm2 on Debian 9

In this tutorial we learn how to install libopenlibm2 on Debian 9. libopenlibm2 is standalone implementation of C mathematical functions (shared library)

Introduction

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

What is libopenlibm2

libopenlibm2 is:

OpenLibm is an effort to have a high quality, portable, standalone libm implementation, under a liberal free software license. It can be used standalone in applications and programming language implementations.

The project was born out of a need to have a good libm for the Julia programming language that worked consistently across compilers and operating systems, and in 32-bit and 64-bit environments.

This package contains a shared version of the library.

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

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

sudo apt-get update

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

sudo apt-get -y install libopenlibm2

Install libopenlibm2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libopenlibm2

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

sudo aptitude -y install libopenlibm2

How To Uninstall libopenlibm2 on Debian 9

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

sudo apt-get remove libopenlibm2

Uninstall libopenlibm2 And Its Dependencies

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

sudo apt-get -y autoremove libopenlibm2

Remove libopenlibm2 Configurations and Data

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

sudo apt-get -y purge libopenlibm2

Remove libopenlibm2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libopenlibm2

Dependencies

libopenlibm2 have the following dependencies:

References

Summary

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