How To Install latexmk on CentOS 8
Introduction
In this tutorial we learn how to install latexmk
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install latexmk.
Install latexmk on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install latexmk
using dnf
by running the following command:
sudo dnf -y install latexmk
Install latexmk on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the latexmk
package we can use the following command:
sudo dnf remove latexmk
latexmk Package Contents on CentOS 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 CentOS 8 using yum and dnf.