How to install Google Cloud SDK on Ubuntu 20.04

This guide will show you how to download and install Google Cloud SDK on Ubuntu 20.04.

Condition : 

Here are the prerequisites for continuing to install the Google Cloud SDK on Ubuntu 20.04:

  1. You should install Python on your Linux system (Python is installed by default on Ubuntu)
  2. You will be able to download packages over the Internet.

Install Google Cloud SDK on Ubuntu 20.04

To install the Google Cloud SDK on Ubuntu 20.04 via Terminal, you will have to follow the steps mentioned below:

Step 1: Update the package cache

With that said, you'll install the Google Cloud SDK through the Terminal, so launch Terminal by clicking on its icon. The terminal of Ubuntu 20.04 is shown in the following figure:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 1

It is recommended that you do this step before proceeding with the installation so that you do not encounter any problems when installing the Google Cloud SDK. You must update your Ubuntu system with the command below:

sudo apt update

When all the required packages have been updated in the system, the Terminal will display the following output:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 2

Step 2: Download Google Cloud SDK

Now, the first thing you need to do is download the Google Cloud SDK by running the command below in Terminal Ubuntu:

wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-307.0.0-linux-x86_64.tar.gz

Once the Google Cloud SDK has been downloaded successfully, you should be able to see the following output on your Terminal window:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 3

Step 3: Extract the Google Cloud SDK file

Now, you need to extract the Google Cloud SDK file to be downloaded. This can be easily done by running the following command in Terminal Ubuntu:

tar –xvzf google-cloud-sdk-307.0.0-linux-x86_64.tar.gz

Successfully extracting the downloaded file will display the following output in a Terminal window:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 4

Step 4: Install Google Cloud SDK

Now, you need to navigate to the newly downloaded Google Cloud SDK folder by executing cd command in Terminal like so:

cd google-cloud-sdk

Once in the Google Cloud SDK directory, you should be able to verify its path on the Terminal like so:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 5

Finally, you need to install the Google Cloud SDK script using the command below:

./install.sh

During the installation of this command, you will be asked to provide feedback to improve the overall environment of the Google Cloud SDK.

You can provide this feedback by typing 'Y' into Terminal, however, if you want to continue the installation immediately without giving any feedback, type 'N' into Terminal and press the key Enter.

How to install Google Cloud SDK on Ubuntu 20.04 Picture 6

After doing this, you will also be asked if you are sure to continue with the Google Cloud SDK installation. All you have to do is type 'Y' to continue.

You will now be asked to provide a link to include Google Cloud CLIs in your environment. You can choose to continue with the path provided by default or you can provide the path of your choice.

In this example, the post chooses to follow the path provided by default, so just leave that position blank and press the Enter key .

Once Google Cloud SDK has been successfully installed on your Ubuntu system, Terminal will display the following result on it:

How to install Google Cloud SDK on Ubuntu 20.04 Picture 7

By following the steps discussed in this article, users can easily install the Google Cloud SDK on Ubuntu 20.04.

All you need to do is take care of the mentioned conditions and correctly execute all the steps. This entire process will take about 7 to 10 minutes to complete.

3.9 ★ | 7 Vote

May be interested

  • What is the difference between Ubuntu Desktop and Ubuntu Server?What is the difference between Ubuntu Desktop and Ubuntu Server?
    ubuntu is divided into ubuntu cloud, ubuntu core, ubuntu kylin, ubuntu desktop and ubuntu server. in this article, we will explore all the similarities and differences between ubuntu server and ubuntu desktop.
  • How to install Hyper Terminal in Ubuntu 20.04How to install Hyper Terminal in Ubuntu 20.04
    hyper is an open source application supported on all three major platforms: windows, linux, and macos. in this tutorial, tipsmake.com will explain how to install hyper terminal in ubuntu system.
  • What is Google Cloud Shell? What's remarkable about Cloud Shell?What is Google Cloud Shell? What's remarkable about Cloud Shell?
    google cloud shell is an online development and operations environment that you can access anywhere via a web browser. cloud shell is a free service provided by google.
  • How to install Pip in UbuntuHow to install Pip in Ubuntu
    linux has a lot of package managers. ubuntu not only has apt but also many programming languages ​​that come with its own package manager. pip stands for python packages packages and allows you to easily install packages from python package index (pypi).
  • How to install GIMP on Ubuntu 18.04How to install GIMP on Ubuntu 18.04
    currently, gimp version 2.10.18.1 has been released and is available to install on ubuntu, linux, and we all know gimp is one of the famous free, cross-platform, open source photo editing software. first, in this article, thuthuat.taimienphi.vn will guide you how to install gimp on ubuntu 18.04.
  • How to Install CyberPanel on Ubuntu 20.04How to Install CyberPanel on Ubuntu 20.04
    cyberpanel is a control panel designed to be user-friendly for non-technical users. cyberpanel is easy to learn as it uses a simple layout that most hosting companies are familiar with.
  • Instructions for installing Ubuntu on VMware Workstation - Part 2Instructions for installing Ubuntu on VMware Workstation - Part 2
    in the previous section of the article, we jointly established vmware and ubuntu desktop. and the next section below, please continue with the steps to install ubuntu desktop on vmware workstation.
  • 5 things to do when installing Ubuntu on PC5 things to do when installing Ubuntu on PC
    ubuntu is a powerful linux distribution suitable for a wide variety of use cases, ideal for both beginners and seasoned linux users.
  • How to install µTorrent (uTorrent) in Ubuntu 20.04How to install µTorrent (uTorrent) in Ubuntu 20.04
    µtorrent provides clients for windows and macos x, however it is installed as a server in ubuntu linux and provides a web ui for managing downloads.
  • How to Install Ubuntu Linux Without CD (Windows)How to Install Ubuntu Linux Without CD (Windows)
    want to install ubuntu on your windows computer, but don't have a dvd or cd drive? there are a couple of different ways that you can install ubuntu on computers that don't have disc drives. the most common way is to create a bootable usb...