Update Configuration Method After Alibaba Cloud Source for Centos8 Stops Maintenance 2022-2-17

Alibaba Cloud source for CentOS8 Introduction:

Alibaba Cloud source for CentOS8 .The life cycle of CentOS8 has stopped, and the Alibaba Cloud source repo is no longer maintained. The old yum/ dnf update error report fails, and the official configuration method also fails without maintenance. After a period of research, I finally solved it so that dnf /yum can work normally. Update the method used.

1. Alibaba Cloud source for CentOS8 .Backup the old

repo configuration : mv /etc/yum.repos.d /CentOS-Base.repo /etc/yum.repos.d /CentOS-Base.repo.backup _

2. Alibaba Cloud source for CentOS8.Download the Alibaba Cloud repo configuration file:

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

3. Replace the corresponding repo file parameters according to the instructions officially released by the cenos community (unregister the mirrorlist option and enable the baseurl option):
minorver =8.5.2111
(Note: The above 2 paragraph commands replace the parameters in the CentOS-Linux- AppStream.repo and CentOS-Linux- BaseOS.repo files, if dnf When makecache , other repo files report errors, and you can modify the parameters by yourself according to these two commands to compare the parameters or directly modify the repo file that reports the error. )

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00

phone Contact Us