How To Install texlive-pygmentex on Fedora 36

In this tutorial we learn how to install texlive-pygmentex in Fedora 36. texlive-pygmentex is Use Pygments to format code listings in documents

Introduction

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

What is texlive-pygmentex

PygmenTeX is a Python-based LaTeX package that can be used for typesetting code listings in a LaTeX document using Pygments. Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.

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

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

sudo dnf -y install texlive-pygmentex

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

sudo yum -y install texlive-pygmentex

How To Uninstall texlive-pygmentex on Fedora 36

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

sudo dnf remove texlive-pygmentex

texlive-pygmentex Package Contents on Fedora 36

/usr/bin/pygmentex
/usr/share/licenses/texlive-pygmentex
/usr/share/licenses/texlive-pygmentex/lppl1.3.txt
/usr/share/texlive/texmf-dist/doc/latex/pygmentex
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/Factorial.java
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/README
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/blueshade.png
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.c
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.delphi
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.hs
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.java
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.pas
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.pdf
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.py
/usr/share/texlive/texmf-dist/doc/latex/pygmentex/pygmentex_demo.tex
/usr/share/texlive/texmf-dist/scripts/pygmentex
/usr/share/texlive/texmf-dist/scripts/pygmentex/pygmentex.py
/usr/share/texlive/texmf-dist/tex/latex/pygmentex
/usr/share/texlive/texmf-dist/tex/latex/pygmentex/pygmentex.sty

References

Summary

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