1.cd etc/yum.repos.d

2.vi google-chrome.repo

在google-chrome.repo中复制以下内容:(这一步记得使用root用户,或者sudo一下。)

[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.yum -y install google-chrome-stable --nogpgcheck

运行:

[root@localhost yum.repos.d]# vim google-chrome.repo
[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 22576.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  40 M RSS (928 MB VSZ)
    Started: Fri Dec  7 23:56:09 2018 - 00:18 ago
    State  : Sleeping, pid: 22576
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirror-hk.koddos.net
google-chrome                                                   | 1.3 kB  00:00:00     
google-chrome/x86_64/primary                                    | 1.7 kB  00:00:00     
google-chrome                                                                      3/3
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:71.0.3578.80-1 will be installed
--> Processing Dependency: liberation-fonts for package: google-chrome-stable-71.0.3578.80-1.x86_64
--> Processing Dependency: libappindicator3.so.1()(64bit) for package: google-chrome-stable-71.0.3578.80-1.x86_64
--> Running transaction check
---> Package libappindicator-gtk3.x86_64 0:12.10.0-13.el7 will be installed
--> Processing Dependency: libindicator3.so.7()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
--> Processing Dependency: libdbusmenu-gtk3.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
--> Processing Dependency: libdbusmenu-glib.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
---> Package liberation-fonts.noarch 1:1.07.2-16.el7 will be installed
--> Processing Dependency: liberation-narrow-fonts = 1:1.07.2-16.el7 for package: 1:liberation-fonts-1.07.2-16.el7.noarch
--> Running transaction check
---> Package libdbusmenu.x86_64 0:16.04.0-4.el7 will be installed
---> Package libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7 will be installed
---> Package liberation-narrow-fonts.noarch 1:1.07.2-16.el7 will be installed
---> Package libindicator-gtk3.x86_64 0:12.10.1-6.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package                     Arch       Version                Repository         Size
=======================================================================================
Installing:
 google-chrome-stable        x86_64     71.0.3578.80-1         google-chrome      54 M
Installing for dependencies:
 libappindicator-gtk3        x86_64     12.10.0-13.el7         base               37 k
 libdbusmenu                 x86_64     16.04.0-4.el7          base              132 k
 libdbusmenu-gtk3            x86_64     16.04.0-4.el7          base               34 k
 liberation-fonts            noarch     1:1.07.2-16.el7        base               13 k
 liberation-narrow-fonts     noarch     1:1.07.2-16.el7        base              202 k
 libindicator-gtk3           x86_64     12.10.1-6.el7          base               63 k

Transaction Summary
=======================================================================================
Install  1 Package (+6 Dependent packages)

Total download size: 55 M
Installed size: 194 M
Downloading packages:
(1/7): libdbusmenu-gtk3-16.04.0-4.el7.x86_64.rpm                |  34 kB  00:00:00     
(2/7): libappindicator-gtk3-12.10.0-13.el7.x86_64.rpm           |  37 kB  00:00:00     
(3/7): libdbusmenu-16.04.0-4.el7.x86_64.rpm                     | 132 kB  00:00:00     
(4/7): liberation-fonts-1.07.2-16.el7.noarch.rpm                |  13 kB  00:00:00     
(5/7): liberation-narrow-fonts-1.07.2-16.el7.noarch.rpm         | 202 kB  00:00:00     
(6/7): libindicator-gtk3-12.10.1-6.el7.x86_64.rpm               |  63 kB  00:00:00     
(7/7): google-chrome-stable-71.0.3578.80-1.x86_64.rpm           |  54 MB  00:01:58     
---------------------------------------------------------------------------------------
Total                                                     472 kB/s |  55 MB  01:58     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libdbusmenu-16.04.0-4.el7.x86_64                                    1/7 
  Installing : libdbusmenu-gtk3-16.04.0-4.el7.x86_64                               2/7 
  Installing : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch                      3/7 
  Installing : 1:liberation-fonts-1.07.2-16.el7.noarch                             4/7 
  Installing : libindicator-gtk3-12.10.1-6.el7.x86_64                              5/7 
  Installing : libappindicator-gtk3-12.10.0-13.el7.x86_64                          6/7 
  Installing : google-chrome-stable-71.0.3578.80-1.x86_64                          7/7 
Redirecting to /bin/systemctl start atd.service
  Verifying  : 1:liberation-fonts-1.07.2-16.el7.noarch                             1/7 
  Verifying  : libappindicator-gtk3-12.10.0-13.el7.x86_64                          2/7 
  Verifying  : libindicator-gtk3-12.10.1-6.el7.x86_64                              3/7 
  Verifying  : libdbusmenu-gtk3-16.04.0-4.el7.x86_64                               4/7 
  Verifying  : google-chrome-stable-71.0.3578.80-1.x86_64                          5/7 
  Verifying  : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch                      6/7 
  Verifying  : libdbusmenu-16.04.0-4.el7.x86_64                                    7/7

Installed:
  google-chrome-stable.x86_64 0:71.0.3578.80-1

Dependency Installed:
  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

Complete!
[root@localhost yum.repos.d]# 

二、RPM安装

Centos7 安装Chrome浏览器相关推荐

  1. CentOS7 安装chrome浏览器和ChromeDriver 及 python脚本调用chrome浏览器

    环境: contos 7.5 chrome 81.0.4044.69 81.0.4044.69-chromedriver_linux64 python 3.6.1 selenium 3.141.0 1 ...

  2. Linux Centos7安装chrome浏览器

    参考:https://blog.csdn.net/u010472499/article/details/72327963 1. 配置yum源 在目录 /etc/yum.repos.d/ 下新建文件 g ...

  3. CentOS7下安装chrome浏览器

    CentOS7下安装chrome浏览器 1. 从google官方网站下载google chrome安装包 http://www.google.cn/chrome/browser/desktop/ind ...

  4. python谷歌浏览器驱动安装失败_阿里云centos7.2下安装chrome浏览器+webdriver+selenium及常见设置-傻瓜教程...

    Linux版本:阿里云CentOS Linux release 7.2.1511 (Core) root用户下 测试时间:2019-04-16 1.安装chrome浏览器 1.1 创建yum源文件 c ...

  5. centos7如何安装chrome浏览器?

    先打开terminal,直接远程都可以 配置yum下载源: 在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repo [root@localhost ~]# cd ...

  6. CentOS7.4安装Chrome浏览器

    一.下载Chrome浏览器的rpm包(https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux) 二.安装Chrome浏 ...

  7. ubuntu安装chrome浏览器64位

    image.png 下载安装包 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb image ...

  8. 解决Ubuntu14.04安装Chrome浏览器打不开的问题

    解决Ubuntu14.04安装Chrome浏览器打不开的问题 参考文章: (1)解决Ubuntu14.04安装Chrome浏览器打不开的问题 (2)https://www.cnblogs.com/li ...

  9. Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题

    Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 参考文章: (1)Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 (2)https://www.cn ...

最新文章

  1. TypeScript 从听说到入门(上篇)
  2. CEGUI Lua 编码
  3. C指针原理(13)-C指针基础
  4. Message,MessageQueue,Looper,Handler详解+实例
  5. MySQL高级 - 锁 - MyISAM表锁 - 读锁
  6. 决策树信息熵计算_决策树熵|熵计算
  7. 自动轨迹绘制的python代码_python 自动轨迹绘制的实例代码
  8. Cannot set property ‘innerHTML‘ of null 问题的解决
  9. datax参数设置_DataX-操作HDFS
  10. 【优化算法】粒子群优化算法简介
  11. 获取计算机登录用户名和密码,查看电脑的登录用户名_查看电脑用户名和密码...
  12. java四舍五入保留两位小数方法整理
  13. c语言随机数字密码生成器,在线随机数生成器,批量随机数生成工具 - dute.org
  14. 公网远程访问连接Minecraft我的世界服务器 - MCSM控制面板
  15. 全文检索语句中的AND和OR的用法
  16. ROS中搭建分布式系统 主从机模式
  17. 曾国藩:成大事者不纠结
  18. MyBatis的核心对象
  19. 互联网常用词汇索引表
  20. Scanner in = new Scanner(System.in);是什么意思?

热门文章

  1. 【续】数学模型——人口增长模型
  2. 苹果笔记本win7系统触摸板无法右键功能
  3. CAP理论、AP架构、CP架构
  4. 后缀表达式转中缀表达式
  5. 前端开发[html+css]的实用网站分享(一)
  6. Python脚本操作Excel实现批量替换
  7. laravel安装 nwidart/laravel-modules 出现的问题
  8. 中文词性标注的简单实现
  9. 大数据深度学习学习路线
  10. Transitive attribute传递属性