Ways to Install or Uninstall grub-common on Ubuntu 22.04

Updated: October 14, 2022

This package contains common files shared by the distinct flavours of GRUB. It is shared between GRUB Legacy and GRUB 2, although a number of files specific to GRUB 2 are here as long as they do not break GRUB Legacy. I will show you how to install grub-common on Ubuntu 22.04 in this guide.

Prerequisites

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install grub-common on Ubuntu 22.04

Install grub-common Ubuntu 22.04

grub-common is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install grub-common using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install grub-common on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install grub-common Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install grub-common

Install grub-common using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

Then, you can now install grub-common by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install grub-common Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install grub-common

Uninstall grub-common on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just grub-common.

If you installed grub-common using APT or Aptitude, you could uninstall grub-common on Ubuntu by following this step:

sudo apt remove --auto-remove grub-common

You can also execute this command if you want to uninstall grub-common and remove its data and dependencies:

sudo apt autoremove --purge grub-common

Summary

In this tutorial, I showed you ways to install grub-common on Ubuntu 22.04 and some ways to uninstall grub-common too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.