How To Install dhcpcd on Fedora 34
Introduction
In this tutorial we learn how to install dhcpcd
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install dhcpcd.
Install dhcpcd on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install dhcpcd
using dnf
by running the following command:
sudo dnf -y install dhcpcd
Install dhcpcd on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the dhcpcd
package we can use the following command:
sudo dnf remove dhcpcd
dhcpcd Package Contents on Fedora 34
/etc/dhcpcd.conf
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/4211e175dc448acff112c1218b2a667f0f35ef
/usr/lib/.build-id/23
/usr/lib/.build-id/23/8122fcc7ef4830da5d938cf6cd9d87628e2d0b
/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 34 using yum and dnf.