How To Install texlive-ocg-p on Fedora 36

In this tutorial we learn how to install texlive-ocg-p in Fedora 36. texlive-ocg-p is PDF OCG support in LaTeX

Introduction

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

What is texlive-ocg-p

The package provides OCG (Optional Content Groups) support within a PDF document, replacing the ocg.sty distributed with asymptote. Nested OCGs are supported. The package may be used with PDFLatex and XeLaTeX.

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

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

sudo dnf -y install texlive-ocg-p

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

sudo yum -y install texlive-ocg-p

How To Uninstall texlive-ocg-p on Fedora 36

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

sudo dnf remove texlive-ocg-p

texlive-ocg-p Package Contents on Fedora 36

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

References

Summary

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