Install Chromedriver on Linux
Option 1: Download from the official page (preferred)
- Visit https://sites.google.com/a/chromium.org/chromedriver/downloads
- Download and extract (e.g. to
- Remember to
sudo chmod +x chromedriver
The geordi gem automates this process. Run
geordi chromedriver-update to install or update chromedriver.
Chromedriver must be available in your path. You can add
~/bin to your path like this:
echo "export PATH=$PATH:$HOME/bin" >> $HOME/.bash_profile
Option 2: Use apt source
apt install chromium-chromedriver
The issue with this method is that after a chrome update, the chromedriver package sometimes lags behind and is not compatible.
Option 3: Install via npm
There's a handy npm package.
sudo npm -g install chromedriver ln -sf /usr/lib/node_modules/chromedriver/lib/chromedriver/chromedriver ~/bin/chromedriver