Install Chrome on CentOS7

Source: Internet
Author: User

Install Chrome on CentOS7

Chrome gave up its support for Redhat and CentOS, so it is not easy to install Chrome on the latest Unix-like versions. Fortunately, there are so many volunteers on the Internet, to help you do this, record the Command record for installing Chrome on CentOS 7: For details, see:

1. Google Chrome 39 Released-Install on RHEL/CentOS 7/6 and Fedora 20-15

2. How to install Google Chrome 28 + on RHEL/CentOS 6 or 7

The following is the command line record I installed (not a tutorial, which can be easily queried only for myself ):

[Johnnyhu @ localhost/] $ su root
Password:
[Root @ localhost/] # vi/etc/yum. repos. d/google-chrome.repo
[Root @ localhost/] # yum install google-chrome-statble
Loaded plug-ins: fastestmirror, langpacks
Adobe-linux-x86_64 | 951 B 00:00
Atrpms | 3.0 kB: 00
Base | 3.6 kB
Extras | 3.4 kB: 00
Google-chrome | 951 B: 00
Rpmforge | 1.9 kB
Updates | 3.4 kB: 00
Google-chrome/x86_64/primary | 1.9 kB
Loading mirror speeds from cached hostfile
* Base: pai.bit.edu.cn
* Extras: pai.bit.edu.cn
* Rpmforge: mirrors.neusoft.edu.cn
* Updates: 2.16.bit.edu.cn
Google-google chrome 3/3
No software package is available: google-chrome-statble.
Error: No need to handle
[Root @ localhost/] # wget http://chrome.richardlloyd.org.uk/install_chrome.sh
-- 17:51:57 -- http://chrome.richardlloyd.org.uk/install_chrome.sh
Parsing host chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk)... 193.110.246.53
Connecting chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk) | 193.110.246.53 |: 80... connected.
An HTTP request has been sent and is waiting for response... 200 OK
Length: 76261 (74 K) [application/x-sh]
Saving to: "install_chrome.sh"

100% [============================================== >] 76,261 18.7KB/s 4.0 s

17:52:07 (18.7 KB/s)-saved "install_chrome.sh" [76261/76261])

[Root @ localhost/] # chmod u + x install_chrome.sh
[Root @ localhost/] #./install_chrome.sh----> The following error occurs: the installation is not successful.
Google Chrome Installer 6.10 on the x86_64 platform
(C) Richard K. Lloyd 2014 <rklloyd@gmail.com>

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

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

-- 17:52:48 -- http://chrome.richardlloyd.org.uk/version.dat
Parsing host chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk)... 193.110.246.53
Connecting chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk) | 193.110.246.53 |: 80... connected.
An HTTP request has been sent and is waiting for response... 200 OK
Length: 5 [text/plain]
Saving to: "version. dat"

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

17:52:55 (750 KB/s)-saved "version. dat" [5/5])

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

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

-- 17:53:31 -- http://omahaproxy.appspot.com/all? OS = linux & channel = stable
Parsing host omahaproxy.appspot.com (omahaproxy.appspot.com)... 93.46.8.89, 203.98.7.65
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 93.46.8.89 |: 80... failed: Connection timed out.
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 203.98.7.65 |: 80... failed: Connection timed out.
Retry.

-- 17:57:52 -- (attempts: 2) http://omahaproxy.appspot.com/all? OS = linux & channel = stable
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 93.46.8.89 |: 80... failed: Connection timed out.
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 203.98.7.65 |: 80... failed: Connection timed out.
Retry.

-- 18:02:08 -- (attempts: 3) http://omahaproxy.appspot.com/all? OS = linux & channel = stable
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 93.46.8.89 |: 80... failed: Connection timed out.
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 203.98.7.65 |: 80... failed: Connection timed out.
Retry.

-- 18:06:26 -- (attempts: 4) http://omahaproxy.appspot.com/all? OS = linux & channel = stable
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 93.46.8.89 |: 80... failed: Connection timed out.
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 203.98.7.65 |: 80... failed: Connection timed out.
Retry.

^ Z
[1] + stopped./install_chrome.sh
[Root @ localhost/] # yum update bash wget
Loaded plug-ins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* Base: mirrors.hustunique.com
* Extras: mirrors.hustunique.com
* Rpmforge: ftp.riken.jp
* Updates: mirrors.hustunique.com
No packages marked for update


[Root @ localhost/] #./install_chrome.sh-s--->-S indicates the stable version (stable) is installed. This time it is successful!
Google Chrome Installer 6.10 on the x86_64 platform
(C) Richard K. Lloyd 2014 <rklloyd@gmail.com>
* **/Tmp/chrome_install tree contains 2 files totalling 0 MB...

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

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

-- 18:17:09 -- http://chrome.richardlloyd.org.uk/version.dat
Parsing host chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk)... 193.110.246.53
Connecting chrome.richard dlloyd.org. uk (chrome.richard dlloyd.org. uk) | 193.110.246.53 |: 80... connected.
An HTTP request has been sent and is waiting for response... 200 OK
Length: 5 [text/plain]
Saving to: "version. dat"

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

18:17:10 (754 KB/s)-saved "version. dat" [5/5])

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

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

-- 18:17:17 -- http://omahaproxy.appspot.com/all? OS = linux & channel = stable
Parsing host omahaproxy.appspot.com (omahaproxy.appspot.com)... 173.194.72.141, 2404: 6800: 4008: c05: 8d
Connecting omahaproxy.appspot.com (omahaproxy.appspot.com) | 173.194.72.141 |: 80... failed: Connection timeout.
Connecting to omahaproxy.appspot.com (omahaproxy.appspot.com) | 2404: 6800: 4008: c05: 8d |: 80... failed: the network is inaccessible.
* ** WARNING: Unable to determine latest Google Chrome version number...

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

-- 18:19:24 -- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Parsing host dl.google.com (dl.google.com)... 203.208.49.167, 203.208.49.165, 203.208.49.166 ,...
Connecting to dl.google.com (dl.google.com) | 203.208.49.167 |: 443... already connected.
An HTTP request has been sent and is waiting for response... 200 OK
Length: 60867960 (58 M) [application/x-redhat-package-manager]
Saving to: google-chrome-stable_current_x86_64.rpm"

100% [============================================== ==============================>] 60,867,960 1.98 MB/s 58 s

18:20:23 (1022 KB/s)-saved "google-chrome-stable_current_x86_64.rpm" [60867960/60867960])

Alert: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
* ** Google Chrome downloaded successfully...

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

Alert: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Preparing... ################################# [100%]
Upgrading/installing...
1: google-chrome-stable-39.0.2171.95 ################################# [100%]
Redirecting to/bin/systemctl start atd. service

* ** Google Chrome was installed successfully...

* **/Opt/google/chrome tree contains 87 files totalling 174 MB...
* **/Tmp/chrome_install tree contains 1 files totalling 58 MB...

-------> The following are some common operations for operating the Chrome browser!

Google Chrome 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 ".

------- End !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.