How To Install texlive-filecontentsdef on Fedora 36

In this tutorial we learn how to install texlive-filecontentsdef in Fedora 36. texlive-filecontentsdef is filecontents + macro + verbatim

Introduction

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

What is texlive-filecontentsdef

The package provides two environments called filecontentsdef and filecontentshere. They are derived from the LaTeX filecontents environment as provided by Scott Pakin’s filecontents package. In addition to the file creation they either store the (verbatim) contents in a macro (filecontentsdef) or typeset them (verbatim) on the spot (filecontentshere). The author developed the package to display TeX code verbatim in documentation and the same time produce the corresponding files during the LaTeX run in order to embed them in the PDF as file attachment annotations (by using Scott Pakin’s package attachfile).

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

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

sudo dnf -y install texlive-filecontentsdef

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

sudo yum -y install texlive-filecontentsdef

How To Uninstall texlive-filecontentsdef on Fedora 36

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

sudo dnf remove texlive-filecontentsdef

texlive-filecontentsdef Package Contents on Fedora 36

/usr/share/licenses/texlive-filecontentsdef
/usr/share/licenses/texlive-filecontentsdef/lppl1.3.txt
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/INSTALL
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/INSTALL.md
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/README.md
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef-ex1.tex
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef-ex2.tex
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef-ex3.tex
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef-tab.test
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef.pdf
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef.test
/usr/share/texlive/texmf-dist/doc/latex/filecontentsdef/filecontentsdef.tex
/usr/share/texlive/texmf-dist/tex/latex/filecontentsdef
/usr/share/texlive/texmf-dist/tex/latex/filecontentsdef/filecontentsdef.sty

References

Summary

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