How To Install linux-image-extra-virtual on Ubuntu 20.04

In this tutorial we learn how to install linux-image-extra-virtual on Ubuntu 20.04. linux-image-extra-virtual is Extra drivers for Virtual Linux kernel image Extra drivers for Virtual Linux kernel image

Introduction

In this tutorial we learn how to install linux-image-extra-virtual on Ubuntu 20.04.

What is linux-image-extra-virtual

linux-image-extra-virtual is:

This package will always depend on linux-image-generic.

Package: linux-image-extra-virtual Architecture: amd64 Version: 5.4.0.26.32 Priority: optional Section: kernel Source: linux-meta Origin: Ubuntu Maintainer: Ubuntu Kernel Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 17 Provides: kernel-testing–linux–modules-extra–virtual Depends: linux-image-generic (= 5.4.0.26.32) Filename: pool/main/l/linux-meta/linux-image-extra-virtual_5.4.0.26.32_amd64.deb Size: 1888 MD5sum: de74c15f235e8b63379aa9433aab7aaf SHA1: 0006c1cbfa0ff2db1dab14e514ab04804d2437cc SHA256: 415501ae131441be2e625e2048bfa57df24c8ebfcc3fa7a90bd5b9e0cac31907 Description-en: Extra drivers for Virtual Linux kernel image This package will always depend on linux-image-generic.

There are three methods to install linux-image-extra-virtual on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install linux-image-extra-virtual Using apt-get

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

sudo apt-get update

After updating apt database, We can install linux-image-extra-virtual using apt-get by running the following command:

sudo apt-get -y install linux-image-extra-virtual

Install linux-image-extra-virtual Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install linux-image-extra-virtual using apt by running the following command:

sudo apt -y install linux-image-extra-virtual

Install linux-image-extra-virtual 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install linux-image-extra-virtual using aptitude by running the following command:

sudo aptitude -y install linux-image-extra-virtual

How To Uninstall linux-image-extra-virtual on Ubuntu 20.04

To uninstall only the linux-image-extra-virtual package we can use the following command:

sudo apt-get remove linux-image-extra-virtual

Uninstall linux-image-extra-virtual And Its Dependencies

To uninstall linux-image-extra-virtual and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove linux-image-extra-virtual

Remove linux-image-extra-virtual Configurations and Data

To remove linux-image-extra-virtual configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge linux-image-extra-virtual

Remove linux-image-extra-virtual configuration, data, and all of its dependencies

We can use the following command to remove linux-image-extra-virtual configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge linux-image-extra-virtual

References

Summary

In this tutorial we learn how to install linux-image-extra-virtual package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.