How To Install linux-gke on Ubuntu 20.04

In this tutorial we learn how to install linux-gke on Ubuntu 20.04. linux-gke is Complete Google Container Engine (GKE) Linux kernel and headers Complete Google Container Engine (GKE) Linux kernel and headers

Introduction

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

What is linux-gke

linux-gke is:

This package will always depend on the latest complete Google Container Engine (GKE) Linux kernel and headers.

Package: linux-gke Architecture: amd64 Version: 5.4.0.1009.9 Priority: optional Section: kernel Source: linux-meta-gcp Origin: Ubuntu Maintainer: Ubuntu Kernel Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 12 Provides: kernel-testing–linux-gcp–full–gke Depends: linux-image-gke (= 5.4.0.1009.9), linux-headers-gke (= 5.4.0.1009.9) Filename: pool/main/l/linux-meta-gcp/linux-gke_5.4.0.1009.9_amd64.deb Size: 1908 MD5sum: a4da7b951ad7a31a3f520be85498130e SHA1: 4e9d803883062dcd0168463d16c429fc4f1462f7 SHA256: a04b7bcdcae0b86fa07780aac6aae65990ca207032e545ca440cd78c2e4cd58c Description-en: Complete Google Container Engine (GKE) Linux kernel and headers This package will always depend on the latest complete Google Container Engine (GKE) Linux kernel and headers.

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

sudo apt-get -y install linux-gke

Install linux-gke Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install linux-gke

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

sudo aptitude -y install linux-gke

How To Uninstall linux-gke on Ubuntu 20.04

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

sudo apt-get remove linux-gke

Uninstall linux-gke And Its Dependencies

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

sudo apt-get -y autoremove linux-gke

Remove linux-gke Configurations and Data

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

sudo apt-get -y purge linux-gke

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

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

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

References

Summary

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