How To Install texlive-wordcount on Fedora 36

In this tutorial we learn how to install texlive-wordcount in Fedora 36. texlive-wordcount is Estimate the number of words in a LaTeX document

Introduction

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

What is texlive-wordcount

The package provides a relatively easy way of estimating the number of words in a LaTeX document that does not require dvitty or other DVI converters. It does however require something like Unix grep -c that can search a file for a particular string and report the number of matching lines. An accompanying shell script wordcount.sh contains more information in its comments.

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

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

sudo dnf -y install texlive-wordcount

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

sudo yum -y install texlive-wordcount

How To Uninstall texlive-wordcount on Fedora 36

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

sudo dnf remove texlive-wordcount

texlive-wordcount Package Contents on Fedora 36

/usr/bin/wordcount
/usr/share/licenses/texlive-wordcount
/usr/share/licenses/texlive-wordcount/lppl1.txt
/usr/share/texlive/texmf-dist/doc/latex/wordcount
/usr/share/texlive/texmf-dist/doc/latex/wordcount/README
/usr/share/texlive/texmf-dist/scripts/wordcount
/usr/share/texlive/texmf-dist/scripts/wordcount/wordcount.sh
/usr/share/texlive/texmf-dist/tex/latex/wordcount
/usr/share/texlive/texmf-dist/tex/latex/wordcount/wordcount.tex

References

Summary

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