How To Install texlive-compare on Fedora 36

In this tutorial we learn how to install texlive-compare in Fedora 36. texlive-compare is Compare two strings

Introduction

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

What is texlive-compare

The file defines a macro \compare, which takes two arguments; the macro expands to -1, 0, 1, according as the first argument is less than, equal to, or greater than the second argument. Sorting is alphabetic, using ASCII collating order.

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

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

sudo dnf -y install texlive-compare

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

sudo yum -y install texlive-compare

How To Uninstall texlive-compare on Fedora 36

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

sudo dnf remove texlive-compare

texlive-compare Package Contents on Fedora 36

/usr/share/licenses/texlive-compare
/usr/share/licenses/texlive-compare/pd.txt
/usr/share/texlive/texmf-dist/tex/generic/compare
/usr/share/texlive/texmf-dist/tex/generic/compare/compare.tex

References

Summary

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