How To Install linux-generic on Ubuntu 20.04

In this tutorial we learn how to install linux-generic on Ubuntu 20.04. linux-generic is Complete Generic Linux kernel and headers Complete Generic Linux kernel and headers

Introduction

In this tutorial we learn how to install linux-generic on Ubuntu 20.04.

What is linux-generic

linux-generic is:

This package will always depend on the latest complete generic Linux kernel and headers.

Package: linux-generic 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–full–generic, kernel-testing–linux–full–preferred Depends: linux-image-generic (= 5.4.0.26.32), linux-headers-generic (= 5.4.0.26.32) Filename: pool/main/l/linux-meta/linux-generic_5.4.0.26.32_amd64.deb Size: 1900 MD5sum: af171780261b9e09d5a29f5c9a16b18f SHA1: 0b6f3e004ae6217bfc731e3b263a6cb44089b99a SHA256: f257d939d4e9ad2be518bd7748de3a2f9a139f7901c9ad717456c139dc01ea43 Description-en: Complete Generic Linux kernel and headers This package will always depend on the latest complete generic Linux kernel and headers.

There are three methods to install linux-generic 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-generic 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-generic using apt-get by running the following command:

sudo apt-get -y install linux-generic

Install linux-generic Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install linux-generic

Install linux-generic 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-generic using aptitude by running the following command:

sudo aptitude -y install linux-generic

How To Uninstall linux-generic on Ubuntu 20.04

To uninstall only the linux-generic package we can use the following command:

sudo apt-get remove linux-generic

Uninstall linux-generic And Its Dependencies

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

sudo apt-get -y autoremove linux-generic

Remove linux-generic Configurations and Data

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

sudo apt-get -y purge linux-generic

Remove linux-generic configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge linux-generic

References

Summary

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