How To Install python3-tld on Rocky Linux 8

In this tutorial we learn how to install python3-tld on Rocky Linux 8. python3-tld is Extract the top level domain from the URL given

Introduction

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

What is python3-tld

Extract the top level domain (TLD) from the URL given. List of TLD names is taken from Mozilla.

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

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

sudo dnf -y install python3-tld

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

sudo yum -y install python3-tld

How To Uninstall python3-tld on Rocky Linux 8

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

sudo dnf remove python3-tld

python3-tld Package Contents on Rocky Linux 8

/usr/bin/update-tld-names
/usr/lib/python3.6/site-packages/tld
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/tld-0.11.10-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/tld/__init__.py
/usr/lib/python3.6/site-packages/tld/__pycache__
/usr/lib/python3.6/site-packages/tld/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/conf.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/conf.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/defaults.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/defaults.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/helpers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/helpers.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/registry.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/registry.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/result.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/result.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/trie.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/trie.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tld/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/tld/base.py
/usr/lib/python3.6/site-packages/tld/conf.py
/usr/lib/python3.6/site-packages/tld/defaults.py
/usr/lib/python3.6/site-packages/tld/exceptions.py
/usr/lib/python3.6/site-packages/tld/helpers.py
/usr/lib/python3.6/site-packages/tld/registry.py
/usr/lib/python3.6/site-packages/tld/res
/usr/lib/python3.6/site-packages/tld/res/effective_tld_names.dat.txt
/usr/lib/python3.6/site-packages/tld/result.py
/usr/lib/python3.6/site-packages/tld/trie.py
/usr/lib/python3.6/site-packages/tld/utils.py
/usr/share/doc/python3-tld
/usr/share/doc/python3-tld/CHANGELOG.rst
/usr/share/doc/python3-tld/CREDITS.rst
/usr/share/doc/python3-tld/README.rst
/usr/share/licenses/python3-tld
/usr/share/licenses/python3-tld/LICENSE_GPL2.0.txt
/usr/share/licenses/python3-tld/LICENSE_LGPL_2.1.txt

References

Summary

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