Google cloud SDK is a useful tool that allows you to manage Google cloud resources & services using command line interface. It provides many commands to help you easily access Google cloud from command line and get things done. In this article, we will look at how to install google cloud SDK in Ubuntu.
How to Install Google Cloud SDK in Ubuntu
Here are the steps to install Google Cloud SDK in Ubuntu.
1. Download Google SDK package
Open terminal and run the following commands to download the debian package for Google SDK.
$ sudo wget http://dl.google.com/dl/cloudsdk/channels/rapid/download/google-cloud-sdk-307.0.0-linux-x86_64.tar.gz
Also read : How to Configure UFW Firewall in Linux
2. Extract Google SDK files
Run the following command to extract files from downloaded tar.gz file.
$ tar –xvzf google-cloud-sdk-307.0.0-linux-x86_64.tar.gz
Also read : How to Use NGINX with Flask
3. Install Google SDK
Navigate to the extracted folder.
$ cd google-cloud-sdk
Install google sdk with the following command.
During installation you may see a prompt asking if you want to give feedback about google sdk. Enter Y only if you want to give feedback, else enter N to skip it.
Also read : How to Convert Integer to String in Python
You may also see a prompt asking if you want to allow google SDK to modify $PATH variable for your profile and enable shell completion. Enter Y.
You will be asked to enter new path location for $PATH, or enter blank to use the default values. Press enter key to proceed.
That’s it. You will see the following screen after installation is complete.
As you can see it is very easy to install google sdk. It is advisable to use google sdk since it allows you to manage google cloud services without having to log into their website every time.