1.配置yum下載源:
在目錄 /etc/yum.repos.d/ 下新建文件 google-chrome.repo, 並且在該文件中添加如下內容:
1 [google-chrome] 2 name=google-chrome 3 baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch 4 enabled=1 5 gpgcheck=1 6 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub 7 ~
2. 安裝google chrome瀏覽器:
[root@localhost yum.repos.d]# yum -y install google-chrome-stable
PS: Google官方源可能在中國無法使用,導致安裝失敗或者在國內無法更新,可以添加以下參數來安裝:
[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck