How To Install chromium-chromedriver on Ubuntu 18.04

In this tutorial we learn how to install chromium-chromedriver on Ubuntu 18.04. chromium-chromedriver is WebDriver driver for the Chromium Browser

Introduction

In this tutorial we learn how to install chromium-chromedriver on Ubuntu 18.04.

What is chromium-chromedriver

chromium-chromedriver is:

Chromedriver serves as a bridge between Chromium Browser and Selenium WebDriver.

See https://sites.google.com/a/chromium.org/chromedriver/ for details.

There are three methods to install chromium-chromedriver on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install chromium-chromedriver Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install chromium-chromedriver using apt-get by running the following command:

sudo apt-get -y install chromium-chromedriver

Install chromium-chromedriver Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install chromium-chromedriver using apt by running the following command:

sudo apt -y install chromium-chromedriver

Install chromium-chromedriver Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install chromium-chromedriver using aptitude by running the following command:

sudo aptitude -y install chromium-chromedriver

How To Uninstall chromium-chromedriver on Ubuntu 18.04

To uninstall only the chromium-chromedriver package we can use the following command:

sudo apt-get remove chromium-chromedriver

Uninstall chromium-chromedriver And Its Dependencies

To uninstall chromium-chromedriver and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove chromium-chromedriver

Remove chromium-chromedriver Configurations and Data

To remove chromium-chromedriver configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge chromium-chromedriver

Remove chromium-chromedriver configuration, data, and all of its dependencies

We can use the following command to remove chromium-chromedriver configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge chromium-chromedriver

References

Summary

In this tutorial we learn how to install chromium-chromedriver package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.