CentOS 8.5修改安装包镜像源(最小安装无wget用curl)

 

1 备份原配置

cd /etc/yum.repos.d
mkdir backup
mv *.repo backup/

2 下载镜像源

2.1 使用wget下载

wget http://mirrors.aliyun.com/repo/Centos-8.repo

2.2 使用curl下载
我是安装的最小版本的系统,默认只有curl
curl使用方法:https://www.ruanyifeng.com/blog/2019/09/curl-reference.html

curl -O http://mirrors.aliyun.com/repo/Centos-8.repo

3 安装常用软件源

epel是什么 https://blog.csdn.net/weixin_41831919/article/details/109035936

dnf -y install epel-release

4 清除缓存

dnf clean all
dnf makecache

 

注:
如果遇见这个报错

 

可以更新这个包

dnf upgrade libmodulemd

 

 

https://blog.csdn.net/zyw61483/article/details/132414096

posted @ 2025-04-27 22:26  与f  阅读(176)  评论(0)    收藏  举报