centos安裝最新的 chromium 和 chorme
阿新 • • 發佈:2019-01-01
This also works for CentOS 6.5
Update 1: It looks like I had a cached version of the rpm in a local repo. Here is the RPM that you can use to install the last version that worked for CentOS 6:
Install instructions:
# yum -y install google-chrome-stable-27.0.1453.110-202711.x86_64.rpm
—END OF UPDATE—
Update 2: It looks like you can also install Chromium and get version 28 running
Install Chromium:
sudo su - cd /etc/yum.repos.d wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo yum install chromium
Install Pepper Flash:
cd /tmp wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_pepperflash_copy.shchmod +x chrome_pepperflash_copy.sh ./chrome_pepperflash_copy.sh
Install PDF Viewer:
cd /tmp wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_libpdf_copy.sh chmod +x chrome_libpdf_copy.sh ./chrome_libpdf_copy.sh
Chromium should now be installed and accessible via your window manager’s menu.
Thanks to stavros on Google+ for the tip.
—END OF UPDATE—
Update 3: There appears to be a script that lets you run Chrome 28 on CentOS 6
—END OF UPDATE—
Original post:
The latest version of Google Chrome no longer installs on CentOS 6.4 due to dependency issues:
# yum -y install google-chrome--->;Package google-chrome-stable.x86_64 0:28.0.1500.63-208724 will be installed -->;ProcessingDependency: lsb >=4.0forpackage: google-chrome-stable-28.0.1500.63-208724.x86_64 -->;ProcessingDependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage: google-chrome-stable-28.0.1500.63-208724.x86_64 -->;Running transaction check --->;Package google-chrome-stable.x86_64 0:28.0.1500.63-208724 will be installed -->;ProcessingDependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage: google-chrome-stable-28.0.1500.63-208724.x86_64 --->;Package redhat-lsb.x86_64 0:4.0-7.el6.centos will be installed -->;ProcessingDependency: redhat-lsb-printing(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-graphics(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-core(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-compat(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->Running transaction check --->Package google-chrome-stable.x86_64 0:28.0.1500.63-208724 will be installed -->ProcessingDependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage: google-chrome-stable-28.0.1500.63-208724.x86_64 --->Package redhat-lsb-compat.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-graphics.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-printing.x86_64 0:4.0-7.el6.centos will be installed -->FinishedDependencyResolutionError:Package: google-chrome-stable-28.0.1500.63-208724.x86_64 (google-chrome-local)Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
The solution is to install an older version that is known to work with CentOS 6.4:
# yum install google-chrome-stable-27.0.1453.110-202711.x86_64Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * misc: master * misc6: master google-chrome |951 B 00:00 google-chrome/primary |1.8 kB 00:00 google-chrome 3/3Setting up InstallProcessResolvingDependencies-->Running transaction check --->Package google-chrome-stable.x86_64 0:27.0.1453.110-202711 will be installed -->ProcessingDependency: lsb >=4.0forpackage: google-chrome-stable-27.0.1453.110-202711.x86_64 -->Running transaction check --->Package redhat-lsb.x86_64 0:4.0-7.el6.centos will be installed -->ProcessingDependency: redhat-lsb-printing(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-graphics(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-core(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->ProcessingDependency: redhat-lsb-compat(x86-64)=4.0-7.el6.centosforpackage: redhat-lsb-4.0-7.el6.centos.x86_64 -->Running transaction check --->Package redhat-lsb-compat.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-graphics.x86_64 0:4.0-7.el6.centos will be installed --->Package redhat-lsb-printing.x86_64 0:4.0-7.el6.centos will be installed -->FinishedDependencyResolutionDependenciesResolved======================================================================================================================PackageArchVersionRepositorySize======================================================================================================================Installing: google-chrome-stable x86_64 27.0.1453.110-202711 google-chrome-local51 M Installingfor dependencies: redhat-lsb x86_64 4.0-7.el6.centosbase11 k redhat-lsb-compat x86_64 4.0-7.el6.centosbase10 k redhat-lsb-core x86_64 4.0-7.el6.centosbase25 k redhat-lsb-graphics x86_64 4.0-7.el6.centosbase13 k redhat-lsb-printing x86_64 4.0-7.el6.centosbase11 k TransactionSummary======================================================================================================================Install6Package(s)Total download size:51 M Installed size:152 M Isthis ok [y/N]: y DownloadingPackages:(1/6): google-chrome-stable-27.0.1453.110-202711.x86_64.rpm |51 MB 00:00(2/6): redhat-lsb-4.0-7.el6.centos.x86_64.rpm |11 kB 00:00(3/6): redhat-lsb-compat-4.0-7.el6.centos.x86_64.rpm |10 kB 00:00(4/6): redhat-lsb-core-4.0-7.el6.centos.x86_64.rpm |25 kB 00:00(5/6): redhat-lsb-graphics-4.0-7.el6.centos