Home‎ > ‎Server config‎ > ‎

Google Chrome on Linux

Step 1: Enable Google YUM repository

Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it.

[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Step 2: Installing Chrome Web Browser

First, check whether the latest version available from the Google’s own repository using following yum command.

# yum info google-chrome-stable
Sample Output
Check Google Chrome Package Info
Loading mirror speeds from cached hostfile* base: centos.myfahim.com* epel: ir.mirror.rasanegar.com* extras: centos.myfahim.com* remi-safe: ftp.arnes.si* rpmforge: mirrors.neusoft.edu.cn* updates: centos.myfahim.comadobe-linux-x86_64                                                                                                                                                      3/3google-chrome                                                                                                                                                           3/3Available PackagesName        : google-chrome-stableArch        : x86_64Version     : 58.0.3029.81Release     : 1Size        : 54 MRepo        : google-chromeSummary     : Google ChromeURL         : https://chrome.google.com/License     : Multiple, see https://chrome.google.com/Description : The web browser from Google: : Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

Do you see the highlighted output in the above, that clearly telling that the latest version of chrome is available from repository. So, let’s install it using yum command as shown below, which will automatically install all needed dependencies.

# yum install google-chrome-stable
Sample Output
Install Google Chrome in Linux
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager, versionlockLoading mirror speeds from cached hostfile* base: mirror.fibergrid.in* epel: ftp.riken.jp* extras: mirrors.viethosting.vn* remi-safe: ftp.arnes.si* rpmforge: mirror.team-cymru.org* updates: mirror.fibergrid.inResolving Dependencies--> Running transaction check---> Package google-chrome-stable.x86_64 0:58.0.3029.81-1 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================Package                    Arch                     Version                 Repository                     Size======================================================================================================================================================================Installing:google-chrome-stable      x86_64                  58.0.3029.81-1          google-chrome                    54 MTransaction Summary======================================================================================================================================================================Install  1 PackageTotal download size: 54 MInstalled size: 205 MIs this ok [y/d/N]: y

Update : Sadly, the Google Chrome browser no longer supports the most famous commercial distribution RHEL 6.x and its free clones such as CentOS and Scientific Linux.

Yes, they’ve discontinued support for RHEL 6.X version as of Google Chrome and on other side, latest Firefoxand Opera browsers run successfully on the same platforms.

Luckily, there is a script developed by Richard Lloyd, that automatically download and install latest Google Chrome browser by picking libraries from a more recent released distro and put those libraries in (/opt/google/chrome/lib) directory and then you can able to run Google Chrome on RHEL/CentOS 6.x versions.

# wget http://chrome.richardlloyd.org.uk/install_chrome.sh# chmod u+x install_chrome.sh# ./install_chrome.sh
Sample Output
Richard Lloyd Google Chrome Script
Google Chrome Installer 7.50 on the x86_64 platform(C) Richard K. Lloyd 2016 <rklloyd@gmail.com>*** Creating temporary directory /tmp/chrome_install ...*** Changing working directory to /tmp/chrome_install ...*** Generating a list of out-of-date packages (please wait) ...*** Checking for an update to install_chrome.sh ...*** Downloading version.dat (please wait) ...--2017-04-19 02:11:44--  https://chrome.richardlloyd.org.uk/version.datResolving chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)... 193.110.246.232Connecting to chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)|193.110.246.232|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 5Saving to: ‘version.dat’100%[=====================================================================================================================================================>] 5           --.-K/s   in 0s      2017-04-19 02:11:44 (335 KB/s) - ‘version.dat’ saved [5/5]*** install_chrome.sh is already the latest version (7.50) - continuing ...*** Determining latest Google Chrome version number (please wait) ...*** Downloading chrome_versions.csv (please wait) ...--2017-04-19 02:11:46--  http://omahaproxy.appspot.com/all?os=linux&channel=stableResolving omahaproxy.appspot.com (omahaproxy.appspot.com)... 216.58.220.177, 2404:6800:4009:801::2011Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com)|216.58.220.177|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 318 [text/plain]Saving to: ‘chrome_versions.csv’100%[=====================================================================================================================================================>] 318         --.-K/s   in 0s      2017-04-19 02:11:46 (39.1 MB/s) - ‘chrome_versions.csv’ saved [318/318]*** Latest google-chrome-stable version number is 58.0.3029.81 ...*** Downloading google-chrome-stable_current_x86_64.rpm (please wait) ...--2017-04-19 02:11:46--  https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpmResolving dl.google.com (dl.google.com)... 216.58.199.142, 2404:6800:4009:806::200eConnecting to dl.google.com (dl.google.com)|216.58.199.142|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 43781619 (54M) [application/x-rpm]Saving to: ‘google-chrome-stable_current_x86_64.rpm’100%[=====================================================================================================================================================>] 5,47,81,619 3.40MB/s   in 14s    2017-04-19 02:12:00 (3.42 MB/s) - ‘google-chrome-stable_current_x86_64.rpm’ saved [54781619/54781619]*** Google Chrome 58.0.3029.81 downloaded successfully ...*** Installing Google Chrome 58.0.3029.81 RPM (please wait) ...Preparing...                          ################################# [100%]Updating / installing...1:google-chrome-stable-58.0.3029.81################################# [100%]Redirecting to /bin/systemctl start  atd.service*** Google Chrome 58.0.3029.81 was installed successfully ...*** /opt/google/chrome tree contains 87 files totalling 181 MB ...*** /tmp/chrome_install tree contains 1 files totalling 47 MB ...Google Chrome 58.0.3029.81 was installed successfully.Please run the browser via the 'google-chrome' command as a non-root user.To update Google Chrome, run "yum update google-chrome-stable" orsimply re-run this script with "./install_chrome.sh".To uninstall Google Chrome,run "yum remove google-chrome-stable " or "./install_chrome.sh -u".

Step 3: Starting Chrome Web Browser

Start browser with non-root user.

# google-chrome &