How To Install resolvconf on Kali Linux
Introduction
In this tutorial we learn how to install resolvconf on Kali Linux.
What is resolvconf
resolvconf is:
Resolvconf is a framework for keeping up to date the system’s information about name servers. It sets itself up as the intermediary between programs that supply this information (such as ifup and ifdown, DHCP clients, the PPP daemon and local name servers) and programs that use this information (such as DNS caches and resolver libraries).
This package may require some manual configuration. Please read the README file for detailed instructions.
There are three methods to install resolvconf 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 resolvconf Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install resolvconf using apt-get by running the following command:
sudo apt-get -y install resolvconfInstall resolvconf Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install resolvconf using apt by running the following command:
sudo apt -y install resolvconfInstall resolvconf 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 updateAfter updating apt database, We can install resolvconf using aptitude by running the following command:
sudo aptitude -y install resolvconfHow To Uninstall resolvconf on Kali Linux
To uninstall only the resolvconf package we can use the following command:
sudo apt-get remove resolvconfUninstall resolvconf And Its Dependencies
To uninstall resolvconf and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove resolvconfRemove resolvconf Configurations and Data
To remove resolvconf configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge resolvconfRemove resolvconf configuration, data, and all of its dependencies
We can use the following command to remove resolvconf configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge resolvconfDependencies
resolvconf have the following dependencies:
References
Summary
In this tutorial we learn how to install resolvconf package on Kali Linux using different package management tools: apt, apt-get and aptitude.