How To Install texlive-mptopdf.noarch on Amazon Linux 2

In this tutorial we learn how to install texlive-mptopdf.noarch in Amazon Linux 2. texlive-mptopdf.noarch is mpost to PDF, native MetaPost graphics inclusion

Introduction

In this tutorial we learn how to install texlive-mptopdf.noarch on Amazon Linux 2.

What is texlive-mptopdf.noarch

The mptopdf script does standalone conversion from mpost to PDF, using the supp-* and syst-* files. They also allow native MetaPost graphics inclusion in LaTeX (via pdftex.def) and ConTeXt. They can be used independently of the rest of ConTeXt, yet are maintained as part of it. So in TeX Live we pull them out to this separate package for the benefit of LaTeX users who do not install the rest of ConTeXt. This can be found on CTAN in macros/pdftex/graphics.

We can use yum to install texlive-mptopdf.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-mptopdf.noarch.

Install texlive-mptopdf.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-mptopdf.noarch

How To Uninstall texlive-mptopdf.noarch on Amazon Linux 2

To uninstall only the texlive-mptopdf.noarch package we can use the following command:

sudo yum remove texlive-mptopdf.noarch

texlive-mptopdf.noarch Package Contents on Amazon Linux 2

/usr/share/man/man1/mptopdf.1.gz
/usr/share/texlive/texmf-dist/scripts/context/perl/mptopdf.pl
/usr/share/texlive/texmf-dist/tex/context/base/supp-mis.mkii
/usr/share/texlive/texmf-dist/tex/context/base/supp-mpe.mkii
/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
/usr/share/texlive/texmf-dist/tex/context/base/syst-tex.mkii
/usr/share/texlive/texmf-dist/tex/generic/context/mptopdf/mptopdf.tex

References

Summary

In this tutorial we learn how to install texlive-mptopdf.noarch on Amazon Linux 2 using yum.