How To Install mpir on CentOS 7

In this tutorial we learn how to install mpir on CentOS 7. mpir is Highly optimised library for bignum arithmetic

Introduction

In this tutorial we learn how to install mpir on CentOS 7.

What is mpir

MPIR is a highly optimised library for bignum arithmetic forked from the GMP bignum library. It is written in assembly language and C. It is community maintained via the GitHub repositories of William Hart (Linux/OSX) and Brian Gladman (Windows). There are currently no curators for other platforms. MPIR is assembly optimised for various x86-64 CPUs. It is designed to be threadsafe.

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

Install mpir on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mpir

Install mpir on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install mpir

How To Uninstall mpir on CentOS 7

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

sudo dnf remove mpir

References

Summary

In this tutorial we learn how to install mpir on CentOS 7 using yum and dnf.