CentOS7 安裝Chrome

1. 下載Chrome瀏覽器的rpm包php

https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linuxlinux

 

2. 安裝Chrome瀏覽器chrome

rpm -ivh google-chrome-stable_current_x86_64.rpm

若是出現下面錯誤消息,則代表缺乏依賴包:ubuntu

[root@lenmomDesktop Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm 
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
    libXss.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libappindicator3.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libnss3.so(NSS_3.22)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libssl3.so(NSS_3.28)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64

針對錯誤消息中的每一個依賴包,執行命令repoquery --nvr --whatprovides   <依賴文件>,安裝輸出包, such as:windows

[root@lenmomDesktop Downloads]# repoquery --nvr --whatprovides  libappindicator3.so.1 libappindicator-gtk3-12.10.0-13.el7
[root@lenmomDesktop Downloads]# yum install -y libappindicator-gtk3-12.10.0-13.el7

發現亮點了嗎?!!!centos

 

直到全部依賴包都安裝完成,再執行命令:瀏覽器

rpm -ivh google-chrome-stable_current_x86_64.rpm

 

沒有安裝中文輸入法,打字太難受了!!!  app

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ide

又發現了一種新的安裝方法:
瀏覽器打開https://www.google.cn/chrome/google

直接下載安裝包,目前提供windows, ubuntu,centos的安裝包。

windows 直接雙擊exe安裝,

centos    rpm -ivh [rpm包]

ubuntu   dpkm -i  [deb包]

相關文章
相關標籤/搜索