centos 7 安装 chrome步骤如下:
1、进官网下载chrome rpm 格式安装包,下载地址 https://www.google.cn/chrome/
Download Chrome for Linux
Debian/Ubuntu/Fedora/openSUSE
Please select your download package:
64 bit .deb (For Debian/Ubuntu)
64 bit .rpm (For Fedora/openSUSE)
选择 64 bit .rpm (For Fedora/openSUSE),下载后文件 google-chrome-stable_current_x86_64.rpm
2、chrome 安装
2.1、切换终端目录到下载文件目录,执行安装命令:
rpm -ivh google-chrome-stable_current_x86_64.rpm
2.2、若安装失败,并提示缺少依赖,如提示can not find libXss.so.1 libappindicator3.so.1,可先获取依赖包信息 查询命令:
repoquery --nvr --whatprovides libXss.so.1
repoquery --nvr --whatprovides libappindicator3.so.1
2.2、查询结果:
libXScrnSaver-1.2.2-6.1.el7
2.3、安装依赖:
yum install libXScrnSaver*
yum install libappindicator*
2.5、再次执行安装命令即可
rpm -ivh google-chrome-stable_current_x86_64.rpm
安装成功后,可在菜单栏(applications)-Internet中启动chrome
3、卸载chrome
查询已安装的chrome:
[root@ou Downloads]# rpm -qa|grep chrome
google-chrome-stable-68.0.3440.106-1.x86_64
执行卸载命令:
[root@ou Downloads]# rpm -e --nodeps google-chrome-stable-68.0.3440.106-1.x86_64