In this tutorial, we explain how to install Google Chrome on Linux Ubuntu by using the Linux command line. The motivation for installing Chrome by using the command line is to learn how to write a script that will automatically install Chrome. The YouTube tutorial is given below.
The first step is to install wget and to double check that wget is installed properly.
sudo apt update && sudo apt upgrade
sudo apt install wget
wget --version
The next step is to download and install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
Finally, let us verify that everything went OK and possibly to fix errors
sudo apt-get install -f
Once Google Chrome is installed you can run it by typing the command line
google-chrome
This will start Google Chrome.