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

In this tutorial we learn how to install texlive-lastpage.noarch in Amazon Linux 2. texlive-lastpage.noarch is Reference last page for Page N of M type footers

Introduction

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

What is texlive-lastpage.noarch

Reference the number of pages in your LaTeX document through the introduction of a new label which can be referenced like \pageref{LastPage} to give a reference to the last page of a document. It is particularly useful in the page footer that says date

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

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

sudo yum -y install texlive-lastpage.noarch

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

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

sudo yum remove texlive-lastpage.noarch

texlive-lastpage.noarch Package Contents on Amazon Linux 2

/usr/share/doc/texlive-lastpage-svn28985.1.2l
/usr/share/doc/texlive-lastpage-svn28985.1.2l/gpl2.txt
/usr/share/texlive/texmf-dist/tex/latex/lastpage/lastpage.sty
/usr/share/texlive/texmf-dist/tex/latex/lastpage/lastpage209.sty

References

Summary

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