How To Install python-fpconst on Ubuntu 18.04

In this tutorial we learn how to install python-fpconst on Ubuntu 18.04. python-fpconst is Utilities for handling IEEE 754 floating point special values

Introduction

In this tutorial we learn how to install python-fpconst on Ubuntu 18.04.

What is python-fpconst

python-fpconst is:

This python module implements constants and functions for working with IEEE754 double-precision special values. It provides constants for Not-a-Number (NaN), Positive Infinity (PosInf), and Negative Infinity (NegInf), as well as functions to test for these values.

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

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

sudo apt-get update

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

sudo apt-get -y install python-fpconst

Install python-fpconst Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-fpconst

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

sudo aptitude -y install python-fpconst

How To Uninstall python-fpconst on Ubuntu 18.04

To uninstall only the python-fpconst package we can use the following command:

sudo apt-get remove python-fpconst

Uninstall python-fpconst And Its Dependencies

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

sudo apt-get -y autoremove python-fpconst

Remove python-fpconst Configurations and Data

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

sudo apt-get -y purge python-fpconst

Remove python-fpconst configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-fpconst

References

Summary

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