How To Install grub2-tools.x86_64 on Amazon Linux 2

In this tutorial we learn how to install grub2-tools.x86_64 in Amazon Linux 2. grub2-tools.x86_64 is Support tools for GRUB.

Introduction

In this tutorial we learn how to install grub2-tools.x86_64 on Amazon Linux 2.

What is grub2-tools.x86_64

The GRand Unified Bootloader (GRUB) is a highly configurable and customizable bootloader with modular architecture. It supports a rich variety of kernel formats, file systems, computer architectures and hardware devices. This subpackage provides tools for support of all platforms.

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

Install grub2-tools.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 grub2-tools.x86_64 using yum by running the following command:

sudo yum -y install grub2-tools.x86_64

How To Uninstall grub2-tools.x86_64 on Amazon Linux 2

To uninstall only the grub2-tools.x86_64 package we can use the following command:

sudo yum remove grub2-tools.x86_64

grub2-tools.x86_64 Package Contents on Amazon Linux 2

/etc/default/grub
/etc/grub.d/00_header
/etc/grub.d/01_users
/etc/grub.d/08_fallback_counting
/etc/grub.d/10_linux
/etc/grub.d/10_reset_boot_success
/etc/grub.d/12_menu_auto_hide
/etc/grub.d/14_menu_show_once
/etc/grub.d/20_linux_xen
/etc/grub.d/20_ppc_terminfo
/etc/grub.d/40_custom
/etc/grub.d/41_custom
/etc/grub.d/README
/usr/bin/grub2-amazon-setup
/usr/bin/grub2-file
/usr/bin/grub2-menulst2cfg
/usr/bin/grub2-mkimage
/usr/bin/grub2-mkrelpath
/usr/bin/grub2-script-check
/usr/lib/systemd/system/grub-boot-indeterminate.service
/usr/lib/systemd/system/grub2-systemd-integration.service
/usr/lib/systemd/system/reboot.target.wants
/usr/lib/systemd/system/reboot.target.wants/grub2-systemd-integration.service
/usr/lib/systemd/system/system-update.target.wants
/usr/lib/systemd/system/system-update.target.wants/grub-boot-indeterminate.service
/usr/lib/systemd/system/systemd-logind.service.d
/usr/lib/systemd/system/systemd-logind.service.d/10-grub2-logind-service.conf
/usr/lib/systemd/user/grub-boot-success.service
/usr/lib/systemd/user/grub-boot-success.timer
/usr/lib/systemd/user/timers.target.wants
/usr/lib/systemd/user/timers.target.wants/grub-boot-success.timer
/usr/libexec/grub2
/usr/libexec/grub2/systemd-integration.sh
/usr/sbin/grub2-bios-setup
/usr/sbin/grub2-install
/usr/sbin/grub2-mkconfig
/usr/sbin/grub2-reboot
/usr/sbin/grub2-rpm-sort
/usr/share/bash-completion/completions/grub
/usr/share/grub/ascii.pf2
/usr/share/grub/euro.pf2
/usr/share/grub/grub-mkconfig_lib
/usr/share/grub/unicode.pf2
/usr/share/info/grub2-dev.info.gz
/usr/share/info/grub2.info.gz
/usr/share/man/man1/grub2-emu.1.gz
/usr/share/man/man1/grub2-file.1.gz
/usr/share/man/man1/grub2-menulst2cfg.1.gz
/usr/share/man/man1/grub2-mkimage.1.gz
/usr/share/man/man1/grub2-mkrelpath.1.gz
/usr/share/man/man1/grub2-mount.1.gz
/usr/share/man/man1/grub2-script-check.1.gz
/usr/share/man/man1/grub2-set-bootflag.1.gz
/usr/share/man/man8/grub2-bios-setup.8.gz
/usr/share/man/man8/grub2-install.8.gz
/usr/share/man/man8/grub2-mkconfig.8.gz
/usr/share/man/man8/grub2-probe.8.gz
/usr/share/man/man8/grub2-reboot.8.gz
/usr/share/man/man8/grub2-rpm-sort.8.gz

References

Summary

In this tutorial we learn how to install grub2-tools.x86_64 on Amazon Linux 2 using yum.