问题
I want to update Chromedriver to the latest version.
How can I do this on the command line?
回答1:
Download chromedriver from https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
Unzip it and put it in location /usr/bin/chromedriver and change its permission to 755 using chmod.
回答2:
This will download the latest version, and install it to the correct location, with the correct permissions.
version=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget -qP "/tmp/" "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
sudo unzip -o /tmp/chromedriver_linux64.zip -d /usr/bin
The permissions should be 755 by default, but if they aren't, you can run:
sudo chmod 755 /usr/bin/chromedriver
If you want a specific version, see the index page, or the website.
回答3:
$ wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ sudo mv chromedriver /usr/bin/chromedriver
$ sudo chown root:root /usr/bin/chromedriver
$ sudo chmod +x /usr/bin/chromedriver
来源:https://stackoverflow.com/questions/48649230/how-to-update-chromedriver-on-ubuntu