How To Install texlive-ocgx on Fedora 36

In this tutorial we learn how to install texlive-ocgx in Fedora 36. texlive-ocgx is Use OCGs within a PDF document without JavaScript

Introduction

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

What is texlive-ocgx

The package extends the ocg package, which allows you to create OCGs (Optional Content Groups) in PDF documents. (The ocg package is distributed as part of Asymptote.) Every OCG includes TeX material into a layer of the PDF file. Each of these layers can be displayed or not. Links can enable or disable the display of OCGs. The ocgx package does not use Javascript embedded in the PDF document to enable (to show) or disable (to hide) OCGs.

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

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

sudo dnf -y install texlive-ocgx

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

sudo yum -y install texlive-ocgx

How To Uninstall texlive-ocgx on Fedora 36

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

sudo dnf remove texlive-ocgx

texlive-ocgx Package Contents on Fedora 36

/usr/share/licenses/texlive-ocgx
/usr/share/licenses/texlive-ocgx/lppl1.txt
/usr/share/texlive/texmf-dist/tex/latex/ocgx
/usr/share/texlive/texmf-dist/tex/latex/ocgx/ocgx.sty
/usr/share/texlive/texmf-dist/tex/latex/ocgx/tikzlibraryocgx.code.tex

References

Summary

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