一、介绍
AlmaLinux是一个开源的、社区驱动的项目,旨在填补CentOS稳定版本消亡所留下的空白。AlmaLinux是RHEL 8的一个1:1二进制兼容的分支,它是由有丰富经验的CloudLinux OS的创建者(Igor Seletskiy)构建的。 官网:https://almalinux.org/ 下载地址:https://mirrors.aliyun.com/almalinux/
二、操作流程
1、执行以下命令进行备份并替换默认源
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^# baseurl=https://repo.almalinux.org|baseurl=https://mirrors.aliyun.com|g' \
-i.bak \
/etc/yum.repos.d/almalinux*.repo
2、执行以下命令生成缓存
dnf makecache