How To Install mpfr on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install mpfr on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mpfr.

Install mpfr on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove mpfr

mpfr Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/639c9dbe73b7d193135081b6a6d301e072893e
/usr/lib64/libmpfr.so.4
/usr/lib64/libmpfr.so.4.1.6
/usr/share/doc/mpfr
/usr/share/doc/mpfr/AUTHORS
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/FAQ.html
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/README
/usr/share/doc/mpfr/TODO
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER
/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/c7d7259a198a013606502513610ebd8e8071e7
/usr/lib/libmpfr.so.4
/usr/lib/libmpfr.so.4.1.6
/usr/share/doc/mpfr
/usr/share/doc/mpfr/AUTHORS
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/FAQ.html
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/README
/usr/share/doc/mpfr/TODO
/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 Rocky Linux 8 using yum and dnf.