How To Install mpfr on Fedora 36

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

Introduction

In this tutorial we learn how to install mpfr on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mpfr.

Install mpfr on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove mpfr

mpfr Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/6c44d39f9a44bfca6ac266cc13db7aa0af21a7
/usr/lib64/libmpfr.so.6
/usr/lib64/libmpfr.so.6.1.0
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/PATCHES
/usr/share/doc/mpfr/README
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER

References

Summary

In this tutorial we learn how to install mpfr on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).