How To Install texlive-hanoi on Fedora 36

In this tutorial we learn how to install texlive-hanoi in Fedora 36. texlive-hanoi is Tower of Hanoi in TeX

Introduction

In this tutorial we learn how to install texlive-hanoi on Fedora 36.

What is texlive-hanoi

The Plain TeX program (typed in the shape of the towers of Hanoi) serves both as a game and as a TeX programming exercise. As a game it will solve the towers with (up to) 15 discs (with 15 discs, 32767 moves are needed).

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

Install texlive-hanoi on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-hanoi

Install texlive-hanoi on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-hanoi

How To Uninstall texlive-hanoi on Fedora 36

To uninstall only the texlive-hanoi package we can use the following command:

sudo dnf remove texlive-hanoi

texlive-hanoi Package Contents on Fedora 36

/usr/share/licenses/texlive-hanoi
/usr/share/licenses/texlive-hanoi/pd.txt
/usr/share/texlive/texmf-dist/tex/plain/hanoi
/usr/share/texlive/texmf-dist/tex/plain/hanoi/hanoi.tex

References

Summary

In this tutorial we learn how to install texlive-hanoi on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).