转载自:https://blog.csdn.net/ling1998/article/details/123951726
1、权限
若不是root权限,需要在root下执行为用户授权命令,我直接使用root登录
2、下载
[root@localhost src]# wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
--2022-04-04 20:26:56-- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Resolving dl.google.com (dl.google.com)... 114.250.70.33, 2404:6800:4005:812::200e
Connecting to dl.google.com (dl.google.com)|114.250.70.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 87642924 (84M) [application/x-rpm]
Saving to: ‘google-chrome-stable_current_x86_64.rpm’
100%[===============================================================================>] 87,642,924 954KB/s in 90s
2022-04-04 20:28:26 (955 KB/s) - ‘google-chrome-stable_current_x86_64.rpm’ saved [87642924/87642924]
3、安装依赖包
[root@localhost src]# yum install -y lsb
......此处是安装过程中显示的信息(略过),等待安装完成,执行下一个安装依赖
[root@localhost src]# yum install -y libXScrnSaver
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.bupt.edu.cn
Package libXScrnSaver-1.2.2-6.1.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost src]#
4、安装Chrome
[root@localhost src]# yum localinstall google-chrome-stable_current_x86_64.rpm
出现如下提示选择时,输入y即可
5、打开Chrome
进入可视化界面,可通过Applications -> Internet -> Google Chrome 打开Chrome浏览器,现在可以使用了。