How to install Google Cloud SDK for Ubuntu

Share
  • Post Updated: September 29, 2024

Hello everyone, you can download Google Cloud SDK for Ubuntu 24.04 and 22.04 to access one of the top cloud services from Google.

Today, we’ll explore why you should give this tool a try. While it’s more of a tool than an app, it’s a fantastic resource for the Linux community. I’ve been using Google Cloud for over two years, primarily for testing projects before deploying them online.

The command-line interface makes it easy to manage services quickly, and it seamlessly integrates with various Google Cloud APIs, from Google Maps to Machine Learning. Although there’s a price after the free trial, it’s worth it if you’re planning to utilize Google’s cloud services. Let me know in the comments if you decide to give it a try.

How to Install Google Cloud SDK on Ubuntu

  1. Choose where you want to download Google Cloud SDK from:
  2. Once downloaded, follow the installation instructions for your chosen format. After installation, launch Google Cloud SDK from your terminal.

How to Install Google Cloud SDK via Terminal

  1. Open your terminal.
  2. To install Google Cloud SDK via Snap, use this command:
    sudo snap install google-cloud-sdk --classic
  3. To manually install using the official method, use the following commands:

Google Cloud icon

What is Google Cloud SDK?

Google Cloud SDK (Software Development Kit) is a set of tools that allows you to manage and interact with various Google Cloud services directly from your command line. It includes essential utilities like the gcloud CLI, gsutil for Google Cloud Storage, and bq for BigQuery, helping developers manage resources, deploy applications, and perform administrative tasks on Google Cloud Platform (GCP).

Features:

  • Command-Line Interface: The gcloud command-line tool lets you manage various services like Compute Engine, Kubernetes, and App Engine directly from your terminal.
  • Resource Management: Create, modify, and manage cloud resources such as virtual machines, storage buckets, and databases.
  • API Integration: Automatically integrates with multiple Google Cloud APIs, including Compute Engine, Cloud SQL, Cloud Storage, BigQuery, and more.
  • Secure Authentication: Comes with built-in authentication methods to securely interact with your Google Cloud projects.
  • Development and Testing: Allows you to develop, test, and deploy applications quickly. Use emulators like the Cloud Datastore emulator for local testing.
  • Deployment: Deploy applications directly to App Engine, Kubernetes Engine, and Compute Engine using command-line commands.
  • Cloud Storage Management: Use gsutil for managing and transferring data between local systems and Google Cloud Storage.
  • BigQuery Support: With bq commands, manage BigQuery data sets, tables, and perform queries from the terminal.
  • Version Control: Supports different versions of APIs and services, allowing you to work with the right versions as needed.
  • Cross-Platform: Available for Linux, macOS, and Windows, providing flexibility to manage cloud services across different operating systems.

Google Cloud SDK Video

How to uninstall Google Cloud SDK from Ubuntu

  1. Open your terminal.
  2. If you installed Google Cloud SDK via Snap, use this command:
    sudo snap remove google-cloud-sdk
  3. If you installed Google Cloud SDK using the DEB package, use this command:
    sudo apt remove google-cloud-sdk
  4. To remove any residual configuration files, run:
    rm -rf ~/.config/gcloud