本文介紹了CentOS 7 安裝Chrome瀏覽器的方法,分享給大家,具體如下:
配置yum下載源:
在目錄 /etc/yum.repos.d/ 下新建文件 google-chrome.repo
[root@localhost ~]# cd /ect/yum.repos.d/
[root@localhost yum.repos.d]# vim google-chrome.repo
編輯google-chrome.repo,內(nèi)容如下,,編輯后保存退出(:wq)
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
安裝google chrome瀏覽器:
[root@localhost yum.repos.d]# yum -y install google-chrome-stable
PS: Google官方源可能在中國無法使用,導(dǎo)致安裝失敗或者在國內(nèi)無法更新,可以添加以下參數(shù)來安裝:
[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck
這樣,google chrome就可在安裝成功。
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。