How To Install dhcpcd-base on Debian 12
Introduction
In this tutorial we learn how to install dhcpcd-base
on Debian 12.
What is dhcpcd-base
dhcpcd-base is:
dhcpcd provides seamless IPv4 and IPv6 auto-configuration:
- DHCPv4 client
- DHCPv6 client with Prefix Delegation (PD) support
- IPv4 LL support (ZeroConf)
- IPv6 SLAAC support
- ARP address conflict resolution
- ARP ping profiles
- Wireless SSID profiles
This package provides the binaries, exit hooks and manual pages.
It offers a dual-stack substitute for ISC DHCP Client (dhclient) on systems where interfaces are configured by ifupdown via </etc/network/interfaces> using the DHCP method.
The init.d script and systemd service required for systems without ifupdown are packaged separately as dhcpcd.
Since Debian 12 (Bookworm), dhcpcd uses Predictable Network Interface Names on Linux ports. See NEWS.Debian for more details.
There are three methods to install dhcpcd-base
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dhcpcd-base Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dhcpcd-base
using apt-get
by running the following command:
sudo apt-get -y install dhcpcd-base
Install dhcpcd-base Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dhcpcd-base
using apt
by running the following command:
sudo apt -y install dhcpcd-base
Install dhcpcd-base 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 dhcpcd-base
using aptitude
by running the following command:
sudo aptitude -y install dhcpcd-base
How To Uninstall dhcpcd-base on Debian 12
To uninstall only the dhcpcd-base
package we can use the following command:
sudo apt-get remove dhcpcd-base
Uninstall dhcpcd-base And Its Dependencies
To uninstall dhcpcd-base
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove dhcpcd-base
Remove dhcpcd-base Configurations and Data
To remove dhcpcd-base
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge dhcpcd-base
Remove dhcpcd-base configuration, data, and all of its dependencies
We can use the following command to remove dhcpcd-base
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dhcpcd-base
Dependencies
dhcpcd-base have the following dependencies:
References
Summary
In this tutorial we learn how to install dhcpcd-base
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.