How To Install perl-NetAddr-IP.x86_64 on Amazon Linux 2

In this tutorial we learn how to install perl-NetAddr-IP.x86_64 in Amazon Linux 2. perl-NetAddr-IP.x86_64 is Manages IPv4 and IPv6 addresses and subnets

Introduction

In this tutorial we learn how to install perl-NetAddr-IP.x86_64 on Amazon Linux 2.

What is perl-NetAddr-IP.x86_64

This module provides an object-oriented abstraction on top of IP addresses or IP subnets, that allows for easy manipulations.

We can use yum to install perl-NetAddr-IP.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-NetAddr-IP.x86_64.

Install perl-NetAddr-IP.x86_64 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 perl-NetAddr-IP.x86_64 using yum by running the following command:

sudo yum -y install perl-NetAddr-IP.x86_64

How To Uninstall perl-NetAddr-IP.x86_64 on Amazon Linux 2

To uninstall only the perl-NetAddr-IP.x86_64 package we can use the following command:

sudo yum remove perl-NetAddr-IP.x86_64

perl-NetAddr-IP.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/perl5/vendor_perl/NetAddr
/usr/lib64/perl5/vendor_perl/NetAddr/IP
/usr/lib64/perl5/vendor_perl/NetAddr/IP.pm
/usr/lib64/perl5/vendor_perl/NetAddr/IP/InetBase.pm
/usr/lib64/perl5/vendor_perl/NetAddr/IP/Lite.pm
/usr/lib64/perl5/vendor_perl/NetAddr/IP/Util.pm
/usr/lib64/perl5/vendor_perl/NetAddr/IP/UtilPP.pm
/usr/lib64/perl5/vendor_perl/NetAddr/IP/Util_IS.pm
/usr/lib64/perl5/vendor_perl/auto/NetAddr
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/_inet_ntop.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/_inet_pton.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/_packzeros.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/autosplit.ix
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/inet_any2n.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/inet_n2ad.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/inet_n2dx.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/inet_ntoa.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/ipv6_aton.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/InetBase/ipv6_ntoa.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/Util
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/Util/Util.so
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/Util/autosplit.ix
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_128x10.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_128x2.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_bcd2bin.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_bcdcheck.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_bin2bcdn.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_deadlen.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/_sa128.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/add128.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/addconst.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/autosplit.ix
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/bcd2bin.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/bcdn2bin.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/bcdn2txt.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/bin2bcd.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/bin2bcdn.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/comp128.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/hasbits.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/ipanyto6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/ipv4to6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/ipv6to4.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/mask4to6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/maskanyto6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/notcontiguous.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/shiftleft.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/simple_pack.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/slowadd128.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/UtilPP/sub128.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/_compV6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/_compact_v6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/_splitplan.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/_splitref.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/autosplit.ix
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/coalesce.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/compactref.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/do_prefix.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/hostenum.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/mod_version.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/nprefix.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/prefix.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/re.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/re6.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/short.al
/usr/lib64/perl5/vendor_perl/auto/NetAddr/IP/wildcard.al
/usr/share/doc/perl-NetAddr-IP-4.069
/usr/share/doc/perl-NetAddr-IP-4.069/About-NetAddr-IP.txt
/usr/share/doc/perl-NetAddr-IP-4.069/Artistic
/usr/share/doc/perl-NetAddr-IP-4.069/Changes
/usr/share/doc/perl-NetAddr-IP-4.069/Copying
/usr/share/doc/perl-NetAddr-IP-4.069/TODO
/usr/share/doc/perl-NetAddr-IP-4.069/rfc1884.txt
/usr/share/man/man3/NetAddr::IP.3pm.gz
/usr/share/man/man3/NetAddr::IP::InetBase.3pm.gz
/usr/share/man/man3/NetAddr::IP::Lite.3pm.gz
/usr/share/man/man3/NetAddr::IP::Util.3pm.gz
/usr/share/man/man3/NetAddr::IP::UtilPP.3pm.gz

References

Summary

In this tutorial we learn how to install perl-NetAddr-IP.x86_64 on Amazon Linux 2 using yum.