Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active March 25, 2017 21:09
Show Gist options
  • Save franciscocpg/d47c81e7aba8e6cfb162d8c2c392cfbc to your computer and use it in GitHub Desktop.
Save franciscocpg/d47c81e7aba8e6cfb162d8c2c392cfbc to your computer and use it in GitHub Desktop.
Google Cloud SDK install
# Reference: https://cloud.google.com/sdk/#deb
# Create an environment variable for the 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 /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 and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk
@franciscocpg
Copy link
Author

For remote install use

bash <(curl -s https://gist.githubusercontent.com/franciscocpg/d47c81e7aba8e6cfb162d8c2c392cfbc/raw/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment