How To Install latexmk on Rocky Linux 8

In this tutorial we learn how to install latexmk on Rocky Linux 8. latexmk is A make-like utility for LaTeX files

Introduction

In this tutorial we learn how to install latexmk on Rocky Linux 8.

What is latexmk

Latexmk is a perl script for running LaTeX the correct number of times to resolve cross references, etc.; it also runs auxiliary programs (bibtex, makeindex if necessary, and dvips and/or a previewer as requested). It has a number of other useful capabilities, for example to start a previewer and then run latex whenever the source files are updated, so that the previewer gives an up-to-date view of the document. The script runs on both UNIX and MS-WINDOWS (95, ME, XP, etc). This script is a corrected and improved version of the original version of latexmk. Before using a previewer, read the file README.fedora.

We can use yum or dnf to install latexmk on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install latexmk.

Install latexmk on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install latexmk

Install latexmk on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install latexmk using yum by running the following command:

sudo yum -y install latexmk

How To Uninstall latexmk on Rocky Linux 8

To uninstall only the latexmk package we can use the following command:

sudo dnf remove latexmk

latexmk Package Contents on Rocky Linux 8

/etc/latexmk.conf
/usr/bin/latexmk
/usr/share/doc/latexmk
/usr/share/doc/latexmk/CHANGES
/usr/share/doc/latexmk/INSTALL
/usr/share/doc/latexmk/README
/usr/share/doc/latexmk/README.fedora
/usr/share/doc/latexmk/example_rcfiles
/usr/share/doc/latexmk/example_rcfiles/README-latexmk-rcfiles
/usr/share/doc/latexmk/example_rcfiles/asymptote_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/bib2gls_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/clean_pattern_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/exceltex1.sty
/usr/share/doc/latexmk/example_rcfiles/exceltex_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/fix-aux.latexmkrc
/usr/share/doc/latexmk/example_rcfiles/glossary_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/lualatex_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/mpost_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/nomenclature_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/pdflatexmkrc
/usr/share/doc/latexmk/example_rcfiles/pythontex-latexmkrc
/usr/share/doc/latexmk/example_rcfiles/sagetex_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/splitindex.latexmkrc
/usr/share/doc/latexmk/example_rcfiles/sweave_latexmkrc
/usr/share/doc/latexmk/example_rcfiles/tex4ht-latexmkrc
/usr/share/doc/latexmk/example_rcfiles/texinfo-latexmkrc
/usr/share/doc/latexmk/example_rcfiles/tikz-externalized-latexmkrc
/usr/share/doc/latexmk/example_rcfiles/xelatex_latexmkrc
/usr/share/doc/latexmk/extra-scripts
/usr/share/doc/latexmk/extra-scripts/README-latexmk-scripts
/usr/share/doc/latexmk/extra-scripts/dvipdfm_call
/usr/share/doc/latexmk/extra-scripts/dvipdfmx_call
/usr/share/doc/latexmk/extra-scripts/htlatexonly
/usr/share/doc/latexmk/extra-scripts/kickxdvi
/usr/share/doc/latexmk/extra-scripts/l1
/usr/share/doc/latexmk/extra-scripts/l2
/usr/share/doc/latexmk/extra-scripts/myhtlatex2
/usr/share/doc/latexmk/extra-scripts/pst2pdf_for_latexmk
/usr/share/doc/latexmk/extra-scripts/pst2pdf_for_latexmk_README.txt
/usr/share/doc/latexmk/extra-scripts/startacroread
/usr/share/doc/latexmk/latexmk.pdf
/usr/share/licenses/latexmk
/usr/share/licenses/latexmk/COPYING
/usr/share/man/man1/latexmk.1.gz

References

Summary

In this tutorial we learn how to install latexmk on Rocky Linux 8 using yum and dnf.