Skip to content

Instantly share code, notes, and snippets.

@andrewfinnell
Last active June 18, 2017 18:48
Show Gist options
  • Save andrewfinnell/e600fc4348e1cb3d948b10308199e858 to your computer and use it in GitHub Desktop.
Save andrewfinnell/e600fc4348e1cb3d948b10308199e858 to your computer and use it in GitHub Desktop.
GCloud :: RedHat / CentOS :: Setup
#/bin/sh
# Update YUM with Cloud SDK repo information:
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM
[google-cloud-sdk]
name=Google Cloud SDK
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOM
# The indentation for the 2nd line of <code>gpgkey</code> is important.
# Install the Cloud SDK
yum install google-cloud-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment