Last active
August 29, 2015 14:00
-
-
Save amercier/f62cdf6a6325806f792e to your computer and use it in GitHub Desktop.
bash <(curl -# -L https://gist.github.com/amercier/f62cdf6a6325806f792e/raw)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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