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
- Choose where you want to download Google Cloud SDK from:
- 🌐 Download from the Official Website (DEB package)
- 🐧 Download from Snapcraft (Snap package)
- 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
- Open your terminal.
- To install Google Cloud SDK via Snap, use this command:
sudo snap install google-cloud-sdk --classic
- To manually install using the official method, use the following commands:
- Add the Cloud SDK distribution URI as a package source:
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
- Import the Google Cloud public key:
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- Update the package list and install the SDK:
sudo apt update && sudo apt install google-cloud-sdk
- Add the Cloud SDK distribution URI as a package source:
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
- Open your terminal.
- If you installed Google Cloud SDK via Snap, use this command:
sudo snap remove google-cloud-sdk
- If you installed Google Cloud SDK using the DEB package, use this command:
sudo apt remove google-cloud-sdk
- To remove any residual configuration files, run:
rm -rf ~/.config/gcloud