How To Install python3-sphinx-copybutton on Fedora 36

In this tutorial we learn how to install python3-sphinx-copybutton in Fedora 36. python3-sphinx-copybutton is Add a copy button to code cells in Sphinx docs

Introduction

In this tutorial we learn how to install python3-sphinx-copybutton on Fedora 36.

What is python3-sphinx-copybutton

Sphinx-copybutton does one thing right of your code blocks. If the code block overlaps to the right of the text area, you can just click the button to get the whole thing.

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

Install python3-sphinx-copybutton 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 python3-sphinx-copybutton using dnf by running the following command:

sudo dnf -y install python3-sphinx-copybutton

Install python3-sphinx-copybutton 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 python3-sphinx-copybutton using yum by running the following command:

sudo yum -y install python3-sphinx-copybutton

How To Uninstall python3-sphinx-copybutton on Fedora 36

To uninstall only the python3-sphinx-copybutton package we can use the following command:

sudo dnf remove python3-sphinx-copybutton

python3-sphinx-copybutton Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/sphinx_copybutton
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info/LICENSE
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info/METADATA
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info/WHEEL
/usr/lib/python3.10/site-packages/sphinx_copybutton-0.5.0.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/sphinx_copybutton/__init__.py
/usr/lib/python3.10/site-packages/sphinx_copybutton/__pycache__
/usr/lib/python3.10/site-packages/sphinx_copybutton/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sphinx_copybutton/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/check-solid.svg
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/clipboard.min.js
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/copy-button.svg
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/copybutton.css
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/copybutton.js_t
/usr/lib/python3.10/site-packages/sphinx_copybutton/_static/copybutton_funcs.js
/usr/share/doc/python3-sphinx-copybutton
/usr/share/doc/python3-sphinx-copybutton/README.md
/usr/share/licenses/python3-sphinx-copybutton
/usr/share/licenses/python3-sphinx-copybutton/LICENSE

References

Summary

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