How To Install texlive-mhchem on Fedora 36

In this tutorial we learn how to install texlive-mhchem in Fedora 36. texlive-mhchem is Typeset chemical formulae/equations and Risk and Safety phrases

Introduction

In this tutorial we learn how to install texlive-mhchem on Fedora 36.

What is texlive-mhchem

The bundle provides three packages commands for typesetting chemical molecular formulae and equations. The hpstatement package provides commands for the official hazard statements and precautionary statements (H and P statements) that are used to label chemicals. The rsphrase package provides commands for the official Risk and Safety (R and S) Phrases that are used to label chemicals. The package requires the expl3 bundle.

We can use yum or dnf to install texlive-mhchem on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-mhchem.

Install texlive-mhchem on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-mhchem

Install texlive-mhchem on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-mhchem

How To Uninstall texlive-mhchem on Fedora 36

To uninstall only the texlive-mhchem package we can use the following command:

sudo dnf remove texlive-mhchem

texlive-mhchem Package Contents on Fedora 36

/usr/share/licenses/texlive-mhchem
/usr/share/licenses/texlive-mhchem/lppl1.3.txt
/usr/share/texlive/texmf-dist/tex/latex/mhchem
/usr/share/texlive/texmf-dist/tex/latex/mhchem/hpstatement.sty
/usr/share/texlive/texmf-dist/tex/latex/mhchem/mhchem.sty
/usr/share/texlive/texmf-dist/tex/latex/mhchem/rsphrase.sty

References

Summary

In this tutorial we learn how to install texlive-mhchem on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).