How To Install stockfish on Fedora 34

stockfish is Powerful open source chess engine

Introduction

In this tutorial we learn how to install stockfish on Fedora 34.

What is stockfish

Stockfish is a free UCI chess engine derived from Glaurung 2.1. It is not a complete chess program, but requires some UCI compatible GUI (like XBoard with PolyGlot, eboard, Arena, Sigma Chess, Shredder, Chess Partner or Fritz) in order to be used comfortably. Read the documentation for your GUI of choice for information about how to use Stockfish with your GUI.

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

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

sudo dnf -y install stockfish

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

sudo yum -y install stockfish

How To Uninstall stockfish on Fedora 34

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

sudo dnf remove stockfish

stockfish Package Contents on Fedora 34

/etc/stockfish
/etc/stockfish/polyglot.ini
/usr/bin/stockfish
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/a68495a90720c788b44dafcd3c359c0f89c79b
/usr/share/doc/stockfish
/usr/share/doc/stockfish/AUTHORS
/usr/share/doc/stockfish/Readme.md
/usr/share/doc/stockfish/stockfish-interface.txt
/usr/share/licenses/stockfish
/usr/share/licenses/stockfish/Copying.txt
/usr/share/man/man6/stockfish.6.gz

References

Summary

In this tutorial we learn how to install stockfish on Fedora 34 using yum and dnf.