How To Install libmpc on Fedora 34
Introduction
In this tutorial we learn how to install libmpc
on Fedora 34.
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. libmpc 1.2.1 2.fc34 x86_64 63 k libmpc-1.2.1-2.fc34.src.rpm fedora C library for multiple precision complex arithmetic http LGPLv3+ 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libmpc.
Install libmpc 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 libmpc
using dnf
by running the following command:
sudo dnf -y install libmpc
Install libmpc 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 libmpc
using yum
by running the following command:
sudo yum -y install libmpc
How To Uninstall libmpc on Fedora 34
To uninstall only the libmpc
package we can use the following command:
sudo dnf remove libmpc
libmpc Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/0f221dddb82699240da7e5fc68f544979514a3
/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
/usr/lib/.build-id
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/73c1159e62be935f0d3a81607a3317401a8eb5
/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
- [libmpc website](http://www.multiprecision.org/mpc/ http://www.multiprecision.org/mpc/)
Summary
In this tutorial we learn how to install libmpc
on Fedora 34 using yum and dnf.