How To Install resolvconf-admin on Kali Linux
Introduction
In this tutorial we learn how to install resolvconf-admin on Kali Linux.
What is resolvconf-admin
resolvconf-admin is:
resolvconf-admin deals with setting the local DNS information, which needs to be done by root on some systems. For example, it should enable a non-privileged DHCP client to add information about DNS resolvers it discovers.
If /sbin/resolvconf is present, it is invoked as root with the recommended data. If it is not present, then /etc/resolv.conf is overwritten with a simple file.
Note: setuid binaries like resolvconf-admin are additional attack surface on your system. If you can use a different approach, such as enabling systemd-resolved, you should probably prefer it.
DO NOT INSTALL THIS PACKAGE (or any other with a setuid binary) IF YOU DO NOT NEED IT!
There are three methods to install resolvconf-admin 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-admin Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install resolvconf-admin using apt-get by running the following command:
sudo apt-get -y install resolvconf-adminInstall resolvconf-admin Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install resolvconf-admin using apt by running the following command:
sudo apt -y install resolvconf-adminInstall resolvconf-admin 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-admin using aptitude by running the following command:
sudo aptitude -y install resolvconf-adminHow To Uninstall resolvconf-admin on Kali Linux
To uninstall only the resolvconf-admin package we can use the following command:
sudo apt-get remove resolvconf-adminUninstall resolvconf-admin And Its Dependencies
To uninstall resolvconf-admin and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove resolvconf-adminRemove resolvconf-admin Configurations and Data
To remove resolvconf-admin configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge resolvconf-adminRemove resolvconf-admin configuration, data, and all of its dependencies
We can use the following command to remove resolvconf-admin configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge resolvconf-adminDependencies
resolvconf-admin have the following dependencies:
References
Summary
In this tutorial we learn how to install resolvconf-admin package on Kali Linux using different package management tools: apt, apt-get and aptitude.