How To Install python3-iptools on Rocky Linux 8

In this tutorial we learn how to install python3-iptools on Rocky Linux 8. python3-iptools is A few useful functions and objects for manipulating IP addresses in python 3

Introduction

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

What is python3-iptools

A few useful functions and objects for manipulating IPv4 and IPv6 addresses in python. The project was inspired by a desire to be able to use CIDR address notation to designate INTERNAL_IPS in a Django project’s settings file.

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

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

sudo dnf -y install python3-iptools

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

sudo yum -y install python3-iptools

How To Uninstall python3-iptools on Rocky Linux 8

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

sudo dnf remove python3-iptools

python3-iptools Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/iptools
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/iptools-0.7.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/iptools/__init__.py
/usr/lib/python3.6/site-packages/iptools/__pycache__
/usr/lib/python3.6/site-packages/iptools/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/iptools/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/iptools/__pycache__/ipv4.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/iptools/__pycache__/ipv4.cpython-36.pyc
/usr/lib/python3.6/site-packages/iptools/__pycache__/ipv6.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/iptools/__pycache__/ipv6.cpython-36.pyc
/usr/lib/python3.6/site-packages/iptools/ipv4.py
/usr/lib/python3.6/site-packages/iptools/ipv6.py
/usr/share/doc/python3-iptools
/usr/share/doc/python3-iptools/AUTHORS
/usr/share/doc/python3-iptools/CHANGES
/usr/share/doc/python3-iptools/README.md
/usr/share/doc/python3-iptools/docs
/usr/share/doc/python3-iptools/docs/Makefile
/usr/share/doc/python3-iptools/docs/_static
/usr/share/doc/python3-iptools/docs/_templates
/usr/share/doc/python3-iptools/docs/conf.py
/usr/share/doc/python3-iptools/docs/index.rst
/usr/share/doc/python3-iptools/docs/requirements.txt
/usr/share/licenses/python3-iptools
/usr/share/licenses/python3-iptools/LICENSE

References

Summary

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