How To Install texlive-comment on Fedora 36

In this tutorial we learn how to install texlive-comment in Fedora 36. texlive-comment is Selectively include/excludes portions of text

Introduction

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

What is texlive-comment

Selectively include/exclude pieces of text, allowing the user to define new, separately controlled, comment versions. All text between \comment … \endcomment or \begin{comment} … \end{comment} is discarded. The opening and closing commands should appear on a line of their own. No starting spaces, nothing after it. This environment should work with arbitrary amounts of comment, and the comment can be arbitrary text. Other ‘comment’ environments are defined and selected/deselected with \includecomment{versiona} and \excludecoment{versionb} These environments are used as \versiona … \endversiona or \begin{versiona} … \end{versiona} with the opening and closing commands again on a line of their own.

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

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

sudo dnf -y install texlive-comment

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

sudo yum -y install texlive-comment

How To Uninstall texlive-comment on Fedora 36

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

sudo dnf remove texlive-comment

texlive-comment Package Contents on Fedora 36

/usr/share/licenses/texlive-comment
/usr/share/licenses/texlive-comment/gpl.txt
/usr/share/texlive/texmf-dist/tex/latex/comment
/usr/share/texlive/texmf-dist/tex/latex/comment/comment.sty

References

Summary

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