redhat7安装谷歌浏览器 换源
作者:互联网
先下载好适用于linux版本的安装包
google-chrome-stable_current_x86_64.rpm
然后在redhat中执行安装命令yum -y install 安装包路径
出现如下问题
解决方法:
创建一个模板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 安装包路径
成功!
标签:1804,浏览器,centos,CentOS,7.5,redhat7,换源,org,http 来源: https://blog.csdn.net/weixin_47377225/article/details/116084889