Skip to content

Aliyun yum mirrors

Aliyun yum mirrors are package repository sources provided by Alibaba Cloud (Aliyun) for the yum package manager. These mirrors are commonly used to replace the default system repositories in order to improve download speeds and connectivity within the Alibaba Cloud network or in regions where the default mirrors are slow^[600-developer-docker-yum-aliyun.md].

Configuration

The process of configuring a system to use Aliyun mirrors involves backing up the existing repository configuration and downloading the new mirror configuration file directly to the system's repository directory^[600-developer-docker-yum-aliyun.md].

Procedure

The standard procedure to switch to the Aliyun CentOS 7 mirror involves the following steps^[600-developer-docker-yum-aliyun.md]:

  1. Backup the original repository: The existing CentOS-Base.repo file is renamed to CentOS-Base.repo.backup to prevent data loss^[600-developer-docker-yum-aliyun.md].
  2. Download the new configuration: The wget command is used to retrieve the specific repository configuration file for CentOS 7 from mirrors.aliyun.com and save it as /etc/yum.repos.d/CentOS-Base.repo^[600-developer-docker-yum-aliyun.md].
  3. Generate cache: The yum makecache command is executed to generate the new metadata cache for the package manager^[600-developer-docker-yum-aliyun.md].

Sources

^[600-developer-docker-yum-aliyun.md]