How To Install ghc-texmath on CentOS 7

In this tutorial we learn how to install ghc-texmath on CentOS 7. ghc-texmath is Conversion of LaTeX math formulas to MathML or OMML

Introduction

In this tutorial we learn how to install ghc-texmath on CentOS 7.

What is ghc-texmath

The texmathml library provides functions to convert LaTeX math formulas to presentation MathML (which can be used in HTML) or OMML (Office Math Markup Language, used in Microsoft Office). It supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros.

We can use yum or dnf to install ghc-texmath on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-texmath.

Install ghc-texmath on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ghc-texmath using yum by running the following command:

sudo yum -y install ghc-texmath

Install ghc-texmath on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install ghc-texmath

How To Uninstall ghc-texmath on CentOS 7

To uninstall only the ghc-texmath package we can use the following command:

sudo dnf remove ghc-texmath

References

Summary

In this tutorial we learn how to install ghc-texmath on CentOS 7 using yum and dnf.