CENTOS 7 安装 chrome

参考链接http://www.jb51.cc/article/p-reeljeqm-tv.html

https://chrome.richardlloyd.org.uk/

站点有可能会关闭,所以把内容拷贝了下来:

How to install 64-bit Google Chrome on 64-bit RHEL/CentOS 7 The end of the road

Google Chrome 60 has been released and this does not work on RHEL/CentOS 6 because it has switched (like Mozilla Firefox already has) to using GTK+3,which isn't available on RHEL/CentOS 6.

In fact,if you're still on RHEL/CentOS 6,you really should uninstall Google Chrome from your system Now - the script is Now effectively useless for you and will not download the latest Google Chrome. Running Google Chrome 58 is Now considered a major security risk (a total of 70 security bugs were fixed in versions 59 and 60 compared to version 58) and the script only remains available for download because it still works as usual on RHEL/CentOS 7.

A (possibly) final version of the script has been released that prevents upgrades beyond Google Chrome 58 on RHEL/CentOS 6 (with a warning that it's a security risk to keep running that release). As an alternative,you can "yum install firefox" to install the latest Mozilla Firefox ESR release (Red Hat have indeed backported it to GTK+2),but this can mean running a browser up to a year out of date w.r.t. features. The site will shutdown on 1st September 2017

There isn't much point to this site any more - RHEL/CentOS 6 users can't use the script to install Google Chrome and RHEL/CentOS 7 users can just download the latest Google Chrome RPM and then run "yum install google-chrome-stable_current_x86_64.rpm" as root. Hence,this site will be shutdown on 1st September 2017. It may be resurrected if RHEL/CentOS 7 can't run Google Chrome out of the Box in the future,but that Could be years away. The download (RHEL/CentOS 7 only)

It's strongly recommended that you run "yum update" as root (and reboot if this installs a new kernel) before you download and run the script below. This will often fix prevIoUsly kNown issues when running Google Chrome.

install_chrome.sh 8.00 (4th May 2017 - final version,gcc 7.1.0 used for libstdc++,don't download Google Chrome 59+ on RHEL/CentOS 6)

It's a bash shell script,so you download and run it as root as follows:

wget https://chrome.richardlloyd.org.uk/install_chrome.sh

chmod u+x install_chrome.sh

./install_chrome.sh

The script has optional command line arguments - here's the output of "./install_chrome.sh -h":

Syntax: ./install_chrome.sh [-b] [-d] [-f [-f [-f]]] [-h] [-n] [-q] [-r] [-s] [-t tmpdir] [-u] [-U]

-b (or --beta) will switch to beta versions (google-chrome-beta). -d (or --delete) will delete the temporary directory used for downloads if an installation was successful. -f (or --force) forces an automatic "y" for any interactive prompting except for OS mismatch/OS upgrade/reboot prompts. Specify -f twice to force it for OS mismatches or OS upgrades as well and three times for reboots on top of that. -h (or -? or --help) will display this Syntax message. -n (or --dryrun) will show what actions the script will take,but it won't actually perform those actions. -q (or --quiet) will switch to "quiet mode" where minimal info is displayed. Specify -q twice to go completely silent except for errors. -r (or --re-run) indicates the script is being re-run after an upgrade (internal use only - do not use -r during an initial run of the script). -s (or --stable) will switch to stable versions (google-chrome-stable),which is the default if -b or -U haven't prevIoUsly been specified. -t tmpdir (or --tmpdir tmpdir) will use tmpdir as the temporary directory parent tree rather than $TMPDIR (if set) or /tmp. -u performs an uninstallation of Google Chrome and chrome-deps rather the default action of an installation. -U (or --unstable) will switch to unstable versions (google-chrome-unstable).

I would recommend you read the comments at the top of the script and inspect the code carefully since you need to run it as root. It will perform a fair number of downloads to obtain what it needs and if it finishes successfully,you should be able to run the "google-chrome" command (or select it from the Internet category in your GNOME main menu) as a non-root user. The changelog

Version 8.00 (4th May 2017):
Final (bug fixes notwithstanding) release of the script. 2016 references finally changed to 2017 and we're using the freshly baked gcc 7.1.0 for libstdc++ Now. Warn that it's the last major release that works on RHEL/CentOS 6 if Google Chrome 58 is installed. Refuse to install Google Chrome 59+ on RHEL/CentOS 6 (and delete repo file(s) if 59+ is available to avoid "yum update" breaking things).

The Feedback

Any bugs,fixes,improvements or suggestions should be fed back to me,Richard K. Lloyd,at rklloyd@gmail.com but please note there is no warranty on this product whatsoever and the script itself is in the public domain. Bemusingly,one ultimate Feedback was a tutorial video someone uploaded to YouTube!

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native