How To Install python3-dnslib on Rocky Linux 8

In this tutorial we learn how to install python3-dnslib on Rocky Linux 8. python3-dnslib is Simple library to encode/decode DNS packets

Introduction

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

What is python3-dnslib

Simple library to encode/decode DNS wire-format packets.

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

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

sudo dnf -y install python3-dnslib

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

sudo yum -y install python3-dnslib

How To Uninstall python3-dnslib on Rocky Linux 8

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

sudo dnf remove python3-dnslib

python3-dnslib Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/dnslib
/usr/lib/python3.6/site-packages/dnslib-0.9.14-py3.6.egg-info
/usr/lib/python3.6/site-packages/dnslib-0.9.14-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/dnslib-0.9.14-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/dnslib-0.9.14-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/dnslib-0.9.14-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/dnslib/__init__.py
/usr/lib/python3.6/site-packages/dnslib/__pycache__
/usr/lib/python3.6/site-packages/dnslib/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/bimap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/bimap.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/bit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/bit.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/buffer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/buffer.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/client.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/digparser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/digparser.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/dns.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/dns.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/fixedresolver.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/fixedresolver.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/intercept.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/intercept.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/label.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/label.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/lex.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/lex.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/proxy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/proxy.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/ranges.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/ranges.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/server.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/server.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/shellresolver.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/shellresolver.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/test_decode.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/test_decode.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/zoneresolver.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dnslib/__pycache__/zoneresolver.cpython-36.pyc
/usr/lib/python3.6/site-packages/dnslib/bimap.py
/usr/lib/python3.6/site-packages/dnslib/bit.py
/usr/lib/python3.6/site-packages/dnslib/buffer.py
/usr/lib/python3.6/site-packages/dnslib/client.py
/usr/lib/python3.6/site-packages/dnslib/digparser.py
/usr/lib/python3.6/site-packages/dnslib/dns.py
/usr/lib/python3.6/site-packages/dnslib/fixedresolver.py
/usr/lib/python3.6/site-packages/dnslib/intercept.py
/usr/lib/python3.6/site-packages/dnslib/label.py
/usr/lib/python3.6/site-packages/dnslib/lex.py
/usr/lib/python3.6/site-packages/dnslib/proxy.py
/usr/lib/python3.6/site-packages/dnslib/ranges.py
/usr/lib/python3.6/site-packages/dnslib/server.py
/usr/lib/python3.6/site-packages/dnslib/shellresolver.py
/usr/lib/python3.6/site-packages/dnslib/test_decode.py
/usr/lib/python3.6/site-packages/dnslib/zoneresolver.py
/usr/share/doc/python3-dnslib
/usr/share/doc/python3-dnslib/README
/usr/share/licenses/python3-dnslib
/usr/share/licenses/python3-dnslib/LICENSE

References

Summary

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