在linux centos7下面進行web開發,免不了需要chrome瀏覽器,centos7默認只有firefox瀏覽器,下面是安裝chrome的步驟
- 從https://www.google.cn/intl/zh-CN_ALL/chrome/ 下載rpm包,google-chrome-stable_current_x86_64.rpm
- 打開命行窗口
- 這裏要提醒一下,在centos7下面安裝rpm包, 是使用yum install這個命令,它會幫忙把rpm包需要的依賴包也安裝進來
- 運行 yum install google-chrome-stable_current_x86_64.rpm
- 這時可以看到屏幕在不停翻滾,下載安裝依賴包,要求輸入y/n
- 這時一定要輸入y
- 最後提示安裝完成,並且同時把安裝了的依賴包也用列表顯示出來
Installed:
google-chrome-stable.x86_64 0:73.0.3683.103-1Dependency Installed:
libXScrnSaver.x86_64 0:1.2.2-6.1.el7
libappindicator-gtk3.x86_64 0:12.10.0-13.el7
libdbusmenu.x86_64 0:16.04.0-4.el7
libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7
liberation-fonts.noarch 1:1.07.2-16.el7
liberation-narrow-fonts.noarch 1:1.07.2-16.el7
libindicator-gtk3.x86_64 0:12.10.1-6.el7
redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1
redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1
spax.x86_64 0:1.5.2-13.el7 -
在左上角的applications--internet裏可以看到Google Chrome圖標了。