How To Install mpfr on Fedora 34
Introduction
In this tutorial we learn how to install mpfr
on Fedora 34.
What is mpfr
The MPFR library is a C library for multiple-precision floating-point computations with “correct rounding”. The MPFR is efficient and also has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit mantissa). MPFR is based on the GMP multiple-precision library. mpfr 4.1.0 7.fc34 i686 355 k mpfr-4.1.0-7.fc34.src.rpm updates C library for multiple-precision floating-point computations https LGPLv3+ The MPFR library is a C library for multiple-precision floating-point computations with “correct rounding”. The MPFR is efficient and also has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit mantissa). MPFR is based on the GMP multiple-precision library.
We can use yum
or dnf
to install mpfr
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mpfr.
Install mpfr 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 mpfr
using dnf
by running the following command:
sudo dnf -y install mpfr
Install mpfr 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 mpfr
using yum
by running the following command:
sudo yum -y install mpfr
How To Uninstall mpfr on Fedora 34
To uninstall only the mpfr
package we can use the following command:
sudo dnf remove mpfr
mpfr Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/c5142d978d3b4e3a3eb994a8bd8351331b780a
/usr/lib64/libmpfr.so.6
/usr/lib64/libmpfr.so.6.1.0
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/PATCHES
/usr/share/doc/mpfr/README
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER
/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/3cc3843c7175de0a472b36791d786efca563c8
/usr/lib/libmpfr.so.6
/usr/lib/libmpfr.so.6.1.0
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/PATCHES
/usr/share/doc/mpfr/README
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER
/usr/lib/.build-id
/usr/lib/.build-id/96
/usr/lib/.build-id/96/4248276bf9bb8eb19eb875c1a67d3efa48dd60
/usr/lib/libmpfr.so.6
/usr/lib/libmpfr.so.6.1.0
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/PATCHES
/usr/share/doc/mpfr/README
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER
/usr/lib/.build-id
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/9e5160896a34cc3bbe1b9c9198dc2099bc5a0f
/usr/lib64/libmpfr.so.6
/usr/lib64/libmpfr.so.6.1.0
/usr/share/doc/mpfr/BUGS
/usr/share/doc/mpfr/NEWS
/usr/share/doc/mpfr/PATCHES
/usr/share/doc/mpfr/README
/usr/share/licenses/mpfr
/usr/share/licenses/mpfr/COPYING
/usr/share/licenses/mpfr/COPYING.LESSER
References
- [mpfr website](https://www.mpfr.org/ https://www.mpfr.org/)
Summary
In this tutorial we learn how to install mpfr
on Fedora 34 using yum and dnf.