How To Install libjs-mathjax on Debian 11

In this tutorial we learn how to install libjs-mathjax on Debian 11. libjs-mathjax is JavaScript display engine for LaTeX and MathML

Introduction

In this tutorial we learn how to install libjs-mathjax on Debian 11.

What is libjs-mathjax

libjs-mathjax is:

MathJax was designed with the goal of consolidating the recent advances in web technologies into a single, definitive, math-on-the-web platform supporting the major browsers and operating systems.

It requires no setup on the part of the user (no plugins to download or software to install), so the page author can write web documents that include mathematics and be confident that users will be able to view it naturally and easily. Simply include MathJax and some mathematics in a web page, and MathJax will do the rest.

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

Install libjs-mathjax Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libjs-mathjax

Install libjs-mathjax Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-mathjax

Install libjs-mathjax 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libjs-mathjax

How To Uninstall libjs-mathjax on Debian 11

To uninstall only the libjs-mathjax package we can use the following command:

sudo apt-get remove libjs-mathjax

Uninstall libjs-mathjax And Its Dependencies

To uninstall libjs-mathjax and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libjs-mathjax

Remove libjs-mathjax Configurations and Data

To remove libjs-mathjax configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libjs-mathjax

Remove libjs-mathjax configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-mathjax

Dependencies

libjs-mathjax have the following dependencies:

References

Summary

In this tutorial we learn how to install libjs-mathjax package on Debian 11 using different package management tools: apt, apt-get and aptitude.