How To Install libmpc on Fedora 36

In this tutorial we learn how to install libmpc in Fedora 36. libmpc is C library for multiple precision complex arithmetic

Introduction

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

What is libmpc

MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same principles as Mpfr.

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

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

sudo dnf -y install libmpc

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

sudo yum -y install libmpc

How To Uninstall libmpc on Fedora 36

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

sudo dnf remove libmpc

libmpc Package Contents on Fedora 36

---
title: "How To Install libmpc on Fedora 36"
linkTitle: "libmpc"
type: "docs"
description: "In this tutorial we learn how to install libmpc in Fedora 36. libmpc is C library for multiple precision complex arithmetic"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libmpc-featured.png
---

## Introduction

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

### What is `libmpc`

> MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same principles as Mpfr.  

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

## Install libmpc on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

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

sudo dnf -y install libmpc

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

sudo yum -y install libmpc

How To Uninstall libmpc on Fedora 36

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

sudo dnf remove libmpc

libmpc Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/b3d886c25c92064ecaf2f7abe9a9612e9e4054
/usr/lib64/libmpc.so.3
/usr/lib64/libmpc.so.3.2.1
/usr/share/doc/libmpc
/usr/share/doc/libmpc/NEWS
/usr/share/doc/libmpc/README
/usr/share/licenses/libmpc
/usr/share/licenses/libmpc/COPYING.LESSER

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/5c /usr/lib/.build-id/5c/ef4ff603ca41b6461811304f1afb511cf493d0 /usr/lib/libmpc.so.3 /usr/lib/libmpc.so.3.2.1 /usr/share/doc/libmpc /usr/share/doc/libmpc/NEWS /usr/share/doc/libmpc/README /usr/share/licenses/libmpc /usr/share/licenses/libmpc/COPYING.LESSER


## References

* [libmpc website](http://www.multiprecision.org/mpc/)

## Summary

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