How To Install texlive-detex on Fedora 36

In this tutorial we learn how to install texlive-detex in Fedora 36. texlive-detex is Strip TeX from a source file

Introduction

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

What is texlive-detex

Detex is a program to remove TeX constructs from a text file. It recognizes the \input command. The program assumes it is dealing with LaTeX input if it sees the string \begin{document} in the text. In this case, it also recognizes the \include and \includeonly commands.

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

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

sudo dnf -y install texlive-detex

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

sudo yum -y install texlive-detex

How To Uninstall texlive-detex on Fedora 36

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

sudo dnf remove texlive-detex

texlive-detex Package Contents on Fedora 36

/usr/bin/detex
/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/5b497b185f43cfa1d0c43fcf3f03178bfa1270
/usr/share/man/man1/detex.1.gz

References

Summary

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