How To Install python3-py3dns on Rocky Linux 8

In this tutorial we learn how to install python3-py3dns on Rocky Linux 8. python3-py3dns is Python3 DNS library

Introduction

In this tutorial we learn how to install python3-py3dns on Rocky Linux 8.

What is python3-py3dns

This Python 3 module provides a DNS API for looking up DNS entries from within Python 3 modules and applications. This module is a simple, lightweight implementation.

We can use yum or dnf to install python3-py3dns on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-py3dns.

Install python3-py3dns on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-py3dns using dnf by running the following command:

sudo dnf -y install python3-py3dns

Install python3-py3dns on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-py3dns using yum by running the following command:

sudo yum -y install python3-py3dns

How To Uninstall python3-py3dns on Rocky Linux 8

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

sudo dnf remove python3-py3dns

python3-py3dns Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/DNS
/usr/lib/python3.6/site-packages/DNS/Base.py
/usr/lib/python3.6/site-packages/DNS/Class.py
/usr/lib/python3.6/site-packages/DNS/Lib.py
/usr/lib/python3.6/site-packages/DNS/Opcode.py
/usr/lib/python3.6/site-packages/DNS/Status.py
/usr/lib/python3.6/site-packages/DNS/Type.py
/usr/lib/python3.6/site-packages/DNS/__init__.py
/usr/lib/python3.6/site-packages/DNS/__pycache__
/usr/lib/python3.6/site-packages/DNS/__pycache__/Base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Base.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Class.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Class.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Lib.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Lib.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Opcode.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Opcode.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Status.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Status.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Type.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/Type.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/lazy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/lazy.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/win32dns.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/DNS/__pycache__/win32dns.cpython-36.pyc
/usr/lib/python3.6/site-packages/DNS/lazy.py
/usr/lib/python3.6/site-packages/DNS/win32dns.py
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/py3dns-3.2.1-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-py3dns
/usr/share/doc/python3-py3dns/CHANGES
/usr/share/doc/python3-py3dns/CREDITS.txt
/usr/share/doc/python3-py3dns/LICENSE
/usr/share/doc/python3-py3dns/README-guido.txt
/usr/share/doc/python3-py3dns/README.txt

References

Summary

In this tutorial we learn how to install python3-py3dns on Rocky Linux 8 using yum and dnf.