How To Install linux-gcp on Ubuntu 20.04

In this tutorial we learn how to install linux-gcp on Ubuntu 20.04. linux-gcp is Complete Google Cloud Platform (GCP) Linux kernel and headers Complete Google Cloud Platform (GCP) Linux kernel and headers

Introduction

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

What is linux-gcp

linux-gcp is:

This package will always depend on the latest complete Google Cloud Platform (GCP) Linux kernel and headers.

Package: linux-gcp 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–gcp, kernel-testing–linux-gcp–full–preferred Depends: linux-image-gcp (= 5.4.0.1009.9), linux-headers-gcp (= 5.4.0.1009.9) Filename: pool/main/l/linux-meta-gcp/linux-gcp_5.4.0.1009.9_amd64.deb Size: 1912 MD5sum: 30362fca22a9d01b49ba0f234fc07b28 SHA1: 22e405b4ac4436cd64bf795076eedeb48961d252 SHA256: cc576b842c0cbf71a6e330e78e2fc6f9ad766c0d533de9f66655ddd046d8d936 Description-en: Complete Google Cloud Platform (GCP) Linux kernel and headers This package will always depend on the latest complete Google Cloud Platform (GCP) Linux kernel and headers.

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

sudo apt-get -y install linux-gcp

Install linux-gcp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install linux-gcp

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

sudo aptitude -y install linux-gcp

How To Uninstall linux-gcp on Ubuntu 20.04

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

sudo apt-get remove linux-gcp

Uninstall linux-gcp And Its Dependencies

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

sudo apt-get -y autoremove linux-gcp

Remove linux-gcp Configurations and Data

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

sudo apt-get -y purge linux-gcp

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

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

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

References

Summary

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