How To Install python3-sphinx on CentOS 8
Introduction
In this tutorial we learn how to install python3-sphinx on CentOS 8.
What is python3-sphinx
Sphinx is a tool that makes it easy to create intelligent and beautiful documentation for Python projects (or other documents consisting of multiple reStructuredText sources), written by Georg Brandl. It was originally created to translate the new Python documentation, but has now been cleaned up in the hope that it will be useful to many other projects. Sphinx uses reStructuredText as its markup language, and many of its strengths come from the power and straightforwardness of reStructuredText and its parsing and translating suite, the Docutils. Although it is still under constant development, the following features are already present, work fine and can be seen “in action” in the Python docs * Output formats for printable PDF versions * Extensive cross-references for functions, classes, glossary terms and similar pieces of information * Hierarchical structure automatic links to siblings, parents and children * Automatic indices * Code handling * Various extensions are available, e.g. for automatic testing of snippets and inclusion of appropriately formatted docstrings.
We can use yum or dnf to install python3-sphinx on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sphinx.
Install python3-sphinx on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install python3-sphinx using yum by running the following command:
sudo yum -y install python3-sphinx
Install python3-sphinx on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install python3-sphinx using dnf by running the following command:
sudo dnf -y install python3-sphinx
How To Uninstall python3-sphinx on CentOS 8
To uninstall only the python3-sphinx package we can use the following command:
sudo dnf remove python3-sphinx
References
Summary
In this tutorial we learn how to install python3-sphinx on CentOS 8 using yum and dnf.