Skip to content

Instantly share code, notes, and snippets.

@thebongy
Created August 2, 2020 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebongy/60f6b5c6153964701083b249cc99a4a8 to your computer and use it in GitHub Desktop.
Save thebongy/60f6b5c6153964701083b249cc99a4a8 to your computer and use it in GitHub Desktop.
# Add apt sources
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
# Install deps
sudo apt-get install apt-transport-https ca-certificates gnupg
# Import google cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# Update apt package index, install cloud sdk
sudo apt-get update && sudo apt-get install google-cloud-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment