How To Install python3-sphinxcontrib-trio on AlmaLinux 8
Introduction
In this tutorial we learn how to install python3-sphinxcontrib-trio
on AlmaLinux 8.
What is python3-sphinxcontrib-trio
This sphinx extension helps you document Python code that uses async/await, or abstract methods, or context managers, or generators, or … you get the idea. It works by making sphinx’s regular directives for documenting Python functions and methods smarter and more powerful. The name is because it was originally written for the Trio project, and I’m not very creative. But don’t be put off – there’s nothing Trio- or async-specific about this extension; any Python project can benefit. (Though projects using async/await probably benefit the most, since sphinx’s built-in tools are especially inadequate in this case.)
We can use yum
or dnf
to install python3-sphinxcontrib-trio
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sphinxcontrib-trio.
Install python3-sphinxcontrib-trio on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-sphinxcontrib-trio
using dnf
by running the following command:
sudo dnf -y install python3-sphinxcontrib-trio
Install python3-sphinxcontrib-trio on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-sphinxcontrib-trio
using yum
by running the following command:
sudo yum -y install python3-sphinxcontrib-trio
How To Uninstall python3-sphinxcontrib-trio on AlmaLinux 8
To uninstall only the python3-sphinxcontrib-trio
package we can use the following command:
sudo dnf remove python3-sphinxcontrib-trio
References
Summary
In this tutorial we learn how to install python3-sphinxcontrib-trio
on AlmaLinux 8 using yum and dnf.