How To Install texlive-pgfplots on CentOS 8
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 yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install texlive-pgfplots using yum by running the following command:
sudo yum -y install texlive-pgfplots
Install texlive-pgfplots on CentOS 8 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-pgfplots using dnf by running the following command:
sudo dnf -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
References
Summary
In this tutorial we learn how to install texlive-pgfplots on CentOS 8 using yum and dnf.