How To Install mpir on Fedora 34

mpir is Highly optimised library for bignum arithmetic Highly optimised library for bignum arithmetic

Introduction

In this tutorial we learn how to install mpir on Fedora 34.

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. mpir 3.0.0 15.fc34 x86_64 281 k mpir-3.0.0-15.fc34.src.rpm fedora Highly optimised library for bignum arithmetic https LGPLv3+ and LGPLv2+ and (LGPLv3+ or GPLv2+) and BSD 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mpir.

Install mpir on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mpir

Install mpir on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install mpir

How To Uninstall mpir on Fedora 34

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

sudo dnf remove mpir

mpir Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/3c9856a45a5eb8beb67dc035667f1d3e61d5b6
/usr/lib64/libmpir.so.23
/usr/lib64/libmpir.so.23.0.3
/usr/share/licenses/mpir
/usr/share/licenses/mpir/COPYING
/usr/share/licenses/mpir/COPYING.LIB
/usr/share/licenses/mpir/PACKAGE-LICENSING
/usr/lib/.build-id
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/dacb91457d718ca31aadf093d51f69fbc041a3
/usr/lib/libmpir.so.23
/usr/lib/libmpir.so.23.0.3
/usr/share/licenses/mpir
/usr/share/licenses/mpir/COPYING
/usr/share/licenses/mpir/COPYING.LIB
/usr/share/licenses/mpir/PACKAGE-LICENSING

References

Summary

In this tutorial we learn how to install mpir on Fedora 34 using yum and dnf.