Linux发行版镜像下载

Redhat下载

其他镜像网站

Redhat镜像源配置

#方法1:使用开发者订阅(BaseOS、AppStream 和 CodeReady Builder 存储库;无EUS订阅)。下方为在developers.redhat.com注册的账号密码
subscription-manager register --username=xxx --password=xxxx --auto-attach
subscription-manager repos --disable rhel-8-for-x86_64-appstream-eus-source-rpms
yum clean all
yum makecache

#方法2:配置阿里云centos镜像(下载配置包到指定目录)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
##或
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

yum makecache

#方法3:使用rpm安装,例如安装yum
rpm -ivh --nodeps https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-4.7.0-4.el8.noarch.rpm
原文地址:https://www.cnblogs.com/achenger/p/15780659.html