How To Install texlive-optional on Fedora 36

In this tutorial we learn how to install texlive-optional in Fedora 36. texlive-optional is Facilitate optional printing of parts of a document

Introduction

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

What is texlive-optional

Optional provides simple, flexible, optional compilation of LaTeX documents. Option switches may be given via package options, by the \UseOption command, or interactively via the \AskOption command (help text may be provided, by defining the \ExplainOptions command). The package is not robust, in the way that comment package is, against ill-behaved text. In particular, verbatim text may not be directly included in optional sections (whether they’re included or not).

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

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

sudo dnf -y install texlive-optional

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

sudo yum -y install texlive-optional

How To Uninstall texlive-optional on Fedora 36

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

sudo dnf remove texlive-optional

texlive-optional Package Contents on Fedora 36

/usr/share/licenses/texlive-optional
/usr/share/licenses/texlive-optional/lppl1.txt
/usr/share/texlive/texmf-dist/tex/latex/optional
/usr/share/texlive/texmf-dist/tex/latex/optional/optional.sty

References

Summary

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