找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 139|回复: 0

Centos配置阿里云yum

[复制链接]

50

主题

0

回帖

266

积分

管理员

积分
266
发表于 2024-2-12 00:49:24 | 显示全部楼层 |阅读模式
一、直接替换成阿里云的yum源的方法(对我无效)
替换Centos-Base.repo前可以备份一下

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
下载阿里云的yum源并替换

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


生成新的yum缓存

yum clean all


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

FBIKIM

GMT+8, 2025-5-11 19:27 , Processed in 0.208961 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表