How To Install dracut-network.x86_64 on Amazon Linux 2

In this tutorial we learn how to install dracut-network.x86_64 in Amazon Linux 2. dracut-network.x86_64 is dracut modules to build a dracut initramfs with network support

Introduction

In this tutorial we learn how to install dracut-network.x86_64 on Amazon Linux 2.

What is dracut-network.x86_64

This package requires everything which is needed to build a generic all purpose initramfs with network support with dracut.

We can use yum to install dracut-network.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install dracut-network.x86_64.

Install dracut-network.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install dracut-network.x86_64

How To Uninstall dracut-network.x86_64 on Amazon Linux 2

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

sudo yum remove dracut-network.x86_64

dracut-network.x86_64 Package Contents on Amazon Linux 2

/usr/lib/dracut/modules.d/40network
/usr/lib/dracut/modules.d/40network/dhclient-script.sh
/usr/lib/dracut/modules.d/40network/dhclient.conf
/usr/lib/dracut/modules.d/40network/dhcp-root.sh
/usr/lib/dracut/modules.d/40network/ifname-genrules.sh
/usr/lib/dracut/modules.d/40network/ifup.sh
/usr/lib/dracut/modules.d/40network/kill-dhclient.sh
/usr/lib/dracut/modules.d/40network/module-setup.sh
/usr/lib/dracut/modules.d/40network/net-genrules.sh
/usr/lib/dracut/modules.d/40network/net-lib.sh
/usr/lib/dracut/modules.d/40network/netroot.sh
/usr/lib/dracut/modules.d/40network/parse-bond.sh
/usr/lib/dracut/modules.d/40network/parse-bridge.sh
/usr/lib/dracut/modules.d/40network/parse-ibft.sh
/usr/lib/dracut/modules.d/40network/parse-ifname.sh
/usr/lib/dracut/modules.d/40network/parse-ip-opts.sh
/usr/lib/dracut/modules.d/40network/parse-team.sh
/usr/lib/dracut/modules.d/40network/parse-vlan.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/90livenet
/usr/lib/dracut/modules.d/90livenet/fetch-liveupdate.sh
/usr/lib/dracut/modules.d/90livenet/livenetroot.sh
/usr/lib/dracut/modules.d/90livenet/module-setup.sh
/usr/lib/dracut/modules.d/90livenet/parse-livenet.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/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/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/95znet
/usr/lib/dracut/modules.d/95znet/module-setup.sh
/usr/lib/dracut/modules.d/95znet/parse-ccw.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.x86_64 on Amazon Linux 2 using yum.