How To Install latex-mk on Ubuntu 18.04

In this tutorial we learn how to install latex-mk on Ubuntu 18.04. latex-mk is tool for managing LaTeX projects

Introduction

In this tutorial we learn how to install latex-mk on Ubuntu 18.04.

What is latex-mk

latex-mk is:

LaTeX-Mk is a collection of Makefile fragments and shell scripts for managing small to large sized LaTeX projects. The typical LaTeX-Mk input file is simply a series of variable definitions in a Makefile for the project. After creating a simple Makefile the user can easily perform all required steps to do such tasks as: preview the document, print the document, or produce a PDF file. LaTeX-Mk will keep track of files that have changed and how to run the various programs that are needed to produce the output.

There are three methods to install latex-mk on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install latex-mk Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install latex-mk using apt-get by running the following command:

sudo apt-get -y install latex-mk

Install latex-mk Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install latex-mk using apt by running the following command:

sudo apt -y install latex-mk

Install latex-mk Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install latex-mk using aptitude by running the following command:

sudo aptitude -y install latex-mk

How To Uninstall latex-mk on Ubuntu 18.04

To uninstall only the latex-mk package we can use the following command:

sudo apt-get remove latex-mk

Uninstall latex-mk And Its Dependencies

To uninstall latex-mk and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove latex-mk

Remove latex-mk Configurations and Data

To remove latex-mk configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge latex-mk

Remove latex-mk configuration, data, and all of its dependencies

We can use the following command to remove latex-mk configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge latex-mk

References

Summary

In this tutorial we learn how to install latex-mk package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.