How To Install mediawiki2latex on Kali Linux

In this tutorial we learn how to install mediawiki2latex on Kali Linux. mediawiki2latex is Loads pages from MediaWiki and converts to LaTeX and PDF

Introduction

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

What is mediawiki2latex

mediawiki2latex is:

This project provides a simple way of turning a HTML page hosted on a server into a high quality PDF version as well an its LaTeX source file respectively.

Particular care has been to generate esthetically pleasing results for pages hosted on servers running MediaWiki.

This project provides a simple default mode which just requires the URL to the page and creates a PDF file, by processing the HTML generated by the (MediaWiki-) server. It also provides extended possibilities giving a fine grained control over the conversion process to users familiar with LaTeX and MediaWiki.

Much effort was put into providing reasonable defaults for this way of processing for the needs of the English and German Wikibooks projects. Images are also downloaded, and if necessary modified for use in a LaTeX document. The latest test run on more than 2000 featured articles on the English Wikipedia completed without failures.

There are three methods to install mediawiki2latex 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 mediawiki2latex Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mediawiki2latex

Install mediawiki2latex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mediawiki2latex

Install mediawiki2latex 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 mediawiki2latex using aptitude by running the following command:

sudo aptitude -y install mediawiki2latex

How To Uninstall mediawiki2latex on Kali Linux

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

sudo apt-get remove mediawiki2latex

Uninstall mediawiki2latex And Its Dependencies

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

sudo apt-get -y autoremove mediawiki2latex

Remove mediawiki2latex Configurations and Data

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

sudo apt-get -y purge mediawiki2latex

Remove mediawiki2latex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mediawiki2latex

Dependencies

mediawiki2latex have the following dependencies:

References

Summary

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