How To Install ipv6calc on CentOS 7

In this tutorial we learn how to install ipv6calc on CentOS 7. ipv6calc is IPv6 address format change and calculation utility

Introduction

In this tutorial we learn how to install ipv6calc on CentOS 7.

What is ipv6calc

ipv6calc is a small utility which formats and calculates IPv4/IPv6 addresses in different ways. Install this package, if you want to retrieve information about a particular IPv4/IPv6/MAC address (-i ADDRESS) or make life easier in adding entries to reverse IPv6 DNS zones (e.g. -a 2001 In addition many format and type conversions are supported, see online help and/or given URL for more. Also this package contains additional programs - ipv6loganon - ipv6logconv (examples included for use with analog) - ipv6logstats addresses (examples included for use with gnu-plot) - mod_ipv6calc logging on-the-fly Support for following databases - IP2Location ENABLED default directory for downloaded db files /usr/share/IP2Location (requires also external library on system) - GeoIP v2 ENABLED default directory for downloaded db files /usr/share/GeoIP (requires also external library on system) - db-ip.com v2 ENABLED (once generated database files are found on system) default directory for generated db files /usr/share/DBIP - External ENABLED default directory for generated db files /usr/share/ipv6calc/db Built WITH shared-library Available rpmbuild rebuild options –without ip2location –without mmdb (which disables GeoIP v2 and db-ip.com v2) –without external –without shared –without mod_ipv6calc

We can use yum or dnf to install ipv6calc on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ipv6calc.

Install ipv6calc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ipv6calc using yum by running the following command:

sudo yum -y install ipv6calc

Install ipv6calc 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.

sudo dnf makecache

After updating yum database, We can install ipv6calc using dnf by running the following command:

sudo dnf -y install ipv6calc

How To Uninstall ipv6calc on CentOS 7

To uninstall only the ipv6calc package we can use the following command:

sudo dnf remove ipv6calc

References

Summary

In this tutorial we learn how to install ipv6calc on CentOS 7 using yum and dnf.