How To Install dhcpcd on Fedora 36

In this tutorial we learn how to install dhcpcd in Fedora 36. dhcpcd is A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support

Introduction

In this tutorial we learn how to install dhcpcd on Fedora 36.

What is dhcpcd

The dhcpcd package provides a minimalistic network configuration daemon that supports IPv4 and IPv6 configuration including configuration discovery through NDP, DHCPv4 and DHCPv6 protocols.

We can use yum or dnf to install dhcpcd on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install dhcpcd.

Install dhcpcd on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install dhcpcd using dnf by running the following command:

sudo dnf -y install dhcpcd

Install dhcpcd on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dhcpcd using yum by running the following command:

sudo yum -y install dhcpcd

How To Uninstall dhcpcd on Fedora 36

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

sudo dnf remove dhcpcd

dhcpcd Package Contents on Fedora 36

/etc/dhcpcd.conf
/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/e0b5c89e5527a68b6e7a9c1b252783aea01d82
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/ff29b07dfa6870981d935b332412836ea5315d
/usr/lib/systemd/system/dhcpcd.service
/usr/lib/systemd/system/[email protected]
/usr/lib64/dhcpcd
/usr/lib64/dhcpcd/dev
/usr/lib64/dhcpcd/dev/udev.so
/usr/libexec/dhcpcd-hooks
/usr/libexec/dhcpcd-hooks/01-test
/usr/libexec/dhcpcd-hooks/20-resolv.conf
/usr/libexec/dhcpcd-hooks/30-hostname
/usr/libexec/dhcpcd-hooks/50-ntp.conf
/usr/libexec/dhcpcd-run-hooks
/usr/sbin/dhcpcd
/usr/share/dhcpcd/hooks/10-wpa_supplicant
/usr/share/dhcpcd/hooks/15-timezone
/usr/share/dhcpcd/hooks/29-lookup-hostname
/usr/share/dhcpcd/hooks/50-yp.conf
/usr/share/man/man5/dhcpcd.conf.5.gz
/usr/share/man/man8/dhcpcd-run-hooks.8.gz
/usr/share/man/man8/dhcpcd.8.gz
/var/lib/dhcpcd

References

Summary

In this tutorial we learn how to install dhcpcd on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).