如何在centos7中安装Google Chrome浏览器

1. download:Chrome linux安装包

https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

2. 配置yum, 原始的centOS官网地址访问不了,要改成阿里云镜像

vi /etc/yum.repos.d/CentOS-Base.repo

把所有的mirrorlist注释掉

把所有的baseurl打开

把mirrors.centos.org替换成mirrors.aliyun.com

#mirrorlist=https://#mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra

baseurl=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/

3. 使用yum来安装

yum install redhat-lsb

yum install libXScrnSaver*

yum install epel-release

yum install liberation-fonts

yum localinstall google-chrome-stable_current_x86_64.rpm

4. 把安装好的Chrome设置到桌面快捷方式

cp -rf /usr/share/applications/google-chrome.desktop ./桌面/

cd 桌面/

chmod 750 google-chrome.desktop

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据