How To Install chktex on Kali Linux

In this tutorial we learn how to install chktex on Kali Linux. chktex is Finds typographic errors in LaTeX

Introduction

In this tutorial we learn how to install chktex on Kali Linux.

What is chktex

chktex is:

ChkTeX finds typographic errors in LaTeX documents:

  • Supports over 40 warnings.
  • Supports \input'' command; both TeX and LaTeX version. Actually includes the files. TEXINPUTS’’-equivalent search path.
  • Intelligent warning/error handling. The user may promote/mute warnings to suit his preferences. You may also mute warnings in the header of a file; thus killing much unwanted garbage.
  • Supports both LaTeX 2.09 and LaTeX2e.
  • Flexible output handling. Has some predefined formats and lets the user specify his own format. Uses a printf()'' similar syntax. lacheck’’ compatible mode included for interfacing with the AUC-TeX Emacs mode.

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

Install chktex Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install chktex

Install chktex Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install chktex using apt by running the following command:

sudo apt -y install chktex

Install chktex Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install chktex

How To Uninstall chktex on Kali Linux

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

sudo apt-get remove chktex

Uninstall chktex And Its Dependencies

To uninstall chktex and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove chktex

Remove chktex Configurations and Data

To remove chktex configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge chktex

Remove chktex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge chktex

Dependencies

chktex have the following dependencies:

References

Summary

In this tutorial we learn how to install chktex package on Kali Linux using different package management tools: apt, apt-get and aptitude.