How To Install udhcpc on Ubuntu 20.04

In this tutorial we learn how to install udhcpc on Ubuntu 20.04. udhcpc is Provides the busybox DHCP client implementation Provides the busybox DHCP client implementation Provides the busybox DHCP client implementation

Introduction

In this tutorial we learn how to install udhcpc on Ubuntu 20.04.

What is udhcpc

udhcpc is:

Busybox contains a very small yet fully functional RFC compliant DHCP client formerly known as udhcpc.

This package contains the glue to use the busybox udhcpc as DHCP client in the system by providing the appropriate symbolic links and scripts.

Package: udhcpc Architecture: amd64 Version: 1:1.30.1-4ubuntu6.2 Priority: optional Section: universe/net Source: busybox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Install System Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 49 Depends: busybox (» 1:1.30.1) | busybox-static (» 1:1.30.1) Filename: pool/universe/b/busybox/udhcpc_1.30.1-4ubuntu6.2_amd64.deb Size: 2944 MD5sum: 65c2b0e6e155333c77d33dcfab7ba2d7 SHA1: 96644c277174bde8e5293f12ed98b1e246fc96b0 SHA256: cde39710e61016bfa7861b079d9b36469977cab824e606f2179be75fe216dcc1 SHA512: d9b67c32581cef062fd9583a5fba43215fb248ba70ed3dbfb5a7732cb36dbebbea97eb9fcf40f0d37d9288b6e9aee28916a72b85728d8868cd8b84693eb96660 Homepage: http://www.busybox.net Description-en: Provides the busybox DHCP client implementation Busybox contains a very small yet fully functional RFC compliant DHCP client formerly known as udhcpc.

This package contains the glue to use the busybox udhcpc as DHCP client in the system by providing the appropriate symbolic links and scripts.

Package: udhcpc Architecture: amd64 Version: 1:1.30.1-4ubuntu6 Priority: optional Section: universe/net Source: busybox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Install System Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 49 Depends: busybox (» 1:1.30.1) | busybox-static (» 1:1.30.1) Filename: pool/universe/b/busybox/udhcpc_1.30.1-4ubuntu6_amd64.deb Size: 2944 MD5sum: 2b862d03b438091e011bf3124dde9a83 SHA1: d8fb31fb56cea9210c6dce2187ca71593ad3c12f SHA256: 8411011f41a86d3d777480f1edc3057579020c17886b21808226203385f187f4 Homepage: http://www.busybox.net Description-en: Provides the busybox DHCP client implementation Busybox contains a very small yet fully functional RFC compliant DHCP client formerly known as udhcpc.

This package contains the glue to use the busybox udhcpc as DHCP client in the system by providing the appropriate symbolic links and scripts.

There are three methods to install udhcpc on Ubuntu 20.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 udhcpc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install udhcpc

Install udhcpc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install udhcpc

Install udhcpc 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 udhcpc using aptitude by running the following command:

sudo aptitude -y install udhcpc

How To Uninstall udhcpc on Ubuntu 20.04

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

sudo apt-get remove udhcpc

Uninstall udhcpc And Its Dependencies

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

sudo apt-get -y autoremove udhcpc

Remove udhcpc Configurations and Data

To remove udhcpc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge udhcpc

Remove udhcpc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge udhcpc

References

Summary

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