How To Install texlive-comment on CentOS 7

In this tutorial we learn how to install texlive-comment on CentOS 7. texlive-comment is Selectively include/excludes portions of text

Introduction

In this tutorial we learn how to install texlive-comment on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-comment.

Install texlive-comment on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install texlive-comment

Install texlive-comment on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install texlive-comment

How To Uninstall texlive-comment on CentOS 7

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

sudo dnf remove texlive-comment

References

Summary

In this tutorial we learn how to install texlive-comment on CentOS 7 using yum and dnf.