How To Install texlive-pgfplots on CentOS 8

texlive-pgfplots is Create normal/logarithmic plots in two and three dimensions

Introduction

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

What is texlive-pgfplots

PGFPlots draws high-quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TeX. The user supplies axis labels, legend entries and the plot coordinates for one or more plots and PGFPlots applies axis scaling, computes any logarithms and axis ticks and draws the plots, supporting line plots, scatter plots, piecewise constant plots, bar plots, area plots, mesh– and surface plots and some more. Pgfplots is based on PGF/TikZ (pgf); it runs equally for LaTeX/TeX/ConTeXt.

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

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

sudo dnf -y install texlive-pgfplots

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

sudo yum -y install texlive-pgfplots

How To Uninstall texlive-pgfplots on CentOS 8

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

sudo dnf remove texlive-pgfplots

texlive-pgfplots Package Contents on CentOS 8

/usr/share/licenses/texlive-pgfplots
/usr/share/licenses/texlive-pgfplots/gpl3.txt
/usr/share/texlive/texmf-dist/doc/context/third/pgfplots
/usr/share/texlive/texmf-dist/doc/context/third/pgfplots/Makefile
/usr/share/texlive/texmf-dist/doc/context/third/pgfplots/pgfplotsexample-context.pdf
/usr/share/texlive/texmf-dist/doc/context/third/pgfplots/pgfplotsexample-context.tex
/usr/share/texlive/texmf-dist/doc/context/third/pgfplots/pgfplotsexample-context.tuc
/usr/share/texlive/texmf-dist/doc/generic/pgfplots
/usr/share/texlive/texmf-dist/doc/generic/pgfplots/README
/usr/share/texlive/texmf-dist/doc/latex/pgfplots
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/TeX-programming-notes.pdf
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplots.doc.src.tar.bz2
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplots.pdf
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplotsexample.pdf
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplotsexample.tex
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplotstable.pdf
/usr/share/texlive/texmf-dist/doc/latex/pgfplots/pgfplotstodo.pdf
/usr/share/texlive/texmf-dist/doc/plain/pgfplots
/usr/share/texlive/texmf-dist/doc/plain/pgfplots/pgfplotsexample-plain.pdf
/usr/share/texlive/texmf-dist/doc/plain/pgfplots/pgfplotsexample-plain.tex
/usr/share/texlive/texmf-dist/scripts/pgfplots
/usr/share/texlive/texmf-dist/scripts/pgfplots/matlab2pgfplots.m
/usr/share/texlive/texmf-dist/scripts/pgfplots/matlab2pgfplots.sh
/usr/share/texlive/texmf-dist/scripts/pgfplots/pgf2pdf.sh
/usr/share/texlive/texmf-dist/scripts/pgfplots/pgfplots.py
/usr/share/texlive/texmf-dist/tex/context/third/pgfplots
/usr/share/texlive/texmf-dist/tex/context/third/pgfplots/t-pgfplots.tex
/usr/share/texlive/texmf-dist/tex/context/third/pgfplots/t-pgfplotstable.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgflibrarypgfplots.colorbrewer.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgflibrarypgfplots.colortol.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgflibrarypgfplots.surfshading.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarycolorbrewer.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarycolortol.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.colormaps.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.dateplot.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.decorations.softclip.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.external.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.patchplots.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.polar.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.smithchart.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.statistics.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.units.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure/pgfplotsarray.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure/pgfplotsdeque.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure/pgfplotsliststructure.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure/pgfplotsliststructureext.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/liststructure/pgfplotsmatrix.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/binary.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/colormap.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/meshplothandler.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/pgfplotstexio.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/pgfplotsutil.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/plothandler.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/statistics.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplots/streamer.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp/luamath
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp/luamath/functions.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp/luamath/parser.lua
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/numtable
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.coltype.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_leq.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_misc.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfcoreexternal.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfcoreimage.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfcorelayers.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfcorescopes.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfkeys.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfkeysfiltered.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryintersections.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryluamath.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryplothandlers.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.pdflinks.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmathfloat.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfutil-common-lists.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzexternal.sty
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzexternalshared.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzlibraryexternal.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_trig_format.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfsys-luatexpatch.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfplotscompatib
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfplotscompatib/tikzlibrarydateplot.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfcontrib
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfcontrib/tikzlibrarydecorations.softclip.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfcontrib/tikzlibraryfillbetween.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.markers.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.paths.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.revision.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotscoordprocessing.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplothandler.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplotimage.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotsplothandlers.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvipdfmx.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvips.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-luatex.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-luatexpatch.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-xetex.def
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/test
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/test/pgfplots.assert.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/test/pgfplots.assert.sty
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.data.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotscolor.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotscolormap.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.code.tex
/usr/share/texlive/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.verb.code.tex
/usr/share/texlive/texmf-dist/tex/latex/pgfplots
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/bugtracker.sty
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/libs
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/libs/tikzlibrarypgfplots.clickable.code.tex
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/libs/tikzlibrarypgfplotsclickable.code.tex
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/pgfplots.sty
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/pgfplotstable.sty
/usr/share/texlive/texmf-dist/tex/latex/pgfplots/pgfregressiontest.sty
/usr/share/texlive/texmf-dist/tex/plain/pgfplots
/usr/share/texlive/texmf-dist/tex/plain/pgfplots/pgfplots.tex
/usr/share/texlive/texmf-dist/tex/plain/pgfplots/pgfplotstable.tex

References

Summary

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