Thursday 4 August 2016

Install Chromium Browser on CentOS 6.7 / Red Hat (RHEL) 6.7

Install Chromium Browser on CentOS 6.7 / Red Hat (RHEL) 6.7

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 Firefox and 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.21 on the x86_64 platform
(C) Richard K. Lloyd 2015 
*** /tmp/chrome_install tree contains 1 files totalling 33 MB ...

*** Changing working directory to /tmp/chrome_install ...
*** Checking for an update to install_chrome.sh ...

*** Downloading version.dat (please wait) ...

--2015-10-21 02:13:24--  http://chrome.richardlloyd.org.uk/version.dat
Resolving chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)... 193.110.246.53
Connecting to chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)|193.110.246.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5 [text/plain]
Saving to: ‘version.dat’

100%[====================================================================================================================================================>] 5           --.-K/s   in 0s      

2015-10-21 02:13:24 (297 KB/s) - ‘version.dat’ saved [5/5]

*** install_chrome.sh is already the latest version (7.21) - continuing ...
*** Determining latest Google Chrome version number (please wait) ...

*** Downloading chrome_versions.csv (please wait) ...

--2015-10-21 02:13:25--  http://omahaproxy.appspot.com/all?os=linux&channel=stable
Resolving omahaproxy.appspot.com (omahaproxy.appspot.com)... 74.125.200.141, 2404:6800:4003:c00::8d
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com)|74.125.200.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 347 [text/plain]
Saving to: ‘chrome_versions.csv’

100%[====================================================================================================================================================>] 347         --.-K/s   in 0s      

2015-10-21 02:13:25 (17.0 MB/s) - ‘chrome_versions.csv’ saved [347/347]

*** Latest google-chrome-stable version number is 46.0.2490.71 ...

*** Downloading google-chrome-stable_current_x86_64.rpm (please wait) ...

--2015-10-21 02:13:25--  https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Resolving dl.google.com (dl.google.com)... 216.58.196.14, 2404:6800:4007:806::200e
Connecting to dl.google.com (dl.google.com)|216.58.196.14|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47734256 (46M) [application/x-redhat-package-manager]
Saving to: ‘google-chrome-stable_current_x86_64.rpm’

100%[====================================================================================================================================================>] 4,77,34,256  764KB/s   in 82s    

2015-10-21 02:14:48 (569 KB/s) - ‘google-chrome-stable_current_x86_64.rpm’ saved [47734256/47734256]

*** Google Chrome 46.0.2490.71 downloaded successfully ...

*** Installing Google Chrome 46.0.2490.71 RPM (please wait) ...

Preparing...                          ################################# [100%]
Updating / installing...
   1:google-chrome-stable-46.0.2490.71################################# [100%]
Redirecting to /bin/systemctl start  atd.service

*** Google Chrome 46.0.2490.71 was installed successfully ...

*** /opt/google/chrome tree contains 87 files totalling 174 MB ...
*** /tmp/chrome_install tree contains 2 files totalling 79 MB ...

Google Chrome 46.0.2490.71 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" or
simply re-run this script with "./install_chrome.sh".

To uninstall Google Chrome,
run "yum remove google-chrome-stable" or "./install_chrome.sh -u".
Richard Lloyd Google Chrome ScriptRichard Lloyd Google Chrome Script

Step 3: Starting Chrome Web Browser

Start browser with non-root user.
# google-chrome &
Welcome screen of Chrome web browser.
Welcome Google ChromeWelcome Google Chrome


2.

Install Chromium Browser on CentOS 6.7 / Red Hat (RHEL) 6.7

1. Change root user

2a. Install NCSU ITECS repository (64-bit only)

yum localinstall http://install.linux.ncsu.edu/pub/yum/itecs/public/chromium/rhel6/noarch/chromium-release-1.1-1.noarch.rpm

2b. Install/enable hughesjr Chromium EL 6 repository (32-bit and 64-bit)

Not only old version(s) available.
cd /etc/yum.repos.d
wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo

3. Install Chromium Browser on CentOS 6 / RHEL 6

yum install chromium

4. Start Chromium Browser

Use Chromium Launcher from Menu:
Chromium Launcher CentOS 6

No comments: