How To Install texlive-mpgraphics on Fedora 36

In this tutorial we learn how to install texlive-mpgraphics in Fedora 36. texlive-mpgraphics is Process and display MetaPost figures inline

Introduction

In this tutorial we learn how to install texlive-mpgraphics on Fedora 36.

What is texlive-mpgraphics

The package allows LaTeX users to typeset MetaPost code inline and display figures in their documents with only and only one run of LaTeX, PDFLaTeX or XelaTeX (no separate runs of mpost). Mpgraphics achieves this by using the shell escape (\write 18) feature of current TeX distributions, so that the whole process is automatic and the end user is saved the tiresome processing.

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

Install texlive-mpgraphics on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-mpgraphics

Install texlive-mpgraphics on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-mpgraphics

How To Uninstall texlive-mpgraphics on Fedora 36

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

sudo dnf remove texlive-mpgraphics

texlive-mpgraphics Package Contents on Fedora 36

/usr/share/licenses/texlive-mpgraphics
/usr/share/licenses/texlive-mpgraphics/lppl1.3.txt
/usr/share/texlive/texmf-dist/tex/latex/mpgraphics
/usr/share/texlive/texmf-dist/tex/latex/mpgraphics/mpgraphics.sty

References

Summary

In this tutorial we learn how to install texlive-mpgraphics on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).