How To Install texlive-latex on CentOS 8

texlive-latex is A TeX macro package that defines LaTeX

Introduction

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

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.

We can use yum or dnf to install texlive-latex on CentOS 8. 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 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install texlive-latex

Install texlive-latex on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install texlive-latex

How To Uninstall texlive-latex on CentOS 8

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

sudo dnf remove texlive-latex

texlive-latex Package Contents on CentOS 8

/usr/bin/dvilualatex
/usr/bin/latex
/usr/bin/lualatex
/usr/bin/pdflatex
/usr/share/licenses/texlive-latex
/usr/share/licenses/texlive-latex/lppl1.3.txt
/usr/share/man/man1/latex.1.gz
/usr/share/man/man1/pdflatex.1.gz
/usr/share/texlive/texmf-dist/doc/latex/base
/usr/share/texlive/texmf-dist/doc/latex/base/README.txt
/usr/share/texlive/texmf-dist/doc/latex/base/alltt.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/bugs.txt
/usr/share/texlive/texmf-dist/doc/latex/base/cfgguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/cfgguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/changes-doc.txt
/usr/share/texlive/texmf-dist/doc/latex/base/changes.old.txt
/usr/share/texlive/texmf-dist/doc/latex/base/changes.txt
/usr/share/texlive/texmf-dist/doc/latex/base/classes.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/clsguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/clsguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/cmfonts.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/cyrguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/cyrguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/doc.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/docstrip.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/encguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/encguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/exscale.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/fix-cm.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/fntguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/fntguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/graphpap.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/ifthen.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/inputenc.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/latexchanges.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/latexchanges.tex
/usr/share/texlive/texmf-dist/doc/latex/base/latexrelease.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/latexsym.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/lb2.err
/usr/share/texlive/texmf-dist/doc/latex/base/lb2.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/legal.txt
/usr/share/texlive/texmf-dist/doc/latex/base/letter.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/lgc2.err
/usr/share/texlive/texmf-dist/doc/latex/base/lgc2.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/lppl-1-0.txt
/usr/share/texlive/texmf-dist/doc/latex/base/lppl-1-1.txt
/usr/share/texlive/texmf-dist/doc/latex/base/lppl-1-2.txt
/usr/share/texlive/texmf-dist/doc/latex/base/lppl.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/lppl.txt
/usr/share/texlive/texmf-dist/doc/latex/base/ltluatex.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/ltnews.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/ltnews.tex
/usr/share/texlive/texmf-dist/doc/latex/base/ltx3info.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/ltx3info.tex
/usr/share/texlive/texmf-dist/doc/latex/base/ltxdoc.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/makeindx.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/manifest.txt
/usr/share/texlive/texmf-dist/doc/latex/base/manual.err
/usr/share/texlive/texmf-dist/doc/latex/base/manual.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/modguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/modguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/nfssfont.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/proc.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/slides.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/slifonts.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/source2e.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/syntonly.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/tex2.txt
/usr/share/texlive/texmf-dist/doc/latex/base/texpert.txt
/usr/share/texlive/texmf-dist/doc/latex/base/tlc2.err
/usr/share/texlive/texmf-dist/doc/latex/base/tlc2.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/tulm.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/usrguide.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/usrguide.tex
/usr/share/texlive/texmf-dist/doc/latex/base/utf8ienc.pdf
/usr/share/texlive/texmf-dist/doc/latex/base/webcomp.err
/usr/share/texlive/texmf-dist/doc/latex/base/webcomp.pdf
/usr/share/texlive/texmf-dist/makeindex/latex
/usr/share/texlive/texmf-dist/makeindex/latex/gglo.ist
/usr/share/texlive/texmf-dist/makeindex/latex/gind.ist
/usr/share/texlive/texmf-dist/tex/latex/base
/usr/share/texlive/texmf-dist/tex/latex/base/alltt.sty
/usr/share/texlive/texmf-dist/tex/latex/base/ansinew.def
/usr/share/texlive/texmf-dist/tex/latex/base/applemac.def
/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
/usr/share/texlive/texmf-dist/tex/latex/base/article.sty
/usr/share/texlive/texmf-dist/tex/latex/base/ascii.def
/usr/share/texlive/texmf-dist/tex/latex/base/bezier.sty
/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo
/usr/share/texlive/texmf-dist/tex/latex/base/bk11.clo
/usr/share/texlive/texmf-dist/tex/latex/base/bk12.clo
/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
/usr/share/texlive/texmf-dist/tex/latex/base/book.sty
/usr/share/texlive/texmf-dist/tex/latex/base/cp1250.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp1252.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp1257.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp437.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp437de.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp850.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp852.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp858.def
/usr/share/texlive/texmf-dist/tex/latex/base/cp865.def
/usr/share/texlive/texmf-dist/tex/latex/base/decmulti.def
/usr/share/texlive/texmf-dist/tex/latex/base/doc.sty
/usr/share/texlive/texmf-dist/tex/latex/base/docstrip.tex
/usr/share/texlive/texmf-dist/tex/latex/base/exscale.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fix-cm.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fixltx2e.sty
/usr/share/texlive/texmf-dist/tex/latex/base/flafter.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fleqn.clo
/usr/share/texlive/texmf-dist/tex/latex/base/fleqn.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fltrace.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
/usr/share/texlive/texmf-dist/tex/latex/base/fontmath.cfg
/usr/share/texlive/texmf-dist/tex/latex/base/fontmath.ltx
/usr/share/texlive/texmf-dist/tex/latex/base/fonttext.cfg
/usr/share/texlive/texmf-dist/tex/latex/base/fonttext.ltx
/usr/share/texlive/texmf-dist/tex/latex/base/graphpap.sty
/usr/share/texlive/texmf-dist/tex/latex/base/hyphen.ltx
/usr/share/texlive/texmf-dist/tex/latex/base/idx.tex
/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
/usr/share/texlive/texmf-dist/tex/latex/base/lablst.tex
/usr/share/texlive/texmf-dist/tex/latex/base/latex.ltx
/usr/share/texlive/texmf-dist/tex/latex/base/latex209.def
/usr/share/texlive/texmf-dist/tex/latex/base/latexrelease.sty
/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty
/usr/share/texlive/texmf-dist/tex/latex/base/latin1.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin10.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin2.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin3.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin4.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin5.def
/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def
/usr/share/texlive/texmf-dist/tex/latex/base/lcyenc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/leqno.clo
/usr/share/texlive/texmf-dist/tex/latex/base/leqno.sty
/usr/share/texlive/texmf-dist/tex/latex/base/letter.cls
/usr/share/texlive/texmf-dist/tex/latex/base/letter.sty
/usr/share/texlive/texmf-dist/tex/latex/base/lppl.tex
/usr/share/texlive/texmf-dist/tex/latex/base/ltluatex.lua
/usr/share/texlive/texmf-dist/tex/latex/base/ltluatex.tex
/usr/share/texlive/texmf-dist/tex/latex/base/ltnews.cls
/usr/share/texlive/texmf-dist/tex/latex/base/ltxcheck.tex
/usr/share/texlive/texmf-dist/tex/latex/base/ltxdoc.cls
/usr/share/texlive/texmf-dist/tex/latex/base/ltxguide.cls
/usr/share/texlive/texmf-dist/tex/latex/base/ly1enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/macce.def
/usr/share/texlive/texmf-dist/tex/latex/base/makeidx.sty
/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
/usr/share/texlive/texmf-dist/tex/latex/base/newlfont.sty
/usr/share/texlive/texmf-dist/tex/latex/base/next.def
/usr/share/texlive/texmf-dist/tex/latex/base/nfssfont.tex
/usr/share/texlive/texmf-dist/tex/latex/base/oldlfont.sty
/usr/share/texlive/texmf-dist/tex/latex/base/omlcmm.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omlcmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omlenc.def
/usr/share/texlive/texmf-dist/tex/latex/base/omllcmm.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omscmsy.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.def
/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/omslcmsy.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omxcmex.fd
/usr/share/texlive/texmf-dist/tex/latex/base/omxlcmex.fd
/usr/share/texlive/texmf-dist/tex/latex/base/openbib.sty
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmdh.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmfib.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmfr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1cmvtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.def
/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/ot1lcmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot1lcmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ot2enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/ot4enc.def
/usr/share/texlive/texmf-dist/tex/latex/base/preload.cfg
/usr/share/texlive/texmf-dist/tex/latex/base/preload.ltx
/usr/share/texlive/texmf-dist/tex/latex/base/proc.cls
/usr/share/texlive/texmf-dist/tex/latex/base/proc.sty
/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
/usr/share/texlive/texmf-dist/tex/latex/base/report.sty
/usr/share/texlive/texmf-dist/tex/latex/base/sample2e.tex
/usr/share/texlive/texmf-dist/tex/latex/base/sfonts.def
/usr/share/texlive/texmf-dist/tex/latex/base/shortvrb.sty
/usr/share/texlive/texmf-dist/tex/latex/base/showidx.sty
/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
/usr/share/texlive/texmf-dist/tex/latex/base/slides.cls
/usr/share/texlive/texmf-dist/tex/latex/base/slides.def
/usr/share/texlive/texmf-dist/tex/latex/base/slides.sty
/usr/share/texlive/texmf-dist/tex/latex/base/small2e.tex
/usr/share/texlive/texmf-dist/tex/latex/base/source2e.tex
/usr/share/texlive/texmf-dist/tex/latex/base/syntonly.sty
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmdh.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmfib.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmfr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1cmvtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.sty
/usr/share/texlive/texmf-dist/tex/latex/base/t1lcmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t1lcmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/t2aenc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/t2benc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/t2cenc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/testpage.tex
/usr/share/texlive/texmf-dist/tex/latex/base/texsys.cfg
/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
/usr/share/texlive/texmf-dist/tex/latex/base/tracefnt.sty
/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmvtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def
/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def
/usr/share/texlive/texmf-dist/tex/latex/base/tulmdh.fd
/usr/share/texlive/texmf-dist/tex/latex/base/tulmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/tulmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/tulmssq.fd
/usr/share/texlive/texmf-dist/tex/latex/base/tulmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/tulmvtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ucmr.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ucmss.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ucmtt.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ulasy.fd
/usr/share/texlive/texmf-dist/tex/latex/base/ullasy.fd
/usr/share/texlive/texmf-dist/tex/latex/base/utf8-test.tex
/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
/usr/share/texlive/texmf-dist/tex/latex/base/utf8enc.dfu
/usr/share/texlive/texmf-dist/tex/latex/base/utf8test.tex
/usr/share/texlive/texmf-dist/tex/latex/base/x2enc.dfu

References

Summary

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