Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active August 29, 2015 14:00
Show Gist options
  • Save amercier/f62cdf6a6325806f792e to your computer and use it in GitHub Desktop.
Save amercier/f62cdf6a6325806f792e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".----------------------------."
echo "| Google Chrome installation |"
echo "'----------------------------'"
cd \
&& curl -# https://dl-ssl.google.com/linux/linux_signing_key.pub -o linux_signing_key.pub \
&& rpm --import linux_signing_key.pub \
&& rm linux_signing_key.pub \
&& echo "[google-chrome]
name=Google Chrome 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64" >> /etc/yum.repos.d/google-chrome.repo \
&& yum install google-chrome-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment