redhat7安装谷歌浏览器 换源

先下载好适用于linux版本的安装包
google-chrome-stable_current_x86_64.rpm

然后在redhat中执行安装命令yum -y install 安装包路径
出现如下问题
redhat7安装谷歌浏览器 换源
解决方法:
创建一个模板CentOS-Base.repo

sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

然后删除此文件中所有内容,更换如下新的源

[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.5.1804/os/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/7.5.1804/os/x86_64/RPM-GPG-KEY-CentOS-7
 
 
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.5.1804/updates/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/7.5.1804//os/x86_64/RPM-GPG-KEY-CentOS-7
 
 
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.5.1804//extras//$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/7.5.1804/os/x86_64/RPM-GPG-KEY-CentOS-7
 
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.5.1804/centosplus//$basearch/
gpgcheck=1
enabled=0

执行更新源的命令

sudo yum clean all && yum makecache

然后重新安装谷歌浏览器yum -y install 安装包路径
成功!

上一篇:RedHat7安装及小红帽硬盘分区建议


下一篇:Ubuntu18.04安装deepin微信