How To Install mathjax on AlmaLinux 8

In this tutorial we learn how to install mathjax in AlmaLinux 8. mathjax is JavaScript library to render math in the browser

Introduction

In this tutorial we learn how to install mathjax on AlmaLinux 8.

What is mathjax

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers. 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. Supports LaTeX, MathML, and AsciiMath notation in HTML pages.

We can use yum or dnf to install mathjax on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mathjax.

Install mathjax on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mathjax using dnf by running the following command:

sudo dnf -y install mathjax

Install mathjax on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mathjax using yum by running the following command:

sudo yum -y install mathjax

How To Uninstall mathjax on AlmaLinux 8

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

sudo dnf remove mathjax

References

Summary

In this tutorial we learn how to install mathjax on AlmaLinux 8 using yum and dnf.