How To Install ipv6pref on Kali Linux

In this tutorial we learn how to install ipv6pref on Kali Linux. ipv6pref is utility to set IPv6 address preferences

Introduction

In this tutorial we learn how to install ipv6pref on Kali Linux.

What is ipv6pref

ipv6pref is:

ipv6pref provides a utility that preloads a library and allows users to control the use of IPv6 privacy extensions.

For longrunning tasks it may be undesirable to use the periodically changing and random addresses; using the supplied utility, the kernel can be instructed whether to prefer the temporary addresses or stick to the static ones when opening sockets for a specific program.

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

Install ipv6pref Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ipv6pref

Install ipv6pref Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ipv6pref

Install ipv6pref Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install ipv6pref

How To Uninstall ipv6pref on Kali Linux

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

sudo apt-get remove ipv6pref

Uninstall ipv6pref And Its Dependencies

To uninstall ipv6pref and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ipv6pref

Remove ipv6pref Configurations and Data

To remove ipv6pref configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ipv6pref

Remove ipv6pref configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ipv6pref

Dependencies

ipv6pref have the following dependencies:

References

Summary

In this tutorial we learn how to install ipv6pref package on Kali Linux using different package management tools: apt, apt-get and aptitude.