How To Install ndisc6 on Ubuntu 22.04

In this tutorial we learn how to install ndisc6 on Ubuntu 22.04. ndisc6 is IPv6 diagnostic tools

Introduction

In this tutorial we learn how to install ndisc6 on Ubuntu 22.04.

What is ndisc6

ndisc6 is:

ndisc6 gathers a few diagnostic tools for IPv6 networks including:

  • ndisc6, which performs ICMPv6 Neighbor Discovery in userland,
  • rdisc6, which performs ICMPv6 Router Discovery in userland,
  • rltraceroute6, a UDP/ICMP IPv6 implementation of traceroute,
  • tcptraceroute6, a TCP/IPv6-based traceroute implementation,
  • tcpspray6, a TCP/IP Discard/Echo bandwidth meter,
  • addrinfo, easy script interface for hostname and address resolution,
  • dnssort, DNS sorting script.

There are three methods to install ndisc6 on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ndisc6 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ndisc6 using apt-get by running the following command:

sudo apt-get -y install ndisc6

Install ndisc6 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ndisc6 using apt by running the following command:

sudo apt -y install ndisc6

Install ndisc6 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ndisc6 using aptitude by running the following command:

sudo aptitude -y install ndisc6

How To Uninstall ndisc6 on Ubuntu 22.04

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

sudo apt-get remove ndisc6

Uninstall ndisc6 And Its Dependencies

To uninstall ndisc6 and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove ndisc6

Remove ndisc6 Configurations and Data

To remove ndisc6 configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge ndisc6

Remove ndisc6 configuration, data, and all of its dependencies

We can use the following command to remove ndisc6 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ndisc6

References

Summary

In this tutorial we learn how to install ndisc6 package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.