How To Install python3-pycares on Fedora 36

In this tutorial we learn how to install python3-pycares in Fedora 36. python3-pycares is Python interface for c-ares

Introduction

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

What is python3-pycares

pycares is a Python module which provides an interface to c-ares. c-ares is a C library that performs DNS requests and name resolutions asynchronously.

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

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

sudo dnf -y install python3-pycares

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

sudo yum -y install python3-pycares

How To Uninstall python3-pycares on Fedora 36

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

sudo dnf remove python3-pycares

python3-pycares Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/ed0b119f28b2a943b53357f0c47605827739d3
/usr/lib64/python3.10/site-packages/pycares
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/pycares-4.1.2-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/pycares/__init__.py
/usr/lib64/python3.10/site-packages/pycares/__main__.py
/usr/lib64/python3.10/site-packages/pycares/__pycache__
/usr/lib64/python3.10/site-packages/pycares/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/__main__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/_version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/errno.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/errno.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pycares/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pycares/_cares.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/pycares/_version.py
/usr/lib64/python3.10/site-packages/pycares/errno.py
/usr/lib64/python3.10/site-packages/pycares/utils.py
/usr/share/doc/python3-pycares
/usr/share/doc/python3-pycares/ChangeLog
/usr/share/doc/python3-pycares/README.rst
/usr/share/licenses/python3-pycares
/usr/share/licenses/python3-pycares/LICENSE

References

Summary

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