How To Install mpfr.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mpfr.x86_64 in Amazon Linux 2. mpfr.x86_64 is A C library for multiple-precision floating-point computations

Introduction

In this tutorial we learn how to install mpfr.x86_64 on Amazon Linux 2.

What is mpfr.x86_64

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

Install mpfr.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mpfr.x86_64

How To Uninstall mpfr.x86_64 on Amazon Linux 2

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

sudo yum remove mpfr.x86_64

mpfr.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libmpfr.so.4
/usr/lib64/libmpfr.so.4.1.1
/usr/share/doc/mpfr-3.1.1
/usr/share/doc/mpfr-3.1.1/COPYING
/usr/share/doc/mpfr-3.1.1/COPYING.LESSER
/usr/share/doc/mpfr-3.1.1/NEWS
/usr/share/doc/mpfr-3.1.1/README
/usr/share/doc/mpfr-3.1.1/mpfr
/usr/share/doc/mpfr-3.1.1/mpfr/AUTHORS
/usr/share/doc/mpfr-3.1.1/mpfr/BUGS
/usr/share/doc/mpfr-3.1.1/mpfr/COPYING
/usr/share/doc/mpfr-3.1.1/mpfr/COPYING.LESSER
/usr/share/doc/mpfr-3.1.1/mpfr/FAQ.html
/usr/share/doc/mpfr-3.1.1/mpfr/NEWS
/usr/share/doc/mpfr-3.1.1/mpfr/TODO
/usr/share/doc/mpfr-3.1.1/mpfr/examples
/usr/share/doc/mpfr-3.1.1/mpfr/examples/ReadMe
/usr/share/doc/mpfr-3.1.1/mpfr/examples/divworst.c
/usr/share/doc/mpfr-3.1.1/mpfr/examples/rndo-add.c
/usr/share/doc/mpfr-3.1.1/mpfr/examples/sample.c
/usr/share/doc/mpfr-3.1.1/mpfr/examples/version.c

References

Summary

In this tutorial we learn how to install mpfr.x86_64 on Amazon Linux 2 using yum.