Skip to content

Instantly share code, notes, and snippets.

@cristiancmello
Last active May 22, 2019 12:25
Show Gist options
  • Save cristiancmello/c7f21a0c67918d13ac77419bd3c4ae44 to your computer and use it in GitHub Desktop.
Save cristiancmello/c7f21a0c67918d13ac77419bd3c4ae44 to your computer and use it in GitHub Desktop.
# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
# Update the package list and install the Cloud SDK
sudo apt-get update -y && sudo apt-get install -y google-cloud-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment