How To Install mpfr on AlmaLinux 8

In this tutorial we learn how to install mpfr in AlmaLinux 8. mpfr is A C library for multiple-precision floating-point computations

Introduction

In this tutorial we learn how to install mpfr on AlmaLinux 8.

What is mpfr

The MPFR library is a C library for multiple-precision floating-point computations with “correct rounding”. The MPFR is efficient and also has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit mantissa). MPFR is based on the GMP multiple-precision library.

We can use yum or dnf to install mpfr on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mpfr.

Install mpfr on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mpfr using dnf by running the following command:

sudo dnf -y install mpfr

Install mpfr on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mpfr using yum by running the following command:

sudo yum -y install mpfr

How To Uninstall mpfr on AlmaLinux 8

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

sudo dnf remove mpfr

References

Summary

In this tutorial we learn how to install mpfr on AlmaLinux 8 using yum and dnf.