How To Install texlive-fetchcls on Fedora 36

In this tutorial we learn how to install texlive-fetchcls in Fedora 36. texlive-fetchcls is Fetch the current class name

Introduction

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

What is texlive-fetchcls

With standard LaTeX you are able to check for the class in use invoking the kernel command @ifclassloaded. However, doing so you cannot get the explicit class name, unless you want to loop over every possible class name until @ifclassloaded returns true – don’t do that! With the help of the present package you can obtain the name of the current class with significantly less effort. Just load the package as usual \usepackage{fetchcls}; then, the control sequence \classname will hold the name you were looking for.

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

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

sudo dnf -y install texlive-fetchcls

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

sudo yum -y install texlive-fetchcls

How To Uninstall texlive-fetchcls on Fedora 36

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

sudo dnf remove texlive-fetchcls

texlive-fetchcls Package Contents on Fedora 36

/usr/share/licenses/texlive-fetchcls
/usr/share/licenses/texlive-fetchcls/lppl1.3.txt
/usr/share/texlive/texmf-dist/doc/latex/fetchcls
/usr/share/texlive/texmf-dist/doc/latex/fetchcls/README.md
/usr/share/texlive/texmf-dist/doc/latex/fetchcls/fetchcls.pdf
/usr/share/texlive/texmf-dist/tex/latex/fetchcls
/usr/share/texlive/texmf-dist/tex/latex/fetchcls/fetchcls.sty

References

Summary

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