How To Install resolvconf-admin on Debian 10

Learn how to install resolvconf-admin on Debian 10 with this tutorial. resolvconf-admin is setuid helper program for setting up the local DNS

Introduction

In this tutorial we learn how to install resolvconf-admin on Debian 10.

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 Debian 10. 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 update

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

sudo apt-get -y install resolvconf-admin

Install resolvconf-admin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install resolvconf-admin

Install resolvconf-admin 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install resolvconf-admin

How To Uninstall resolvconf-admin on Debian 10

To uninstall only the resolvconf-admin package we can use the following command:

sudo apt-get remove resolvconf-admin

Uninstall resolvconf-admin And Its Dependencies

To uninstall resolvconf-admin and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove resolvconf-admin

Remove resolvconf-admin Configurations and Data

To remove resolvconf-admin configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge resolvconf-admin

Remove 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-admin

Dependencies

resolvconf-admin have the following dependencies:

References

Summary

In this tutorial we learn how to install resolvconf-admin package on Debian 10 using different package management tools: apt, apt-get and aptitude.