Last active
January 19, 2022 16:17
-
-
Save Alyetama/68888a828b8119ec6f73972065868282 to your computer and use it in GitHub Desktop.
Install latest Chromedriver on Ubuntu
This file contains 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
#!/bin/bash | |
sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add | |
sudo bash -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list" | |
sudo apt update && sudo apt install unzip google-chrome-stable -y | |
LATEST_RELEASE=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE) | |
wget https://chromedriver.storage.googleapis.com/$LATEST_RELEASE/chromedriver_linux64.zip | |
unzip chromedriver_linux64.zip && rm chromedriver_linux64.zip | |
sudo mv chromedriver /usr/bin/chromedriver | |
sudo chmod +x /usr/bin/chromedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment