How To Install primecount on Fedora 34
Introduction
In this tutorial we learn how to install primecount
on Fedora 34.
What is primecount
Primecount is a command-line program and C++ library that counts the primes below an integer x<=1031 using highly optimized implementations of the combinatorial prime counting algorithms. Primecount includes implementations of all important combinatorial prime counting algorithms known up to this date all of which have been parallelized using OpenMP. Primecount contains the first ever open source implementations of the Deleglise-Rivat algorithm and Xavier Gourdon’s algorithm (that works). Primecount also features a novel load balancer that is shared amongst all implementations and that scales up to hundreds of CPU cores. Primecount has already been used to compute several world records e.g. pi(1027) (http nth_prime(10**24) (https
We can use yum
or dnf
to install primecount
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install primecount.
Install primecount 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 primecount
using dnf
by running the following command:
sudo dnf -y install primecount
Install primecount 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 primecount
using yum
by running the following command:
sudo yum -y install primecount
How To Uninstall primecount on Fedora 34
To uninstall only the primecount
package we can use the following command:
sudo dnf remove primecount
primecount Package Contents on Fedora 34
/usr/bin/primecount
/usr/lib/.build-id
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/0cfb7d65b4274ea467a7e0f596125e9575c95f
/usr/share/doc/primecount
/usr/share/doc/primecount/README.md
/usr/share/man/man1/primecount.1.gz
/usr/bin/primecount
/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/e946dd10577d61344bb7cca14cb12777c3c40f
/usr/share/doc/primecount
/usr/share/doc/primecount/README.md
/usr/share/man/man1/primecount.1.gz
References
Summary
In this tutorial we learn how to install primecount
on Fedora 34 using yum and dnf.