Skip to content

Instantly share code, notes, and snippets.

@devisnotnull
Created April 8, 2019 11:32
Show Gist options
  • Save devisnotnull/cbf8290ee8c7775173b187dfe7b317d6 to your computer and use it in GitHub Desktop.
Save devisnotnull/cbf8290ee8c7775173b187dfe7b317d6 to your computer and use it in GitHub Desktop.
REHL/CentOS install chrome driver binary
#!/bin/sh
yum update -y
yum install -y wget unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install -y ./google-chrome-stable_current_*.rpm
curl https://chromedriver.storage.googleapis.com/73.0.3683.20/chromedriver_linux64.zip > ~/chromedriver.zip
unzip -o ~/chromedriver.zip -d /usr/local/bin/chromedriver
rm ~/chromedriver.zip
chown root:root /usr/local/bin/chromedriver
chmod 0755 /usr/local/bin/chromedriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment