linux 安装谷歌浏览器

在 CentOS 7.5 上安装 Google Chrome,可以按照以下步骤进行操作:

1、进入 yum 的 repos 目录,手动创建并添加 chrome 的 repo 文件。命令为:

cd /etc/yum.repos.d/  
touch google-chrome.repo  
vi google-chrome.repo

2、使用 vi 编辑 google-chrome.repo 文件,在文件中添加以下内容:

[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

3、安装 Google Chrome。命令为:


yum install google-chrome-stable --nogpgcheck