Google Cloud SDK provides a set of tools that are used to manage resources hosted on Google Cloud Platform (GCP). The Cloud SDK (Software Development Kit) provides gcloud, gsutil, nd bq commands with the ability to access the Google Cloud via the terminal.

Advertisement

You can install the Cloud SDK from the officially provided Debian repository. Cloud SDK is also available as Snap package but don’t includes kubectl.

This tutorial describe you to how to install Google Cloud SDK on Debian 10 Buster Linux system.

Prerequisites

You must have sudo privileged account access to your Debian 10 system with console access.

Login to your system and launch a terminal. Then execute the following commands to install required packages on your system.

sudo apt update 
sudo apt install curl apt-transport-https ca-certificates gnupg 

Install Google Cloud SDK on Debian

Google Cloud SDK is available as Debian package in official Apt repositories as well as Snap package on Snapcraft store. In this tutorial, we will install Google Cloud SDK using Debian package.

Use the below steps to complete Google Cloud SDK installation on your Debian system.

  1. First, import GPG key to your system with the following curl command.
    curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 
    
  2. Next, add a PPA file to your system with referring to the cloud-sdk in Google packages repository.
    echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list 
    
  3. Finally, update the apt cache and install Google Cloud Packages on your Ubuntu system
    sudo apt update  
    sudo apt install google-cloud-sdk 
    
  4. Press ‘y’ and hit enter for any confirmation asked by the installer.

All done. You have successfully install Google Cloud SDK on your Debian 10 Linux system.

Initialize Cloud SDK

After you install Cloud SDK successfully on your system. The next step is to perform initialize the environment with gcloud init command. This authorizes Cloud SDK tools to use your Google account credentials to access Google Cloud and manage it.

sudo gcloud init 

If you are logged in with remote shell access, use gcloud init --console-only to prevent from launching a browser-based authorization.

sudo gcloud init --console-only

Follow the onscreen instructions to initialize environment with authorization of your Google account. For more details read official instructions to initialize Cloud SDK environment.

You can again run gcloud init in future to update Cloud SDK settings or create a new configuration.

Conclusion

This tutorial helped you with step by step instruction to install Google Cloud SDK on Debian 10 Buster Linux system.

Next, you can refer the official documentation of the gcloud command line reference to start working with it.

Share.

1 Comment

Leave A Reply


Exit mobile version