How To Install grub-firmware-qemu on Debian 10

Learn how to install grub-firmware-qemu on Debian 10 with this tutorial. grub-firmware-qemu is GRUB firmware image for QEMU

Introduction

In this tutorial we learn how to install grub-firmware-qemu on Debian 10.

What is grub-firmware-qemu

grub-firmware-qemu is:

This package contains a binary of GRUB that has been built for use as firmware for QEMU. It can be used as a replacement for other PC BIOS images provided by seabios, bochsbios, and so on.

In order to make QEMU use this firmware, simply add `-bios grub.bin’ when invoking it.

This package behaves in the same way as GRUB for coreboot, but doesn’t contain any code from coreboot itself, and is only suitable for QEMU. If you want to install GRUB as firmware on real hardware, you need to use the grub-coreboot package, and manually combine that with coreboot.

There are three methods to install grub-firmware-qemu on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install grub-firmware-qemu Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install grub-firmware-qemu using apt-get by running the following command:

sudo apt-get -y install grub-firmware-qemu

Install grub-firmware-qemu Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install grub-firmware-qemu using apt by running the following command:

sudo apt -y install grub-firmware-qemu

Install grub-firmware-qemu Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install grub-firmware-qemu using aptitude by running the following command:

sudo aptitude -y install grub-firmware-qemu

How To Uninstall grub-firmware-qemu on Debian 10

To uninstall only the grub-firmware-qemu package we can use the following command:

sudo apt-get remove grub-firmware-qemu

Uninstall grub-firmware-qemu And Its Dependencies

To uninstall grub-firmware-qemu and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove grub-firmware-qemu

Remove grub-firmware-qemu Configurations and Data

To remove grub-firmware-qemu configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge grub-firmware-qemu

Remove grub-firmware-qemu configuration, data, and all of its dependencies

We can use the following command to remove grub-firmware-qemu configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge grub-firmware-qemu

Dependencies

grub-firmware-qemu have the following dependencies:

References

Summary

In this tutorial we learn how to install grub-firmware-qemu package on Debian 10 using different package management tools: apt, apt-get and aptitude.