How To Install dracut-network on CentOS 8

dracut-network is dracut modules to build a dracut initramfs with network support dracut modules to build a dracut initramfs with network support

Introduction

In this tutorial we learn how to install dracut-network on CentOS 8.

What is dracut-network

This package requires everything which is needed to build a generic all purpose initramfs with network support with dracut. dracut-network 049 135.git20210121.el8 x86_64 105 k dracut-049-135.git20210121.el8.src.rpm baseos dracut modules to build a dracut initramfs with network support https GPLv2+ and LGPLv2+ This package requires everything which is needed to build a generic all purpose initramfs with network support with dracut.

We can use yum or dnf to install dracut-network on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dracut-network.

Install dracut-network on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install dracut-network

Install dracut-network on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install dracut-network using yum by running the following command:

sudo yum -y install dracut-network

How To Uninstall dracut-network on CentOS 8

To uninstall only the dracut-network package we can use the following command:

sudo dnf remove dracut-network

dracut-network Package Contents on CentOS 8

/usr/lib/dracut/modules.d/02systemd-networkd
/usr/lib/dracut/modules.d/02systemd-networkd/module-setup.sh
/usr/lib/dracut/modules.d/35network-legacy
/usr/lib/dracut/modules.d/35network-legacy/dhclient-script.sh
/usr/lib/dracut/modules.d/35network-legacy/dhclient.conf
/usr/lib/dracut/modules.d/35network-legacy/ifup.sh
/usr/lib/dracut/modules.d/35network-legacy/kill-dhclient.sh
/usr/lib/dracut/modules.d/35network-legacy/module-setup.sh
/usr/lib/dracut/modules.d/35network-legacy/net-genrules.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-bond.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-bridge.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-ibft.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-ifname.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-ip-opts.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-team.sh
/usr/lib/dracut/modules.d/35network-legacy/parse-vlan.sh
/usr/lib/dracut/modules.d/35network-manager
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh
/usr/lib/dracut/modules.d/35network-manager/nm-config.sh
/usr/lib/dracut/modules.d/35network-manager/nm-lib.sh
/usr/lib/dracut/modules.d/35network-manager/nm-run.sh
/usr/lib/dracut/modules.d/40network
/usr/lib/dracut/modules.d/40network/dhcp-root.sh
/usr/lib/dracut/modules.d/40network/ifname-genrules.sh
/usr/lib/dracut/modules.d/40network/module-setup.sh
/usr/lib/dracut/modules.d/40network/net-lib.sh
/usr/lib/dracut/modules.d/40network/netroot.sh
/usr/lib/dracut/modules.d/45ifcfg
/usr/lib/dracut/modules.d/45ifcfg/module-setup.sh
/usr/lib/dracut/modules.d/45ifcfg/write-ifcfg.sh
/usr/lib/dracut/modules.d/90kernel-network-modules
/usr/lib/dracut/modules.d/90kernel-network-modules/module-setup.sh
/usr/lib/dracut/modules.d/90qemu-net
/usr/lib/dracut/modules.d/90qemu-net/module-setup.sh
/usr/lib/dracut/modules.d/95cifs
/usr/lib/dracut/modules.d/95cifs/cifs-lib.sh
/usr/lib/dracut/modules.d/95cifs/cifsroot.sh
/usr/lib/dracut/modules.d/95cifs/module-setup.sh
/usr/lib/dracut/modules.d/95cifs/parse-cifsroot.sh
/usr/lib/dracut/modules.d/95fcoe
/usr/lib/dracut/modules.d/95fcoe-uefi
/usr/lib/dracut/modules.d/95fcoe-uefi/module-setup.sh
/usr/lib/dracut/modules.d/95fcoe-uefi/parse-uefifcoe.sh
/usr/lib/dracut/modules.d/95fcoe/cleanup-fcoe.sh
/usr/lib/dracut/modules.d/95fcoe/fcoe-edd.sh
/usr/lib/dracut/modules.d/95fcoe/fcoe-genrules.sh
/usr/lib/dracut/modules.d/95fcoe/fcoe-up.sh
/usr/lib/dracut/modules.d/95fcoe/lldpad.sh
/usr/lib/dracut/modules.d/95fcoe/module-setup.sh
/usr/lib/dracut/modules.d/95fcoe/parse-fcoe.sh
/usr/lib/dracut/modules.d/95fcoe/stop-fcoe.sh
/usr/lib/dracut/modules.d/95iscsi
/usr/lib/dracut/modules.d/95iscsi/cleanup-iscsi.sh
/usr/lib/dracut/modules.d/95iscsi/iscsiroot.sh
/usr/lib/dracut/modules.d/95iscsi/module-setup.sh
/usr/lib/dracut/modules.d/95iscsi/mount-lun.sh
/usr/lib/dracut/modules.d/95iscsi/parse-iscsiroot.sh
/usr/lib/dracut/modules.d/95nbd
/usr/lib/dracut/modules.d/95nbd/module-setup.sh
/usr/lib/dracut/modules.d/95nbd/nbd-generator.sh
/usr/lib/dracut/modules.d/95nbd/nbdroot.sh
/usr/lib/dracut/modules.d/95nbd/parse-nbdroot.sh
/usr/lib/dracut/modules.d/95nfs
/usr/lib/dracut/modules.d/95nfs/module-setup.sh
/usr/lib/dracut/modules.d/95nfs/nfs-lib.sh
/usr/lib/dracut/modules.d/95nfs/nfs-start-rpc.sh
/usr/lib/dracut/modules.d/95nfs/nfsroot-cleanup.sh
/usr/lib/dracut/modules.d/95nfs/nfsroot.sh
/usr/lib/dracut/modules.d/95nfs/parse-nfsroot.sh
/usr/lib/dracut/modules.d/95ssh-client
/usr/lib/dracut/modules.d/95ssh-client/module-setup.sh
/usr/lib/dracut/modules.d/99uefi-lib
/usr/lib/dracut/modules.d/99uefi-lib/module-setup.sh
/usr/lib/dracut/modules.d/99uefi-lib/uefi-lib.sh

References

Summary

In this tutorial we learn how to install dracut-network on CentOS 8 using yum and dnf.