How To Install linux-image-kvm on Ubuntu 20.04
Introduction
In this tutorial we learn how to install linux-image-kvm on Ubuntu 20.04.
What is linux-image-kvm
linux-image-kvm is:
This package will always depend on the latest kernel image available for virtual systems.
Package: linux-image-kvm Architecture: amd64 Version: 5.4.0.1009.9 Priority: optional Section: metapackages Source: linux-meta-kvm Origin: Ubuntu Maintainer: Ubuntu Kernel Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 11 Provides: virtualbox-guest-modules (= 6.1.4-dfsg-2), zfs-modules (= 0.8.3-1ubuntu11) Depends: linux-image-5.4.0-1009-kvm Filename: pool/main/l/linux-meta-kvm/linux-image-kvm_5.4.0.1009.9_amd64.deb Size: 2724 MD5sum: 2016723e91810707d26a0495c99c86f9 SHA1: 9d150e50b480e436ac01f1d731c964eabaf95635 SHA256: 6784c6793da8e95ad7fda1e7d67214569de12a91648403d588a040c41e3bf234 Description-en: Linux kernel image for virtual systems. This package will always depend on the latest kernel image available for virtual systems.
There are three methods to install linux-image-kvm 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-kvm 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-kvm using apt-get by running the following command:
sudo apt-get -y install linux-image-kvm
Install linux-image-kvm Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install linux-image-kvm using apt by running the following command:
sudo apt -y install linux-image-kvm
Install linux-image-kvm 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-kvm using aptitude by running the following command:
sudo aptitude -y install linux-image-kvm
How To Uninstall linux-image-kvm on Ubuntu 20.04
To uninstall only the linux-image-kvm package we can use the following command:
sudo apt-get remove linux-image-kvm
Uninstall linux-image-kvm And Its Dependencies
To uninstall linux-image-kvm 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-kvm
Remove linux-image-kvm Configurations and Data
To remove linux-image-kvm configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge linux-image-kvm
Remove linux-image-kvm configuration, data, and all of its dependencies
We can use the following command to remove linux-image-kvm configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge linux-image-kvm
References
Summary
In this tutorial we learn how to install linux-image-kvm package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.