How To Install python3-netaddr on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-netaddr
on Rocky Linux 8.
What is python3-netaddr
A network address manipulation library for Python Provides support for Layer 3 addresses * IPv4 and IPv6 addresses, subnets, masks, prefixes * iterating, slicing, sorting, summarizing and classifying IP networks * dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap) * set based operations (unions, intersections etc) over IP addresses and subnets * parsing a large variety of different formats and notations * looking up IANA IP block information * generating DNS reverse lookups * supernetting and subnetting Layer 2 addresses * representation and manipulation MAC addresses and EUI-64 identifiers * looking up IEEE organisational information (OUI, IAB) * generating derived IPv6 addresses
We can use yum
or dnf
to install python3-netaddr
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-netaddr.
Install python3-netaddr 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-netaddr
using dnf
by running the following command:
sudo dnf -y install python3-netaddr
Install python3-netaddr 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-netaddr
using yum
by running the following command:
sudo yum -y install python3-netaddr
How To Uninstall python3-netaddr on Rocky Linux 8
To uninstall only the python3-netaddr
package we can use the following command:
sudo dnf remove python3-netaddr
python3-netaddr Package Contents on Rocky Linux 8
/usr/bin/netaddr3
/usr/lib/python3.6/site-packages/netaddr
/usr/lib/python3.6/site-packages/netaddr-0.7.19-py3.6.egg-info
/usr/lib/python3.6/site-packages/netaddr-0.7.19-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/netaddr-0.7.19-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/netaddr-0.7.19-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/netaddr-0.7.19-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/netaddr/__init__.py
/usr/lib/python3.6/site-packages/netaddr/__pycache__
/usr/lib/python3.6/site-packages/netaddr/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/core.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/fbsocket.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/__pycache__/fbsocket.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/compat.py
/usr/lib/python3.6/site-packages/netaddr/contrib
/usr/lib/python3.6/site-packages/netaddr/contrib/__init__.py
/usr/lib/python3.6/site-packages/netaddr/contrib/__pycache__
/usr/lib/python3.6/site-packages/netaddr/contrib/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/contrib/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/contrib/__pycache__/subnet_splitter.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/contrib/__pycache__/subnet_splitter.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/contrib/subnet_splitter.py
/usr/lib/python3.6/site-packages/netaddr/core.py
/usr/lib/python3.6/site-packages/netaddr/eui
/usr/lib/python3.6/site-packages/netaddr/eui/__init__.py
/usr/lib/python3.6/site-packages/netaddr/eui/__pycache__
/usr/lib/python3.6/site-packages/netaddr/eui/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/eui/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/eui/__pycache__/ieee.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/eui/__pycache__/ieee.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/eui/iab.idx
/usr/lib/python3.6/site-packages/netaddr/eui/iab.txt
/usr/lib/python3.6/site-packages/netaddr/eui/ieee.py
/usr/lib/python3.6/site-packages/netaddr/eui/oui.idx
/usr/lib/python3.6/site-packages/netaddr/eui/oui.txt
/usr/lib/python3.6/site-packages/netaddr/fbsocket.py
/usr/lib/python3.6/site-packages/netaddr/ip
/usr/lib/python3.6/site-packages/netaddr/ip/__init__.py
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/glob.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/glob.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/iana.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/iana.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/nmap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/nmap.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/rfc1924.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/rfc1924.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/sets.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/__pycache__/sets.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/ip/glob.py
/usr/lib/python3.6/site-packages/netaddr/ip/iana.py
/usr/lib/python3.6/site-packages/netaddr/ip/ipv4-address-space.xml
/usr/lib/python3.6/site-packages/netaddr/ip/ipv6-address-space.xml
/usr/lib/python3.6/site-packages/netaddr/ip/ipv6-unicast-address-assignments.xml
/usr/lib/python3.6/site-packages/netaddr/ip/multicast-addresses.xml
/usr/lib/python3.6/site-packages/netaddr/ip/nmap.py
/usr/lib/python3.6/site-packages/netaddr/ip/rfc1924.py
/usr/lib/python3.6/site-packages/netaddr/ip/sets.py
/usr/lib/python3.6/site-packages/netaddr/strategy
/usr/lib/python3.6/site-packages/netaddr/strategy/__init__.py
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/eui48.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/eui48.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/eui64.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/eui64.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/ipv4.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/ipv4.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/ipv6.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/__pycache__/ipv6.cpython-36.pyc
/usr/lib/python3.6/site-packages/netaddr/strategy/eui48.py
/usr/lib/python3.6/site-packages/netaddr/strategy/eui64.py
/usr/lib/python3.6/site-packages/netaddr/strategy/ipv4.py
/usr/lib/python3.6/site-packages/netaddr/strategy/ipv6.py
/usr/share/doc/python3-netaddr
/usr/share/doc/python3-netaddr/AUTHORS
/usr/share/doc/python3-netaddr/CHANGELOG
/usr/share/doc/python3-netaddr/README.md
/usr/share/doc/python3-netaddr/html
/usr/share/doc/python3-netaddr/html/.buildinfo
/usr/share/doc/python3-netaddr/html/_modules
/usr/share/doc/python3-netaddr/html/_modules/index.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr
/usr/share/doc/python3-netaddr/html/_modules/netaddr/core.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/eui.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip/glob.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip/nmap.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip/rfc1924.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/ip/sets.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/strategy
/usr/share/doc/python3-netaddr/html/_modules/netaddr/strategy/eui48.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/strategy/ipv4.html
/usr/share/doc/python3-netaddr/html/_modules/netaddr/strategy/ipv6.html
/usr/share/doc/python3-netaddr/html/_sources
/usr/share/doc/python3-netaddr/html/_sources/api.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/authors.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/changes.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/contributors.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/copyright.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/index.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/installation.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/introduction.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/license.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/references.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/tutorial_01.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/tutorial_02.rst.txt
/usr/share/doc/python3-netaddr/html/_sources/tutorial_03.rst.txt
/usr/share/doc/python3-netaddr/html/_static
/usr/share/doc/python3-netaddr/html/_static/ajax-loader.gif
/usr/share/doc/python3-netaddr/html/_static/basic.css
/usr/share/doc/python3-netaddr/html/_static/classic.css
/usr/share/doc/python3-netaddr/html/_static/comment-bright.png
/usr/share/doc/python3-netaddr/html/_static/comment-close.png
/usr/share/doc/python3-netaddr/html/_static/comment.png
/usr/share/doc/python3-netaddr/html/_static/default.css
/usr/share/doc/python3-netaddr/html/_static/doctools.js
/usr/share/doc/python3-netaddr/html/_static/documentation_options.js
/usr/share/doc/python3-netaddr/html/_static/down-pressed.png
/usr/share/doc/python3-netaddr/html/_static/down.png
/usr/share/doc/python3-netaddr/html/_static/file.png
/usr/share/doc/python3-netaddr/html/_static/jquery-3.2.1.js
/usr/share/doc/python3-netaddr/html/_static/jquery.js
/usr/share/doc/python3-netaddr/html/_static/minus.png
/usr/share/doc/python3-netaddr/html/_static/plus.png
/usr/share/doc/python3-netaddr/html/_static/pygments.css
/usr/share/doc/python3-netaddr/html/_static/searchtools.js
/usr/share/doc/python3-netaddr/html/_static/sidebar.js
/usr/share/doc/python3-netaddr/html/_static/underscore-1.3.1.js
/usr/share/doc/python3-netaddr/html/_static/underscore.js
/usr/share/doc/python3-netaddr/html/_static/up-pressed.png
/usr/share/doc/python3-netaddr/html/_static/up.png
/usr/share/doc/python3-netaddr/html/_static/websupport.js
/usr/share/doc/python3-netaddr/html/api.html
/usr/share/doc/python3-netaddr/html/authors.html
/usr/share/doc/python3-netaddr/html/changes.html
/usr/share/doc/python3-netaddr/html/contributors.html
/usr/share/doc/python3-netaddr/html/copyright.html
/usr/share/doc/python3-netaddr/html/genindex.html
/usr/share/doc/python3-netaddr/html/index.html
/usr/share/doc/python3-netaddr/html/installation.html
/usr/share/doc/python3-netaddr/html/introduction.html
/usr/share/doc/python3-netaddr/html/license.html
/usr/share/doc/python3-netaddr/html/objects.inv
/usr/share/doc/python3-netaddr/html/references.html
/usr/share/doc/python3-netaddr/html/search.html
/usr/share/doc/python3-netaddr/html/searchindex.js
/usr/share/doc/python3-netaddr/html/tutorial_01.html
/usr/share/doc/python3-netaddr/html/tutorial_02.html
/usr/share/doc/python3-netaddr/html/tutorial_03.html
/usr/share/licenses/python3-netaddr
/usr/share/licenses/python3-netaddr/COPYRIGHT
References
Summary
In this tutorial we learn how to install python3-netaddr
on Rocky Linux 8 using yum and dnf.