How to install Google Cloud SDK on Linux

You need to interact directly with Cloud Platform installing Cloud SDK but you don't know how to carry it on yours Linux PC. We at ChimeraRevo we decided to make this guide to help you in just that, that is how to install Google Cloud SDK on Linux without too much difficulty.

Google Cloud SDK: what it is

For the uninitiated, Cloud SDK is a set of command-line tools gcloud, gsutil and bq that allow access from the command-line to Google Compute Engine, Google Cloud Storage, Google BigQuery and other products and services belonging to Cloud Platform. Put simply, you will be able to trade through yours Linux PC making a simple installation.



How to install Google Cloud SDK on Arch Linux

Unfortunately, Google Cloud SDK is not officially available in the Arch Linux, therefore it will be necessary to resort to repo Arch Linux User. Before we find out how, though, we need to install the Git and Base-devel packages. To do this, open the terminal and type the command sudo pacman -S git base-devel.

After you have successfully completed the installation, it is time to download Trizen. Without the latter, the installation of Cloud SDK it would take a long time as you would have to install the dependencies individually. That said, use the command git clone https://aur.archlinux.org/trizen.git to download the latest version of Trizen.

At this point, move to the Trizen folder with cd trizen and then execute the command makepkg -sri to install it on Arch Linux. In conclusion, proceed with the installation of Google Cloud SDK on your computer by taking advantage of trizen -S google-cloud-sdk.



Once everything is configured, you can access the SDK from the terminal with gcloud init.

If you have difficulty installing the AUR version of the tool pack on your computer Linux, we advise you to try the version Snap of the software that is updated and managed directly by Google, so it sure will have very few bugs and issues compared to the unofficial AUR build. Find the steps in the next few lines.

How to install Google Cloud SDK on Linux via Snap

As mentioned earlier, it is possible to proceed with the installation of the toolkit Cloud SDK using the Snap Store. The good news is that Snap packages are fully supported by the most modern Linux distributions on the market such as Ubuntu, Debian, Fedora, OpenSUSE and Arch Linux. That said, before installing Cloud SDK di Google, you need to enable and configure Snapd on your machine. To do this, follow the instructions in our dedicated tutorial.

Once this is done, you can install the tool Google through command sudo snap install google-cloud-sdk –channel=stable –classic for the stable version or sudo snap install google-cloud-sdk –channel=latest –classic for the very latest available. Finally, to access the SDK, use gcloud init.

How to install Google Cloud SDK on Linux

How to install Google Cloud SDK on Linux via Tar

In addition to being available via AUR and Snap, Google Cloud SDK it can be quickly installed on any Linux distro by fetching the tar archive from the page Quickstart for Linux present on the official website of Google Cloud. There are two versions of the kit available: one for systems a 32 bit and one for those a 64 bit. That said, open up the terminal and use the following commands:



64-bit

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-251.0.0-linux-x86_64.tar.gz

32-bit

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-251.0.0-linux-x86.tar.gz

If you are unable to download the file using the commands listed above, you can proceed with the manual download again from the page Quickstart for Linux linked a little while ago. You simply need to click on google-cloud-sdk-251.0.0-linux-x86_64.tar.gz o google-cloud-sdk-251.0.0-linux-x86.tar.gz present under the column Package depending on the supported architecture.


Once this is done, use your file manager computer Linux, go to the download folder and move the downloaded archive to the home directory.

Now, you can proceed with the extraction of the archive contents with the following commands:

tar zxvf google-cloud-sdk-251.0.0-linux-x86_64.tar.gz

o

tar zxvf google-cloud-sdk-251.0.0-linux-x86.tar.gz

Running this command should create a new folder in the home directory called google-cloud-sdk. If there is, use the command cd google-cloud-sdk to move to it and run the installation script with ./google-cloud-sdk/install.sh. At the end of the operation, you can access the SDKs with gcloud init.

Doubts or problems? We help you

If you want to stay up to date, subscribe to our Telegram channel and follow us on Instagram. If you want to receive support for any questions or problems, join our Facebook community.

Other useful articles



add a comment of How to install Google Cloud SDK on Linux
Comment sent successfully! We will review it in the next few hours.