How To Install texlive-tcolorbox on CentOS 7

In this tutorial we learn how to install texlive-tcolorbox on CentOS 7. texlive-tcolorbox is Coloured boxes, for LaTeX examples and theorems, etc

Introduction

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

What is texlive-tcolorbox

The package provides an environment for coloured and framed text boxes with a heading line. Optionally, such a box can be split in an upper and a lower part; thus the package may be used for the setting of LaTeX examples where one part of the box displays the source code and the other part shows the output. Another common use case is the setting of theorems. The package supports saving and reuse of source code and text parts.

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

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

sudo yum -y install texlive-tcolorbox

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

sudo dnf -y install texlive-tcolorbox

How To Uninstall texlive-tcolorbox on CentOS 7

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

sudo dnf remove texlive-tcolorbox

References

Summary

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