1.确保服务器能通互联网
2.在服务器上面/etc/yum.repos.d目录下创建repo文件,如:kylin.repo
[kylin]
name = kylin
baseurl = https://update.cs2c.com.cn/NS/V10/V10SP1/os/adv/lic/base/sw_64
enabled = 1
priority = 1
gpgcheck = 0
skip_if_unavailable = 1
keepcache = 0
3.清理 YUM 缓存并生成新的缓存
执行以下命令来清理 YUM 缓存并生成新的缓存:
yum clean all && yum makecache