How To Install mpdecimal on Fedora 36

In this tutorial we learn how to install mpdecimal in Fedora 36. mpdecimal is Library for general decimal arithmetic

Introduction

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

What is mpdecimal

The package contains a library limpdec implementing General Decimal Arithmetic Specification. The specification, written by Mike Cowlishaw from IBM, defines a general purpose arbitrary precision data type together with rigorously specified functions and rounding behavior.

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

Install mpdecimal 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 mpdecimal using dnf by running the following command:

sudo dnf -y install mpdecimal

Install mpdecimal 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 mpdecimal using yum by running the following command:

sudo yum -y install mpdecimal

How To Uninstall mpdecimal on Fedora 36

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

sudo dnf remove mpdecimal

mpdecimal Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/7583cf2c49a0eb44b6ced416c3351d33dc4e77
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/6bc75275b2d48059b3f78c06551027aa86dec4
/usr/lib64/libmpdec++.so.2.5.1
/usr/lib64/libmpdec++.so.3
/usr/lib64/libmpdec.so.2.5.1
/usr/lib64/libmpdec.so.3
/usr/share/licenses/mpdecimal
/usr/share/licenses/mpdecimal/LICENSE.txt

References

Summary

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