How To Install texlive-chemfig on Fedora 36

In this tutorial we learn how to install texlive-chemfig in Fedora 36. texlive-chemfig is Draw molecules with easy syntax

Introduction

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

What is texlive-chemfig

The package provides the command \chemfig{}, which draws molecules using the tikz package. The argument provides instructions for the drawing operation. While the diagrams produced are essentially 2-dimensional, the package supports many of the conventional notations for illustrating the 3- dimensional layout of a molecule. The package uses TikZ for its actual drawing operations.

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

Install texlive-chemfig 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-chemfig using dnf by running the following command:

sudo dnf -y install texlive-chemfig

Install texlive-chemfig 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-chemfig using yum by running the following command:

sudo yum -y install texlive-chemfig

How To Uninstall texlive-chemfig on Fedora 36

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

sudo dnf remove texlive-chemfig

texlive-chemfig Package Contents on Fedora 36

/usr/share/licenses/texlive-chemfig
/usr/share/licenses/texlive-chemfig/lppl1.3.txt
/usr/share/texlive/texmf-dist/tex/generic/chemfig
/usr/share/texlive/texmf-dist/tex/generic/chemfig/chemfig-lewis.tex
/usr/share/texlive/texmf-dist/tex/generic/chemfig/chemfig.sty
/usr/share/texlive/texmf-dist/tex/generic/chemfig/chemfig.tex

References

Summary

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