How To Install texlive-listing on Fedora 36

In this tutorial we learn how to install texlive-listing in Fedora 36. texlive-listing is Produce formatted program listings

Introduction

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

What is texlive-listing

The listing environment is provided and is similar to figure and table, although it is not a floating environment. Includes support for \caption, \label, \ref, and introduces \listoflistings, \listingname, \listlistingname. It produces a .lol file. It does not change @makecaption (unless the option bigcaptions is used), so packages that change the layout of \caption still work.

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

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

sudo dnf -y install texlive-listing

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

sudo yum -y install texlive-listing

How To Uninstall texlive-listing on Fedora 36

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

sudo dnf remove texlive-listing

texlive-listing Package Contents on Fedora 36

/usr/share/licenses/texlive-listing
/usr/share/licenses/texlive-listing/lppl1.txt
/usr/share/texlive/texmf-dist/tex/latex/listing
/usr/share/texlive/texmf-dist/tex/latex/listing/listing.sty

References

Summary

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