49 字
1 分钟
AlmaLinux9.5 国内仓库源配置
1、关闭防火墙和selinux安全#
Terminal window
$ systemctl stop firewalld && systemctl disable firewalld
$ setenforce 0
$ sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
2、配置yum仓库#

阿里源仓库

Terminal window
$ 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
$ dnf makecache
AlmaLinux9.5 国内仓库源配置
http://blog.xeu.asia/posts/linux环境基础配置/almalinux95-国内仓库源配置/
作者
Xeu
发布于
2025-06-08
许可协议
CC BY-NC-SA 4.0