How To Install python36-netaddr on CentOS 7
Introduction
In this tutorial we learn how to install python36-netaddr
on CentOS 7.
What is python36-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 python36-netaddr
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python36-netaddr.
Install python36-netaddr on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python36-netaddr
using yum
by running the following command:
Install python36-netaddr on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python36-netaddr
using dnf
by running the following command:
How To Uninstall python36-netaddr on CentOS 7
To uninstall only the python36-netaddr
package we can use the following command:
References
Summary
In this tutorial we learn how to install python36-netaddr
on CentOS 7 using yum
and dnf
.