How To Install libmpc-devel on Rocky Linux 8

In this tutorial we learn how to install libmpc-devel on Rocky Linux 8. libmpc-devel is Headers and shared development libraries for MPC

Introduction

In this tutorial we learn how to install libmpc-devel on Rocky Linux 8.

What is libmpc-devel

Header files and shared library symlinks for the MPC library.

We can use yum or dnf to install libmpc-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libmpc-devel.

Install libmpc-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libmpc-devel

Install libmpc-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libmpc-devel

How To Uninstall libmpc-devel on Rocky Linux 8

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

sudo dnf remove libmpc-devel

libmpc-devel Package Contents on Rocky Linux 8

/usr/include/mpc.h
/usr/lib/libmpc.so
/usr/include/mpc.h
/usr/lib64/libmpc.so

References

Summary

In this tutorial we learn how to install libmpc-devel on Rocky Linux 8 using yum and dnf.