centos8换源教程

 

#切换到源的目录

cd /etc/yum.repos.d/

#修改所有centos所有文件信息

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

#下载阿里云镜像文件

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

#清理缓存

yum clean all
yum makecache

 

之后软件就可以正常安装

centos8换源教程

给TA打赏
共{{data.count}}人
人已打赏
Centos

centos8 yum安装软件出现 Failed to set locale, defaulting to C CentOS-8 - AppStream

2023-5-5 13:50:58

Centos

centos8安装gcc

2023-5-5 16:15:40

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

Warning: error_log(/www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/#log/log-0721.txt): failed to open stream: No such file or directory in /www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900