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

In this tutorial we learn how to install texlive-iftex.noarch in Amazon Linux 2. texlive-iftex.noarch is Am I running under pdfTeX, XeTeX or LuaTeX?

Introduction

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

What is texlive-iftex.noarch

The package, which works both for Plain TeX and for LaTeX, defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX conditionals for testing which engine is being used for typesetting. The package also provides the \RequirePDFTeX, \RequireXeTeX, and \RequireLuaTeX commands which throw an error if pdfTeX, XeTeX or LuaTeX (respectively) is not the engine in use. date

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

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

sudo yum -y install texlive-iftex.noarch

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

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

sudo yum remove texlive-iftex.noarch

texlive-iftex.noarch Package Contents on Amazon Linux 2

/usr/share/doc/texlive-iftex-svn29654.0.2
/usr/share/doc/texlive-iftex-svn29654.0.2/lppl1.3.txt
/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty

References

Summary

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