How To Install python-netaddr.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-netaddr.noarch
on Amazon Linux 2.
What is python-netaddr.noarch
A pure Python network address representation and manipulation library. netaddr provides a Pythonic way of working with - IPv4 and IPv6 addresses and subnets - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers - arbitrary (non-aligned) IP address ranges and IP address sets - various non-CIDR IP range formats such as nmap and glob-style formats Included are routines for - generating, sorting and summarizing IP addresses and networks - performing easy conversions between address notations and formats - detecting, parsing and formatting network address representations - performing set-based operations on groups of IP addresses and subnets - working with arbitrary IP address ranges and formats - accessing OUI and IAB organisational information published by IEEE - accessing IP address and block information published by IANA For details on the latest updates and changes, see http API documentation for the latest release is available here http
We can use yum
to install python-netaddr.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-netaddr.noarch.
Install python-netaddr.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-netaddr.noarch
using yum
by running the following command:
sudo yum -y install python-netaddr.noarch
How To Uninstall python-netaddr.noarch on Amazon Linux 2
To uninstall only the python-netaddr.noarch
package we can use the following command:
sudo yum remove python-netaddr.noarch
python-netaddr.noarch Package Contents on Amazon Linux 2
/usr/bin/netaddr
/usr/lib/python2.7/site-packages/netaddr
/usr/lib/python2.7/site-packages/netaddr-0.7.5-py2.7.egg-info
/usr/lib/python2.7/site-packages/netaddr/__init__.py
/usr/lib/python2.7/site-packages/netaddr/__init__.pyc
/usr/lib/python2.7/site-packages/netaddr/__init__.pyo
/usr/lib/python2.7/site-packages/netaddr/compat.py
/usr/lib/python2.7/site-packages/netaddr/compat.pyc
/usr/lib/python2.7/site-packages/netaddr/compat.pyo
/usr/lib/python2.7/site-packages/netaddr/core.py
/usr/lib/python2.7/site-packages/netaddr/core.pyc
/usr/lib/python2.7/site-packages/netaddr/core.pyo
/usr/lib/python2.7/site-packages/netaddr/eui
/usr/lib/python2.7/site-packages/netaddr/eui/__init__.py
/usr/lib/python2.7/site-packages/netaddr/eui/__init__.pyc
/usr/lib/python2.7/site-packages/netaddr/eui/__init__.pyo
/usr/lib/python2.7/site-packages/netaddr/eui/iab.idx
/usr/lib/python2.7/site-packages/netaddr/eui/iab.txt
/usr/lib/python2.7/site-packages/netaddr/eui/ieee.py
/usr/lib/python2.7/site-packages/netaddr/eui/ieee.pyc
/usr/lib/python2.7/site-packages/netaddr/eui/ieee.pyo
/usr/lib/python2.7/site-packages/netaddr/eui/oui.idx
/usr/lib/python2.7/site-packages/netaddr/eui/oui.txt
/usr/lib/python2.7/site-packages/netaddr/fbsocket.py
/usr/lib/python2.7/site-packages/netaddr/fbsocket.pyc
/usr/lib/python2.7/site-packages/netaddr/fbsocket.pyo
/usr/lib/python2.7/site-packages/netaddr/ip
/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py
/usr/lib/python2.7/site-packages/netaddr/ip/__init__.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/__init__.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/glob.py
/usr/lib/python2.7/site-packages/netaddr/ip/glob.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/glob.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/iana.py
/usr/lib/python2.7/site-packages/netaddr/ip/iana.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/iana.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/intset.py
/usr/lib/python2.7/site-packages/netaddr/ip/intset.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/intset.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/ipv4-address-space
/usr/lib/python2.7/site-packages/netaddr/ip/ipv6-address-space
/usr/lib/python2.7/site-packages/netaddr/ip/multicast-addresses
/usr/lib/python2.7/site-packages/netaddr/ip/nmap.py
/usr/lib/python2.7/site-packages/netaddr/ip/nmap.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/nmap.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/rfc1924.py
/usr/lib/python2.7/site-packages/netaddr/ip/rfc1924.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/rfc1924.pyo
/usr/lib/python2.7/site-packages/netaddr/ip/sets.py
/usr/lib/python2.7/site-packages/netaddr/ip/sets.pyc
/usr/lib/python2.7/site-packages/netaddr/ip/sets.pyo
/usr/lib/python2.7/site-packages/netaddr/strategy
/usr/lib/python2.7/site-packages/netaddr/strategy/__init__.py
/usr/lib/python2.7/site-packages/netaddr/strategy/__init__.pyc
/usr/lib/python2.7/site-packages/netaddr/strategy/__init__.pyo
/usr/lib/python2.7/site-packages/netaddr/strategy/eui48.py
/usr/lib/python2.7/site-packages/netaddr/strategy/eui48.pyc
/usr/lib/python2.7/site-packages/netaddr/strategy/eui48.pyo
/usr/lib/python2.7/site-packages/netaddr/strategy/eui64.py
/usr/lib/python2.7/site-packages/netaddr/strategy/eui64.pyc
/usr/lib/python2.7/site-packages/netaddr/strategy/eui64.pyo
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv4.py
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv4.pyc
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv4.pyo
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv6.py
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv6.pyc
/usr/lib/python2.7/site-packages/netaddr/strategy/ipv6.pyo
/usr/lib/python2.7/site-packages/netaddr/tests
/usr/lib/python2.7/site-packages/netaddr/tests/__init__.py
/usr/lib/python2.7/site-packages/netaddr/tests/__init__.pyc
/usr/lib/python2.7/site-packages/netaddr/tests/__init__.pyo
/usr/share/doc/python-netaddr-0.7.5
/usr/share/doc/python-netaddr-0.7.5/AUTHORS
/usr/share/doc/python-netaddr-0.7.5/CHANGELOG
/usr/share/doc/python-netaddr-0.7.5/COPYRIGHT
/usr/share/doc/python-netaddr-0.7.5/INSTALL
/usr/share/doc/python-netaddr-0.7.5/LICENSE
/usr/share/doc/python-netaddr-0.7.5/PKG-INFO
/usr/share/doc/python-netaddr-0.7.5/README
/usr/share/doc/python-netaddr-0.7.5/api
/usr/share/doc/python-netaddr-0.7.5/api/api-objects.txt
/usr/share/doc/python-netaddr-0.7.5/api/class-tree.html
/usr/share/doc/python-netaddr-0.7.5/api/crarr.png
/usr/share/doc/python-netaddr-0.7.5/api/epydoc.css
/usr/share/doc/python-netaddr-0.7.5/api/epydoc.js
/usr/share/doc/python-netaddr-0.7.5/api/frames.html
/usr/share/doc/python-netaddr-0.7.5/api/help.html
/usr/share/doc/python-netaddr-0.7.5/api/identifier-index.html
/usr/share/doc/python-netaddr-0.7.5/api/index.html
/usr/share/doc/python-netaddr-0.7.5/api/module-tree.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.compat-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.AddrConversionError-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.AddrFormatError-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.DictDotLookup-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.NotRegisteredError-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.PrettyPrinter-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.Publisher-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.core.Subscriber-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.BaseIdentifier-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.EUI-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.IAB-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.OUI-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.ieee-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.ieee.FileIndexer-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.ieee.IABIndexParser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.eui.ieee.OUIIndexParser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.fbsocket-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.BaseIP-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.IPAddress-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.IPListMixin-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.IPNetwork-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.IPRange-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.glob-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.glob.IPGlob-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana.DictUpdater-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana.IPv4Parser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana.IPv6Parser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana.LineRecordParser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.iana.MulticastParser-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.intset-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.intset.IntSet-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.intset._Infinity-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.nmap-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.rfc1924-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.sets-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.ip.sets.IPSet-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48.mac_bare-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48.mac_cisco-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48.mac_eui48-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48.mac_pgsql-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui48.mac_unix-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.eui64-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.ipv4-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.ipv6-module.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.ipv6.ipv6_compact-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.ipv6.ipv6_full-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.strategy.ipv6.ipv6_verbose-class.html
/usr/share/doc/python-netaddr-0.7.5/api/netaddr.tests-module.html
/usr/share/doc/python-netaddr-0.7.5/api/redirect.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-everything.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.compat-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.core-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.eui-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.eui.ieee-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.fbsocket-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.glob-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.iana-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.intset-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.nmap-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.rfc1924-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.ip.sets-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.strategy-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.strategy.eui48-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.strategy.eui64-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.strategy.ipv4-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.strategy.ipv6-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc-netaddr.tests-module.html
/usr/share/doc/python-netaddr-0.7.5/api/toc.html
References
Summary
In this tutorial we learn how to install python-netaddr.noarch
on Amazon Linux 2 using yum.