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

centos8配置阿里yum

[复制链接]

51

主题

0

回帖

277

积分

管理员

积分
277
发表于 2024-12-20 01:05:26 | 显示全部楼层 |阅读模式
centos8配置阿里yum
CentOS 8 自2021年底停止维护,不再提供官方支持和更新。如果您需要继续使用 CentOS 8 并配置阿里云的 YUM 仓库,请按照以下步骤操作:

首先备份现有的 YUM 仓库配置文件:

sudo cp -a /etc/yum.repos.d /etc/yum.repos.d.bak

清理原有的 YUM 仓库配置文件:

sudo rm -f /etc/yum.repos.d/*.repo

下载阿里云的 CentOS 8 仓库配置文件:

sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

清除缓存并生成新的缓存:

sudo yum clean all
sudo yum makecache
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

FBIKIM

GMT+8, 2025-7-1 20:43 , Processed in 0.118599 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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