How To Install texlive-latex on CentOS 7

In this tutorial we learn how to install texlive-latex on CentOS 7. texlive-latex is A TeX macro package that defines LaTeX

Introduction

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

What is texlive-latex

LaTeX is a widely-used macro package for TeX, providing many basic document formating commands extended by a wide range of packages. It is a development of Leslie Lamport’s original LaTeX 2.09, and superseded the older system in June 1994. The basic distribution is catalogued separately, at latex-base; apart from a large set of contributed packages and third-party documentation (elsewhere on the archive), the distribution includes are “entitled to assume” will be present on any system running LaTeX; and - a minimal set of documentation detailing differences from the ‘old’ version of LaTeX in the areas of user commands, font selection and control, class and package writing, font encodings, configuration options and modification of LaTeX. For downloading details, see the linked catalogue entries above. date

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

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

sudo yum -y install texlive-latex

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

sudo dnf -y install texlive-latex

How To Uninstall texlive-latex on CentOS 7

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

sudo dnf remove texlive-latex

References

Summary

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