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-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
2. Install Google Chrome
# yum install google-chrome-stable
Note: If step above doesnt work you can use the 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 be able to run Google Chrome on CentOS 6.X version.
# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
# chmod u+x install_chrome.sh
# ./install_chrome.sh
Sample Output
[root@localhost jvpacoin]# chmod u+x install_chrome.sh
[root@localhost jvpacoin]# ./install_chrome.sh
Google Chrome Installer 6.00 on the i686 platform
(C) Richard K. Lloyd 2014 <rklloyd@gmail.com>
*** /tmp/chrome_install tree contains 8 files totalling 72 MB ...
*** Changing working directory to /tmp/chrome_install ...
*** Checking for an update to install_chrome.sh ...
*** Downloading version.dat (please wait) ...
--2014-08-05 00:19:07-- http://chrome.richardlloyd.org.uk/version.dat
Resolving chrome.richardlloyd.org.uk... 193.110.246.53
Connecting to 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
2014-08-05 00:19:08 (448 KB/s) - “version.dat” saved [5/5]
*** install_chrome.sh is already the latest version (6.00) - continuing ...
*** Determining latest Google Chrome version number (please wait) ...
*** Downloading chrome_versions.csv (please wait) ...
--2014-08-05 00:19:35-- http://omahaproxy.appspot.com/all?os=linux&channel=stable
Resolving omahaproxy.appspot.com... 74.125.130.141, 2404:6800:4003:c02::8d
Connecting to omahaproxy.appspot.com|74.125.130.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: “chrome_versions.csv”
[ <=> ] 252 --.-K/s in 0s
2014-08-05 00:19:35 (18.8 MB/s) - “chrome_versions.csv” saved [252]
*** Latest google-chrome-stable version number is 36.0.1985.125 ...
*** Installing Google Chrome 36.0.1985.125 RPM (please wait) ...
Preparing... ########################################### [100%]
1:google-chrome-stable ########################################### [100%]
*** Google Chrome 36.0.1985.125 was installed successfully ...
Step 3: Starting Chrome Web Browser
Start browser with non-root user.
# google-chrome &
No comments:
Post a Comment